AzureApiManagementApiResource.AddOperation

Method
📦 Aspire.Hosting.Azure.ApiManagement v17.0.0-preview.1.26567.5
type AzureApiManagementApiResource interface {
// ... omitted for brevity
AddOperation(
name string,
method string,
urlTemplate string,
options ...*AddOperationOptions,
) AzureApiManagementOperationResource
}

Signature

methodAddOperationbuilder
Adds an explicitly modeled operation to an API.
AddOperation(
name string,
method string,
urlTemplate string,
options ...*AddOperationOptions,
) AzureApiManagementOperationResource
namestringThe globally unique Aspire resource name and default physical operation name.
methodstringThe HTTP method.
urlTemplatestringThe URL template relative to the API path.
options...*AddOperationOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*AddOperationOptions argument.

DisplayName*stringThe operation display name. The resource name is used when omitted.
OperationName*stringThe physical operation identifier in API Management. The Aspire resource name is used when omitted.
AzureApiManagementOperationResource

A builder for the operation resource.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: