Aspire.Hosting.Azure.ApiManagement

Official
📦 Aspire.Hosting.Azure.ApiManagementv17.0.0-preview.1.26567.5
38Functions
24Types

Types

Functions

methodaddApibuilder
Adds an API that routes requests to an Aspire compute resource.
addApi(name: string, target: IComputeResource, path: string, displayName?: string, subscriptionRequired?: boolean, apiName?: string): AzureApiManagementApiResource
methodaddApiWithoutTargetbuilder
Adds an API whose backend is configured separately.
addApiWithoutTarget(name: string, path: string, displayName?: string, subscriptionRequired?: boolean, apiName?: string): AzureApiManagementApiResource
methodaddAzureApiManagementbuilder
Adds an Azure API Management service.
addAzureApiManagement(name: string, options: AzureApiManagementOptions): AzureApiManagementResource
methodaddAzureOpenAIBackendbuilder
Adds an Azure OpenAI deployment as an API Management backend.
addAzureOpenAIBackend(name: string, deployment: AzureOpenAIDeploymentResource, backendName?: string): AzureApiManagementBackendResource
methodaddBackendbuilder
Adds a configurable backend to the API Management service.
addBackend(name: string, uri: ReferenceExpression, options?: AzureApiManagementBackendOptions, backendName?: string): AzureApiManagementBackendResource
methodaddBackendPoolbuilder
Adds a reusable load-balancing pool to the API Management service.
addBackendPool(name: string, displayName?: string, backendPoolName?: string): AzureApiManagementBackendPoolResource
methodaddBackendPoolMemberbuilder
Adds a backend to a load-balancing pool.
addBackendPoolMember(backend: AzureApiManagementBackendResource, priority?: number, weight?: number): AzureApiManagementBackendPoolResource
methodaddBlobStorageBackendbuilder
Adds an Azure Blob Storage service as an API Management backend.
addBlobStorageBackend(name: string, blobs: AzureBlobStorageResource, backendName?: string): AzureApiManagementBackendResource
methodaddFoundryBackendbuilder
Adds a Microsoft Foundry OpenAI deployment as an API Management backend.
addFoundryBackend(name: string, deployment: FoundryDeploymentResource, backendName?: string): 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, displayName?: string, namedValueName?: string, tags?: string[]): AzureApiManagementNamedValueResource
methodaddNamedValuebuilder
Adds a non-secret named value to the API Management service.
addNamedValue(name: string, value: string, displayName?: string, namedValueName?: string, tags?: string[]): AzureApiManagementNamedValueResource
methodaddOpenAIApibuilder
Adds an OpenAI-compatible API backed by an API Management load-balancing pool.
addOpenAIApi(name: string, path: string, displayName?: string, subscriptionRequired?: boolean, apiName?: string): AzureApiManagementApiResource
methodaddOperationbuilder
Adds an explicitly modeled operation to an API.
addOperation(name: string, method: string, urlTemplate: string, displayName?: string, operationName?: string): AzureApiManagementOperationResource
methodaddPolicyFragmentbuilder
Adds a reusable policy fragment to the API Management service.
addPolicyFragment(name: string, policyXml: string, description?: string, fragmentName?: string): AzureApiManagementPolicyFragmentResource
methodaddProductbuilder
Adds a product to the API Management service.
addProduct(name: string, displayName: string, options?: AzureApiManagementProductOptions, productName?: string): AzureApiManagementProductResource
methodaddSecretNamedValuebuilder
Adds a secret parameter as a named value in the API Management service.
addSecretNamedValue(name: string, value: ParameterResource, displayName?: string, namedValueName?: string, tags?: string[]): AzureApiManagementNamedValueResource
methodaddSubscriptionbuilder
Adds a subscription scoped to an API Management product.
addSubscription(name: string, displayName: string, options?: AzureApiManagementSubscriptionOptions, subscriptionName?: string): AzureApiManagementSubscriptionResource
methodwithApibuilder
Adds an API to an API Management product.
withApi(api: AzureApiManagementApiResource): AzureApiManagementProductResource
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 service-level API Management diagnostics to Application Insights.
withApplicationInsights(applicationInsights: AzureApplicationInsightsResource, options?: AzureApiManagementDiagnosticOptions): AzureApiManagementResource
methodwithApplicationInsightsbuilder
Sends API-level API Management diagnostics to Application Insights.
withApplicationInsights(applicationInsights: AzureApplicationInsightsResource, options?: AzureApiManagementDiagnosticOptions): AzureApiManagementApiResource
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, type?: AzureApiManagementHostnameType, defaultSslBinding?: boolean, negotiateClientCertificate?: boolean): AzureApiManagementResource
methodwithInboundPolicybuilder
Appends an XML policy statement to the service-level inbound policy section.
withInboundPolicy(policyXml: string): AzureApiManagementResource
methodwithInboundPolicybuilder
Appends an XML policy statement to the API-level inbound policy section.
withInboundPolicy(policyXml: string): AzureApiManagementApiResource
methodwithInboundPolicybuilder
Appends an XML policy statement to the operation-level inbound policy section.
withInboundPolicy(policyXml: string): AzureApiManagementOperationResource
methodwithInboundPolicyFragmentbuilder
Includes a policy fragment in the service-level inbound policy.
withInboundPolicyFragment(fragment: AzureApiManagementPolicyFragmentResource): AzureApiManagementResource
methodwithInboundPolicyFragmentbuilder
Includes a policy fragment in the API-level inbound policy.
withInboundPolicyFragment(fragment: AzureApiManagementPolicyFragmentResource): AzureApiManagementApiResource
methodwithInboundPolicyFragmentbuilder
Includes a policy fragment in the operation-level inbound policy.
withInboundPolicyFragment(fragment: AzureApiManagementPolicyFragmentResource): AzureApiManagementOperationResource
methodwithOpenApiDocumentbuilder
Imports an OpenAPI document from a file into an API.
withOpenApiDocument(documentPath: string, format?: AzureApiManagementOpenApiFormat): AzureApiManagementApiResource
methodwithOpenApiEndpointbuilder
Imports an OpenAPI document exposed by the API's target compute resource.
withOpenApiEndpoint(documentPath?: string, endpointName?: string, format?: AzureApiManagementOpenApiFormat): AzureApiManagementApiResource
methodwithPolicybuilder
Replaces the complete service-level policy document.
withPolicy(policyXml: string): AzureApiManagementResource
methodwithPolicybuilder
Replaces the complete API-level policy document.
withPolicy(policyXml: string): AzureApiManagementApiResource
methodwithPolicybuilder
Replaces the complete operation-level policy document.
withPolicy(policyXml: string): AzureApiManagementOperationResource
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

Enums