Aspire.Hosting.Azure.ApiManagement

Official
📦 Aspire.Hosting.Azure.ApiManagementv17.0.0-preview.1.26567.5
Import pathapphost/modules/aspire
38Functions
31Types

Handles

DTOs

Enums

Functions

AzureApiManagementApiResource

methodAddOperationbuilder
Adds an explicitly modeled operation to an API.
AddOperation(name string, method string, urlTemplate string, options ...*AddOperationOptions) AzureApiManagementOperationResource
methodWithApiBackendbuilder
Configures an API to route requests to a backend.
WithApiBackend(backend AzureApiManagementBackendResource) AzureApiManagementApiResource
methodWithApiBackendPoolbuilder
Configures an API to route requests to a backend pool.
WithApiBackendPool(backend AzureApiManagementBackendPoolResource) AzureApiManagementApiResource
methodWithApplicationInsightsbuilder
Sends API-level API Management diagnostics to Application Insights.
WithApplicationInsights(applicationInsights AzureApplicationInsightsResource, options ...*AzureApiManagementDiagnosticOptions) AzureApiManagementApiResource
methodWithInboundPolicybuilder
Appends an XML policy statement to the API-level inbound policy section.
WithInboundPolicy(policyXml string) AzureApiManagementApiResource
methodWithInboundPolicyFragmentbuilder
Includes a policy fragment in the API-level inbound policy.
WithInboundPolicyFragment(fragment AzureApiManagementPolicyFragmentResource) AzureApiManagementApiResource
methodWithOpenApiDocumentbuilder
Imports an OpenAPI document from a file into an API.
WithOpenApiDocument(documentPath string, options ...*WithOpenApiDocumentOptions) AzureApiManagementApiResource
methodWithOpenApiEndpointbuilder
Imports an OpenAPI document exposed by the API's target compute resource.
WithOpenApiEndpoint(options ...*WithOpenApiEndpointOptions) AzureApiManagementApiResource
methodWithPolicybuilder
Replaces the complete API-level policy document.
WithPolicy(policyXml string) AzureApiManagementApiResource

AzureApiManagementResource

methodAddApibuilder
Adds an API that routes requests to an Aspire compute resource.
AddApi(name string, target IComputeResource, path string, options ...*AddApiOptions) AzureApiManagementApiResource
methodAddApiWithoutTargetbuilder
Adds an API whose backend is configured separately.
AddApiWithoutTarget(name string, path string, options ...*AddApiWithoutTargetOptions) AzureApiManagementApiResource
methodAddAzureOpenAIBackendbuilder
Adds an Azure OpenAI deployment as an API Management backend.
AddAzureOpenAIBackend(name string, deployment AzureOpenAIDeploymentResource, options ...*AddAzureOpenAIBackendOptions) AzureApiManagementBackendResource
methodAddBackendbuilder
Adds a configurable backend to the API Management service.
AddBackend(name string, uri *ReferenceExpression, options ...*AddBackendOptions) AzureApiManagementBackendResource
methodAddBackendPoolbuilder
Adds a reusable load-balancing pool to the API Management service.
AddBackendPool(name string, options ...*AddBackendPoolOptions) AzureApiManagementBackendPoolResource
methodAddBlobStorageBackendbuilder
Adds an Azure Blob Storage service as an API Management backend.
AddBlobStorageBackend(name string, blobs AzureBlobStorageResource, options ...*AddBlobStorageBackendOptions) AzureApiManagementBackendResource
methodAddFoundryBackendbuilder
Adds a Microsoft Foundry OpenAI deployment as an API Management backend.
AddFoundryBackend(name string, deployment FoundryDeploymentResource, options ...*AddFoundryBackendOptions) AzureApiManagementBackendResource
methodAddKeyVaultNamedValuebuilder
Adds a Key Vault-backed named value to the API Management service from a polyglot AppHost.
AddKeyVaultNamedValue(name string, vault AzureKeyVaultResource, secretName string, options ...*AddKeyVaultNamedValueOptions) AzureApiManagementNamedValueResource
methodAddNamedValuebuilder
Adds a non-secret named value to the API Management service.
AddNamedValue(name string, value string, options ...*AddNamedValueOptions) AzureApiManagementNamedValueResource
methodAddOpenAIApibuilder
Adds an OpenAI-compatible API backed by an API Management load-balancing pool.
AddOpenAIApi(name string, path string, options ...*AddOpenAIApiOptions) AzureApiManagementApiResource
methodAddPolicyFragmentbuilder
Adds a reusable policy fragment to the API Management service.
AddPolicyFragment(name string, policyXml string, options ...*AddPolicyFragmentOptions) AzureApiManagementPolicyFragmentResource
methodAddProductbuilder
Adds a product to the API Management service.
AddProduct(name string, displayName string, options ...*AddProductOptions) AzureApiManagementProductResource
methodAddSecretNamedValuebuilder
Adds a secret parameter as a named value in the API Management service.
AddSecretNamedValue(name string, value ParameterResource, options ...*AddSecretNamedValueOptions) AzureApiManagementNamedValueResource
methodWithApplicationInsightsbuilder
Sends service-level API Management diagnostics to Application Insights.
WithApplicationInsights(applicationInsights AzureApplicationInsightsResource, options ...*AzureApiManagementDiagnosticOptions) AzureApiManagementResource
methodWithAzureUserAssignedIdentitybuilder
Configures the user-assigned managed identity used by API Management.
WithAzureUserAssignedIdentity(identityResourceBuilder AzureUserAssignedIdentityResource) AzureApiManagementResource
methodWithClassicVirtualNetworkbuilder
Injects a classic Developer or Premium API Management service into a virtual network subnet.
WithClassicVirtualNetwork(subnet AzureSubnetResource, mode AzureApiManagementVirtualNetworkMode) AzureApiManagementResource
methodWithCustomDomainbuilder
Configures a custom hostname from a polyglot AppHost using a certificate stored in Azure Key Vault.
WithCustomDomain(hostname string, vault AzureKeyVaultResource, certificateSecretName string, options ...*WithCustomDomainOptions) AzureApiManagementResource
methodWithInboundPolicybuilder
Appends an XML policy statement to the service-level inbound policy section.
WithInboundPolicy(policyXml string) AzureApiManagementResource
methodWithInboundPolicyFragmentbuilder
Includes a policy fragment in the service-level inbound policy.
WithInboundPolicyFragment(fragment AzureApiManagementPolicyFragmentResource) AzureApiManagementResource
methodWithPolicybuilder
Replaces the complete service-level policy document.
WithPolicy(policyXml string) AzureApiManagementResource
methodWithVirtualNetworkInjectionbuilder
Injects a Premium v2 API Management service into a virtual network for private inbound and outbound access.
WithVirtualNetworkInjection(subnet AzureSubnetResource) AzureApiManagementResource
methodWithVirtualNetworkIntegrationbuilder
Integrates a Standard v2 or Premium v2 API Management service with a virtual network for outbound access.
WithVirtualNetworkIntegration(subnet AzureSubnetResource) AzureApiManagementResource