AzureApiManagementApiResource.AddOperation
Method
type AzureApiManagementApiResource interface { // ... omitted for brevity AddOperation( name string, method string, urlTemplate string, options ...*AddOperationOptions, ) AzureApiManagementOperationResource}Signature
method
AddOperation builderAdds an explicitly modeled operation to an API.
AddOperation( name string, method string, urlTemplate string, options ...*AddOperationOptions,) AzureApiManagementOperationResourceParameters
namestringThe globally unique Aspire resource name and default physical operation name.methodstringThe HTTP method.urlTemplate stringThe URL template relative to the API path.options...*AddOperationOptions Optional settings, described under Options.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.Returns
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: