AzureApiManagementApiResource
Represents an API hosted by an Azure API Management service.
type AzureApiManagementApiResource interface { Resource ResourceWithParent}Methods
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().
WithApiBackend(backend AzureApiManagementBackendResource) AzureApiManagementApiResourceParameters
backendAzureApiManagementBackendResource Returns
AzureApiManagementApiResource Returns a handle; failures surface later via Err().
WithApiBackendPool(backend AzureApiManagementBackendPoolResource) AzureApiManagementApiResourceParameters
backendAzureApiManagementBackendPoolResource Returns
AzureApiManagementApiResource Returns a handle; failures surface later via Err().
WithApplicationInsights( applicationInsights AzureApplicationInsightsResource, options ...*AzureApiManagementDiagnosticOptions,) AzureApiManagementApiResourceParameters
applicationInsights AzureApplicationInsightsResource The Application Insights resource.options...*AzureApiManagementDiagnosticOptions Optional settings, described under Options.Options
Optional parameters are passed as the existing *AzureApiManagementDiagnosticOptions struct.
Returns
AzureApiManagementApiResource The resource builder.
Returns a handle; failures surface later via Err().
WithInboundPolicy(policyXml string) AzureApiManagementApiResourceParameters
policyXml stringOne or more well-formed APIM policy elements without a policies envelope.Returns
AzureApiManagementApiResource The resource builder.
Returns a handle; failures surface later via Err().
WithInboundPolicyFragment(fragment AzureApiManagementPolicyFragmentResource) AzureApiManagementApiResourceParameters
fragmentAzureApiManagementPolicyFragmentResource The policy fragment to include.Returns
AzureApiManagementApiResource The resource builder.
Returns a handle; failures surface later via Err().
WithOpenApiDocument( documentPath string, options ...*WithOpenApiDocumentOptions,) AzureApiManagementApiResourceParameters
documentPath stringThe document path, relative to the AppHost directory when not absolute.options...*WithOpenApiDocumentOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithOpenApiDocumentOptions argument.
Format*AzureApiManagementOpenApiFormat The document format. The file extension is used when omitted.Returns
AzureApiManagementApiResource The API Management API resource builder.
Returns a handle; failures surface later via Err().
WithOpenApiEndpoint(options ...*WithOpenApiEndpointOptions) AzureApiManagementApiResourceParameters
options...*WithOpenApiEndpointOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithOpenApiEndpointOptions argument.
DocumentPath *stringThe absolute path of the OpenAPI endpoint, such as /openapi/v1.json .EndpointName *stringThe target endpoint name. An external HTTP or HTTPS endpoint is selected when omitted.Format*AzureApiManagementOpenApiFormat The document format. The endpoint path extension is used when omitted.Returns
AzureApiManagementApiResource The API Management API resource builder.
Returns a handle; failures surface later via Err().
WithPolicy(policyXml string) AzureApiManagementApiResourceParameters
policyXml stringA complete APIM policies XML document.Returns
AzureApiManagementApiResource The resource builder.
Returns a handle; failures surface later via Err().