# Aspire.Hosting.Azure.ApiManagement

- Module: `Aspire.Hosting.Azure.ApiManagement`
- Version: `17.0.0-preview.1.26567.5`
- Import path: `apphost/modules/aspire`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)
- Functions: `38`
- Types: `31`

## Handles

- [AzureApiManagementApiResource](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementapiresource.md) -- `handle` - 9 members -- Represents an API hosted by an Azure API Management service.
- [AzureApiManagementBackendPoolResource](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementbackendpoolresource.md) -- `handle` - 1 members -- Represents a load-balancing pool of Azure API Management backends.
- [AzureApiManagementBackendResource](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementbackendresource.md) -- `handle` - 0 members -- Represents a single backend registered with an Azure API Management service.
- [AzureApiManagementNamedValueResource](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementnamedvalueresource.md) -- `handle` - 0 members
- [AzureApiManagementOperationResource](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementoperationresource.md) -- `handle` - 3 members -- Represents an operation in an Azure API Management API.
- [AzureApiManagementPolicyFragmentResource](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementpolicyfragmentresource.md) -- `handle` - 0 members
- [AzureApiManagementProductResource](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementproductresource.md) -- `handle` - 2 members
- [AzureApiManagementResource](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementresource.md) -- `handle` - 22 members -- Represents an Azure API Management service.
- [AzureApiManagementSubscriptionResource](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementsubscriptionresource.md) -- `handle` - 0 members
- [AzureApplicationInsightsResource](/reference/api/go/aspire.hosting.azure.apimanagement/azureapplicationinsightsresource.md) -- `handle` - 0 members
- [AzureBlobStorageResource](/reference/api/go/aspire.hosting.azure.apimanagement/azureblobstorageresource.md) -- `handle` - 0 members
- [AzureKeyVaultResource](/reference/api/go/aspire.hosting.azure.apimanagement/azurekeyvaultresource.md) -- `handle` - 0 members
- [AzureOpenAIDeploymentResource](/reference/api/go/aspire.hosting.azure.apimanagement/azureopenaideploymentresource.md) -- `handle` - 0 members
- [AzureSubnetResource](/reference/api/go/aspire.hosting.azure.apimanagement/azuresubnetresource.md) -- `handle` - 0 members
- [AzureUserAssignedIdentityResource](/reference/api/go/aspire.hosting.azure.apimanagement/azureuserassignedidentityresource.md) -- `handle` - 0 members
- [FoundryDeploymentResource](/reference/api/go/aspire.hosting.azure.apimanagement/foundrydeploymentresource.md) -- `handle` - 0 members

## DTOs

- [AzureApiManagementBackendOptions](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementbackendoptions.md) -- `struct` - 6 fields -- Configures an Azure API Management backend.
- [AzureApiManagementCircuitBreakerOptions](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementcircuitbreakeroptions.md) -- `struct` - 6 fields -- Configures a circuit breaker for an Azure API Management backend.
- [AzureApiManagementDiagnosticOptions](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementdiagnosticoptions.md) -- `struct` - 3 fields -- Configures an Azure API Management Application Insights diagnostic.
- [AzureApiManagementOptions](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementoptions.md) -- `struct` - 4 fields -- Configures an Azure API Management service.
- [AzureApiManagementProductOptions](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementproductoptions.md) -- `struct` - 6 fields -- Configures an Azure API Management product.
- [AzureApiManagementStatusCodeRange](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementstatuscoderange.md) -- `struct` - 2 fields -- Represents an inclusive HTTP status-code range used by an API Management circuit breaker.
- [AzureApiManagementSubscriptionOptions](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementsubscriptionoptions.md) -- `struct` - 2 fields -- Configures an Azure API Management subscription.

## Enums

- [AzureApiManagementBackendProtocol](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementbackendprotocol.md) -- `enum` - 2 values -- Specifies the protocol used to communicate with an API Management backend.
- [AzureApiManagementDiagnosticVerbosity](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementdiagnosticverbosity.md) -- `enum` - 3 values -- Specifies the verbosity of an API Management diagnostic.
- [AzureApiManagementHostnameType](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementhostnametype.md) -- `enum` - 6 values -- Specifies an Azure API Management custom-hostname endpoint.
- [AzureApiManagementOpenApiFormat](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementopenapiformat.md) -- `enum` - 3 values -- Specifies the OpenAPI document format imported into Azure API Management.
- [AzureApiManagementProductState](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementproductstate.md) -- `enum` - 2 values -- Specifies the publication state of an API Management product.
- [AzureApiManagementSku](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementsku.md) -- `enum` - 8 values -- Specifies the pricing tier for an Azure API Management service.
- [AzureApiManagementSubscriptionState](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementsubscriptionstate.md) -- `enum` - 6 values -- Specifies the state of an API Management subscription.
- [AzureApiManagementVirtualNetworkMode](/reference/api/go/aspire.hosting.azure.apimanagement/azureapimanagementvirtualnetworkmode.md) -- `enum` - 2 values -- Specifies how a classic Azure API Management service is injected into a virtual network.

## Functions

- [AddOperation](/reference/api/go/aspire.hosting.azure.apimanagement/addoperation.md) -- `method` - on `AzureApiManagementApiResource` -- Adds an explicitly modeled operation to an API.
- [WithApiBackend](/reference/api/go/aspire.hosting.azure.apimanagement/withapibackend.md) -- `method` - on `AzureApiManagementApiResource` -- Configures an API to route requests to a backend.
- [WithApiBackendPool](/reference/api/go/aspire.hosting.azure.apimanagement/withapibackendpool.md) -- `method` - on `AzureApiManagementApiResource` -- Configures an API to route requests to a backend pool.
- [WithApplicationInsights](/reference/api/go/aspire.hosting.azure.apimanagement/withapplicationinsights-azureapimanagementapiresource-azureapplicationinsightsresource.md) -- `method` - on `AzureApiManagementApiResource` -- Sends API-level API Management diagnostics to Application Insights.
- [WithInboundPolicy](/reference/api/go/aspire.hosting.azure.apimanagement/withinboundpolicy-azureapimanagementapiresource-string.md) -- `method` - on `AzureApiManagementApiResource` -- Appends an XML policy statement to the API-level inbound policy section.
- [WithInboundPolicyFragment](/reference/api/go/aspire.hosting.azure.apimanagement/withinboundpolicyfragment-azureapimanagementapiresource-azureapimanagementpolicyfragmentresource.md) -- `method` - on `AzureApiManagementApiResource` -- Includes a policy fragment in the API-level inbound policy.
- [WithOpenApiDocument](/reference/api/go/aspire.hosting.azure.apimanagement/withopenapidocument.md) -- `method` - on `AzureApiManagementApiResource` -- Imports an OpenAPI document from a file into an API.
- [WithOpenApiEndpoint](/reference/api/go/aspire.hosting.azure.apimanagement/withopenapiendpoint.md) -- `method` - on `AzureApiManagementApiResource` -- Imports an OpenAPI document exposed by the API's target compute resource.
- [WithPolicy](/reference/api/go/aspire.hosting.azure.apimanagement/withpolicy-azureapimanagementapiresource-string.md) -- `method` - on `AzureApiManagementApiResource` -- Replaces the complete API-level policy document.
- [AddBackendPoolMember](/reference/api/go/aspire.hosting.azure.apimanagement/addbackendpoolmember.md) -- `method` - on `AzureApiManagementBackendPoolResource` -- Adds a backend to a load-balancing pool.
- [WithInboundPolicy](/reference/api/go/aspire.hosting.azure.apimanagement/withinboundpolicy-azureapimanagementoperationresource-string.md) -- `method` - on `AzureApiManagementOperationResource` -- Appends an XML policy statement to the operation-level inbound policy section.
- [WithInboundPolicyFragment](/reference/api/go/aspire.hosting.azure.apimanagement/withinboundpolicyfragment-azureapimanagementoperationresource-azureapimanagementpolicyfragmentresource.md) -- `method` - on `AzureApiManagementOperationResource` -- Includes a policy fragment in the operation-level inbound policy.
- [WithPolicy](/reference/api/go/aspire.hosting.azure.apimanagement/withpolicy-azureapimanagementoperationresource-string.md) -- `method` - on `AzureApiManagementOperationResource` -- Replaces the complete operation-level policy document.
- [AddSubscription](/reference/api/go/aspire.hosting.azure.apimanagement/addsubscription.md) -- `method` - on `AzureApiManagementProductResource` -- Adds a subscription scoped to an API Management product.
- [WithApi](/reference/api/go/aspire.hosting.azure.apimanagement/withapi.md) -- `method` - on `AzureApiManagementProductResource` -- Adds an API to an API Management product.
- [AddApi](/reference/api/go/aspire.hosting.azure.apimanagement/addapi.md) -- `method` - on `AzureApiManagementResource` -- Adds an API that routes requests to an Aspire compute resource.
- [AddApiWithoutTarget](/reference/api/go/aspire.hosting.azure.apimanagement/addapiwithouttarget.md) -- `method` - on `AzureApiManagementResource` -- Adds an API whose backend is configured separately.
- [AddAzureOpenAIBackend](/reference/api/go/aspire.hosting.azure.apimanagement/addazureopenaibackend.md) -- `method` - on `AzureApiManagementResource` -- Adds an Azure OpenAI deployment as an API Management backend.
- [AddBackend](/reference/api/go/aspire.hosting.azure.apimanagement/addbackend.md) -- `method` - on `AzureApiManagementResource` -- Adds a configurable backend to the API Management service.
- [AddBackendPool](/reference/api/go/aspire.hosting.azure.apimanagement/addbackendpool.md) -- `method` - on `AzureApiManagementResource` -- Adds a reusable load-balancing pool to the API Management service.
- [AddBlobStorageBackend](/reference/api/go/aspire.hosting.azure.apimanagement/addblobstoragebackend.md) -- `method` - on `AzureApiManagementResource` -- Adds an Azure Blob Storage service as an API Management backend.
- [AddFoundryBackend](/reference/api/go/aspire.hosting.azure.apimanagement/addfoundrybackend.md) -- `method` - on `AzureApiManagementResource` -- Adds a Microsoft Foundry OpenAI deployment as an API Management backend.
- [AddKeyVaultNamedValue](/reference/api/go/aspire.hosting.azure.apimanagement/addkeyvaultnamedvalue.md) -- `method` - on `AzureApiManagementResource` -- Adds a Key Vault-backed named value to the API Management service from a polyglot AppHost.
- [AddNamedValue](/reference/api/go/aspire.hosting.azure.apimanagement/addnamedvalue.md) -- `method` - on `AzureApiManagementResource` -- Adds a non-secret named value to the API Management service.
- [AddOpenAIApi](/reference/api/go/aspire.hosting.azure.apimanagement/addopenaiapi.md) -- `method` - on `AzureApiManagementResource` -- Adds an OpenAI-compatible API backed by an API Management load-balancing pool.
- [AddPolicyFragment](/reference/api/go/aspire.hosting.azure.apimanagement/addpolicyfragment.md) -- `method` - on `AzureApiManagementResource` -- Adds a reusable policy fragment to the API Management service.
- [AddProduct](/reference/api/go/aspire.hosting.azure.apimanagement/addproduct.md) -- `method` - on `AzureApiManagementResource` -- Adds a product to the API Management service.
- [AddSecretNamedValue](/reference/api/go/aspire.hosting.azure.apimanagement/addsecretnamedvalue.md) -- `method` - on `AzureApiManagementResource` -- Adds a secret parameter as a named value in the API Management service.
- [WithApplicationInsights](/reference/api/go/aspire.hosting.azure.apimanagement/withapplicationinsights-azureapimanagementresource-azureapplicationinsightsresource.md) -- `method` - on `AzureApiManagementResource` -- Sends service-level API Management diagnostics to Application Insights.
- [WithAzureUserAssignedIdentity](/reference/api/go/aspire.hosting.azure.apimanagement/withazureuserassignedidentity.md) -- `method` - on `AzureApiManagementResource` -- Configures the user-assigned managed identity used by API Management.
- [WithClassicVirtualNetwork](/reference/api/go/aspire.hosting.azure.apimanagement/withclassicvirtualnetwork.md) -- `method` - on `AzureApiManagementResource` -- Injects a classic Developer or Premium API Management service into a virtual network subnet.
- [WithCustomDomain](/reference/api/go/aspire.hosting.azure.apimanagement/withcustomdomain.md) -- `method` - on `AzureApiManagementResource` -- Configures a custom hostname from a polyglot AppHost using a certificate stored in Azure Key Vault.
- [WithInboundPolicy](/reference/api/go/aspire.hosting.azure.apimanagement/withinboundpolicy-azureapimanagementresource-string.md) -- `method` - on `AzureApiManagementResource` -- Appends an XML policy statement to the service-level inbound policy section.
- [WithInboundPolicyFragment](/reference/api/go/aspire.hosting.azure.apimanagement/withinboundpolicyfragment-azureapimanagementresource-azureapimanagementpolicyfragmentresource.md) -- `method` - on `AzureApiManagementResource` -- Includes a policy fragment in the service-level inbound policy.
- [WithPolicy](/reference/api/go/aspire.hosting.azure.apimanagement/withpolicy-azureapimanagementresource-string.md) -- `method` - on `AzureApiManagementResource` -- Replaces the complete service-level policy document.
- [WithVirtualNetworkInjection](/reference/api/go/aspire.hosting.azure.apimanagement/withvirtualnetworkinjection.md) -- `method` - on `AzureApiManagementResource` -- Injects a Premium v2 API Management service into a virtual network for private inbound and outbound access.
- [WithVirtualNetworkIntegration](/reference/api/go/aspire.hosting.azure.apimanagement/withvirtualnetworkintegration.md) -- `method` - on `AzureApiManagementResource` -- Integrates a Standard v2 or Premium v2 API Management service with a virtual network for outbound access.
- [AddAzureApiManagement](/reference/api/go/aspire.hosting.azure.apimanagement/addazureapimanagement.md) -- `method` - on `DistributedApplicationBuilder` -- Adds an Azure API Management service.
