Aspire.Hosting.Azure.ApiManagement
Official
📦 Aspire.Hosting.Azure.ApiManagementv17.0.0-preview.1.26567.5Import path
apphost/modules/aspire38Functions
31Types
31 types, 38 functions and 0 members
Handles
handle
AzureApiManagementApiResource9 membershandle
AzureApiManagementBackendPoolResource1 membershandle
AzureApiManagementBackendResourcehandle
AzureApiManagementNamedValueResourcehandle
AzureApiManagementOperationResource3 membershandle
AzureApiManagementPolicyFragmentResourcehandle
AzureApiManagementProductResource2 membershandle
AzureApiManagementResource22 membershandle
AzureApiManagementSubscriptionResourcehandle
AzureApplicationInsightsResourcehandle
AzureBlobStorageResourcehandle
AzureKeyVaultResourcehandle
AzureOpenAIDeploymentResourcehandle
AzureSubnetResourcehandle
AzureUserAssignedIdentityResourcehandle
FoundryDeploymentResourceDTOs
struct
AzureApiManagementBackendOptions6 fieldsstruct
AzureApiManagementCircuitBreakerOptions6 fieldsstruct
AzureApiManagementDiagnosticOptions3 fieldsstruct
AzureApiManagementOptions4 fieldsstruct
AzureApiManagementProductOptions6 fieldsstruct
AzureApiManagementStatusCodeRange2 fieldsstruct
AzureApiManagementSubscriptionOptions2 fieldsEnums
enum
AzureApiManagementBackendProtocol2 valuesenum
AzureApiManagementDiagnosticVerbosity3 valuesenum
AzureApiManagementHostnameType6 valuesenum
AzureApiManagementOpenApiFormat3 valuesenum
AzureApiManagementProductState2 valuesenum
AzureApiManagementSku8 valuesenum
AzureApiManagementSubscriptionState6 valuesenum
AzureApiManagementVirtualNetworkMode2 valuesFunctions
AzureApiManagementApiResource
method
AddOperationbuilderAdds an explicitly modeled operation to an API.
AddOperation(name string, method string, urlTemplate string, options ...*AddOperationOptions) AzureApiManagementOperationResourcemethod
WithApiBackendbuilderConfigures an API to route requests to a backend.
WithApiBackend(backend AzureApiManagementBackendResource) AzureApiManagementApiResourcemethod
WithApiBackendPoolbuilderConfigures an API to route requests to a backend pool.
WithApiBackendPool(backend AzureApiManagementBackendPoolResource) AzureApiManagementApiResourcemethod
WithApplicationInsightsbuilderSends API-level API Management diagnostics to Application Insights.
WithApplicationInsights(applicationInsights AzureApplicationInsightsResource, options ...*AzureApiManagementDiagnosticOptions) AzureApiManagementApiResourcemethod
WithInboundPolicybuilderAppends an XML policy statement to the API-level inbound policy section.
WithInboundPolicy(policyXml string) AzureApiManagementApiResourcemethod
WithInboundPolicyFragmentbuilderIncludes a policy fragment in the API-level inbound policy.
WithInboundPolicyFragment(fragment AzureApiManagementPolicyFragmentResource) AzureApiManagementApiResourcemethod
WithOpenApiDocumentbuilderImports an OpenAPI document from a file into an API.
WithOpenApiDocument(documentPath string, options ...*WithOpenApiDocumentOptions) AzureApiManagementApiResourcemethod
WithOpenApiEndpointbuilderImports an OpenAPI document exposed by the API's target compute resource.
WithOpenApiEndpoint(options ...*WithOpenApiEndpointOptions) AzureApiManagementApiResourcemethod
WithPolicybuilderReplaces the complete API-level policy document.
WithPolicy(policyXml string) AzureApiManagementApiResourceAzureApiManagementBackendPoolResource
AzureApiManagementOperationResource
method
WithInboundPolicybuilderAppends an XML policy statement to the operation-level inbound policy section.
WithInboundPolicy(policyXml string) AzureApiManagementOperationResourcemethod
WithInboundPolicyFragmentbuilderIncludes a policy fragment in the operation-level inbound policy.
WithInboundPolicyFragment(fragment AzureApiManagementPolicyFragmentResource) AzureApiManagementOperationResourcemethod
WithPolicybuilderReplaces the complete operation-level policy document.
WithPolicy(policyXml string) AzureApiManagementOperationResourceAzureApiManagementProductResource
method
AddSubscriptionbuilderAdds a subscription scoped to an API Management product.
AddSubscription(name string, displayName string, options ...*AddSubscriptionOptions) AzureApiManagementSubscriptionResourcemethod
WithApibuilderAdds an API to an API Management product.
WithApi(api AzureApiManagementApiResource) AzureApiManagementProductResourceAzureApiManagementResource
method
AddApibuilderAdds an API that routes requests to an Aspire compute resource.
AddApi(name string, target IComputeResource, path string, options ...*AddApiOptions) AzureApiManagementApiResourcemethod
AddApiWithoutTargetbuilderAdds an API whose backend is configured separately.
AddApiWithoutTarget(name string, path string, options ...*AddApiWithoutTargetOptions) AzureApiManagementApiResourcemethod
AddAzureOpenAIBackendbuilderAdds an Azure OpenAI deployment as an API Management backend.
AddAzureOpenAIBackend(name string, deployment AzureOpenAIDeploymentResource, options ...*AddAzureOpenAIBackendOptions) AzureApiManagementBackendResourcemethod
AddBackendbuilderAdds a configurable backend to the API Management service.
AddBackend(name string, uri *ReferenceExpression, options ...*AddBackendOptions) AzureApiManagementBackendResourcemethod
AddBackendPoolbuilderAdds a reusable load-balancing pool to the API Management service.
AddBackendPool(name string, options ...*AddBackendPoolOptions) AzureApiManagementBackendPoolResourcemethod
AddBlobStorageBackendbuilderAdds an Azure Blob Storage service as an API Management backend.
AddBlobStorageBackend(name string, blobs AzureBlobStorageResource, options ...*AddBlobStorageBackendOptions) AzureApiManagementBackendResourcemethod
AddFoundryBackendbuilderAdds a Microsoft Foundry OpenAI deployment as an API Management backend.
AddFoundryBackend(name string, deployment FoundryDeploymentResource, options ...*AddFoundryBackendOptions) AzureApiManagementBackendResourcemethod
AddKeyVaultNamedValuebuilderAdds a Key Vault-backed named value to the API Management service from a polyglot AppHost.
AddKeyVaultNamedValue(name string, vault AzureKeyVaultResource, secretName string, options ...*AddKeyVaultNamedValueOptions) AzureApiManagementNamedValueResourcemethod
AddNamedValuebuilderAdds a non-secret named value to the API Management service.
AddNamedValue(name string, value string, options ...*AddNamedValueOptions) AzureApiManagementNamedValueResourcemethod
AddOpenAIApibuilderAdds an OpenAI-compatible API backed by an API Management load-balancing pool.
AddOpenAIApi(name string, path string, options ...*AddOpenAIApiOptions) AzureApiManagementApiResourcemethod
AddPolicyFragmentbuilderAdds a reusable policy fragment to the API Management service.
AddPolicyFragment(name string, policyXml string, options ...*AddPolicyFragmentOptions) AzureApiManagementPolicyFragmentResourcemethod
AddProductbuilderAdds a product to the API Management service.
AddProduct(name string, displayName string, options ...*AddProductOptions) AzureApiManagementProductResourcemethod
AddSecretNamedValuebuilderAdds a secret parameter as a named value in the API Management service.
AddSecretNamedValue(name string, value ParameterResource, options ...*AddSecretNamedValueOptions) AzureApiManagementNamedValueResourcemethod
WithApplicationInsightsbuilderSends service-level API Management diagnostics to Application Insights.
WithApplicationInsights(applicationInsights AzureApplicationInsightsResource, options ...*AzureApiManagementDiagnosticOptions) AzureApiManagementResourcemethod
WithAzureUserAssignedIdentitybuilderConfigures the user-assigned managed identity used by API Management.
WithAzureUserAssignedIdentity(identityResourceBuilder AzureUserAssignedIdentityResource) AzureApiManagementResourcemethod
WithClassicVirtualNetworkbuilderInjects a classic Developer or Premium API Management service into a virtual network subnet.
WithClassicVirtualNetwork(subnet AzureSubnetResource, mode AzureApiManagementVirtualNetworkMode) AzureApiManagementResourcemethod
WithCustomDomainbuilderConfigures a custom hostname from a polyglot AppHost using a certificate stored in Azure Key Vault.
WithCustomDomain(hostname string, vault AzureKeyVaultResource, certificateSecretName string, options ...*WithCustomDomainOptions) AzureApiManagementResourcemethod
WithInboundPolicybuilderAppends an XML policy statement to the service-level inbound policy section.
WithInboundPolicy(policyXml string) AzureApiManagementResourcemethod
WithInboundPolicyFragmentbuilderIncludes a policy fragment in the service-level inbound policy.
WithInboundPolicyFragment(fragment AzureApiManagementPolicyFragmentResource) AzureApiManagementResourcemethod
WithPolicybuilderReplaces the complete service-level policy document.
WithPolicy(policyXml string) AzureApiManagementResourcemethod
WithVirtualNetworkInjectionbuilderInjects a Premium v2 API Management service into a virtual network for private inbound and outbound access.
WithVirtualNetworkInjection(subnet AzureSubnetResource) AzureApiManagementResourcemethod
WithVirtualNetworkIntegrationbuilderIntegrates a Standard v2 or Premium v2 API Management service with a virtual network for outbound access.
WithVirtualNetworkIntegration(subnet AzureSubnetResource) AzureApiManagementResource