AddOperation
Method
func (AzureApiManagementApiResource) AddOperation( name string, method string, urlTemplate string, options ...*AddOperationOptions,) AzureApiManagementOperationResourceSignature
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().
Applies to
This method applies to the following types: