Aspire.Hosting.Azure.ApiManagement
Official
📦 Aspire.Hosting.Azure.ApiManagementv17.0.0-preview.1.26567.538Functions
24Types
24 types and 0 members
Types
handle
AzureApiManagementApiResource9 memberstype
AzureApiManagementBackendOptions6 fieldshandle
AzureApiManagementBackendPoolResource1 membershandle
AzureApiManagementBackendResourcetype
AzureApiManagementCircuitBreakerOptions6 fieldstype
AzureApiManagementDiagnosticOptions3 fieldshandle
AzureApiManagementNamedValueResourcehandle
AzureApiManagementOperationResource3 memberstype
AzureApiManagementOptions4 fieldshandle
AzureApiManagementPolicyFragmentResourcetype
AzureApiManagementProductOptions6 fieldshandle
AzureApiManagementProductResource2 membershandle
AzureApiManagementResource22 memberstype
AzureApiManagementStatusCodeRange2 fieldstype
AzureApiManagementSubscriptionOptions2 fieldshandle
AzureApiManagementSubscriptionResourceFunctions
method
addApibuilderAdds an API that routes requests to an Aspire compute resource.
addApi(name: string, target: IComputeResource, path: string, displayName?: string, subscriptionRequired?: boolean, apiName?: string): AzureApiManagementApiResourcemethod
addApiWithoutTargetbuilderAdds an API whose backend is configured separately.
addApiWithoutTarget(name: string, path: string, displayName?: string, subscriptionRequired?: boolean, apiName?: string): AzureApiManagementApiResourcemethod
addAzureApiManagementbuilderAdds an Azure API Management service.
addAzureApiManagement(name: string, options: AzureApiManagementOptions): AzureApiManagementResourcemethod
addAzureOpenAIBackendbuilderAdds an Azure OpenAI deployment as an API Management backend.
addAzureOpenAIBackend(name: string, deployment: AzureOpenAIDeploymentResource, backendName?: string): AzureApiManagementBackendResourcemethod
addBackendbuilderAdds a configurable backend to the API Management service.
addBackend(name: string, uri: ReferenceExpression, options?: AzureApiManagementBackendOptions, backendName?: string): AzureApiManagementBackendResourcemethod
addBackendPoolbuilderAdds a reusable load-balancing pool to the API Management service.
addBackendPool(name: string, displayName?: string, backendPoolName?: string): AzureApiManagementBackendPoolResourcemethod
addBackendPoolMemberbuilderAdds a backend to a load-balancing pool.
addBackendPoolMember(backend: AzureApiManagementBackendResource, priority?: number, weight?: number): AzureApiManagementBackendPoolResourcemethod
addBlobStorageBackendbuilderAdds an Azure Blob Storage service as an API Management backend.
addBlobStorageBackend(name: string, blobs: AzureBlobStorageResource, backendName?: string): AzureApiManagementBackendResourcemethod
addFoundryBackendbuilderAdds a Microsoft Foundry OpenAI deployment as an API Management backend.
addFoundryBackend(name: string, deployment: FoundryDeploymentResource, backendName?: string): AzureApiManagementBackendResourcemethod
addKeyVaultNamedValuebuilderAdds 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[]): AzureApiManagementNamedValueResourcemethod
addNamedValuebuilderAdds a non-secret named value to the API Management service.
addNamedValue(name: string, value: string, displayName?: string, namedValueName?: string, tags?: string[]): AzureApiManagementNamedValueResourcemethod
addOpenAIApibuilderAdds an OpenAI-compatible API backed by an API Management load-balancing pool.
addOpenAIApi(name: string, path: string, displayName?: string, subscriptionRequired?: boolean, apiName?: string): AzureApiManagementApiResourcemethod
addOperationbuilderAdds an explicitly modeled operation to an API.
addOperation(name: string, method: string, urlTemplate: string, displayName?: string, operationName?: string): AzureApiManagementOperationResourcemethod
addPolicyFragmentbuilderAdds a reusable policy fragment to the API Management service.
addPolicyFragment(name: string, policyXml: string, description?: string, fragmentName?: string): AzureApiManagementPolicyFragmentResourcemethod
addProductbuilderAdds a product to the API Management service.
addProduct(name: string, displayName: string, options?: AzureApiManagementProductOptions, productName?: string): AzureApiManagementProductResourcemethod
addSecretNamedValuebuilderAdds a secret parameter as a named value in the API Management service.
addSecretNamedValue(name: string, value: ParameterResource, displayName?: string, namedValueName?: string, tags?: string[]): AzureApiManagementNamedValueResourcemethod
addSubscriptionbuilderAdds a subscription scoped to an API Management product.
addSubscription(name: string, displayName: string, options?: AzureApiManagementSubscriptionOptions, subscriptionName?: string): AzureApiManagementSubscriptionResourcemethod
withApibuilderAdds an API to an API Management product.
withApi(api: AzureApiManagementApiResource): AzureApiManagementProductResourcemethod
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 service-level API Management diagnostics to Application Insights.
withApplicationInsights(applicationInsights: AzureApplicationInsightsResource, options?: AzureApiManagementDiagnosticOptions): AzureApiManagementResourcemethod
withApplicationInsightsbuilderSends API-level API Management diagnostics to Application Insights.
withApplicationInsights(applicationInsights: AzureApplicationInsightsResource, options?: AzureApiManagementDiagnosticOptions): AzureApiManagementApiResourcemethod
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, type?: AzureApiManagementHostnameType, defaultSslBinding?: boolean, negotiateClientCertificate?: boolean): AzureApiManagementResourcemethod
withInboundPolicybuilderAppends an XML policy statement to the service-level inbound policy section.
withInboundPolicy(policyXml: string): AzureApiManagementResourcemethod
withInboundPolicybuilderAppends an XML policy statement to the API-level inbound policy section.
withInboundPolicy(policyXml: string): AzureApiManagementApiResourcemethod
withInboundPolicybuilderAppends an XML policy statement to the operation-level inbound policy section.
withInboundPolicy(policyXml: string): AzureApiManagementOperationResourcemethod
withInboundPolicyFragmentbuilderIncludes a policy fragment in the service-level inbound policy.
withInboundPolicyFragment(fragment: AzureApiManagementPolicyFragmentResource): AzureApiManagementResourcemethod
withInboundPolicyFragmentbuilderIncludes a policy fragment in the API-level inbound policy.
withInboundPolicyFragment(fragment: AzureApiManagementPolicyFragmentResource): AzureApiManagementApiResourcemethod
withInboundPolicyFragmentbuilderIncludes a policy fragment in the operation-level inbound policy.
withInboundPolicyFragment(fragment: AzureApiManagementPolicyFragmentResource): AzureApiManagementOperationResourcemethod
withOpenApiDocumentbuilderImports an OpenAPI document from a file into an API.
withOpenApiDocument(documentPath: string, format?: AzureApiManagementOpenApiFormat): AzureApiManagementApiResourcemethod
withOpenApiEndpointbuilderImports an OpenAPI document exposed by the API's target compute resource.
withOpenApiEndpoint(documentPath?: string, endpointName?: string, format?: AzureApiManagementOpenApiFormat): AzureApiManagementApiResourcemethod
withPolicybuilderReplaces the complete service-level policy document.
withPolicy(policyXml: string): AzureApiManagementResourcemethod
withPolicybuilderReplaces the complete API-level policy document.
withPolicy(policyXml: string): AzureApiManagementApiResourcemethod
withPolicybuilderReplaces the complete operation-level policy document.
withPolicy(policyXml: string): AzureApiManagementOperationResourcemethod
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): AzureApiManagementResourceEnums
enum
AzureApiManagementBackendProtocol2 valuesenum
AzureApiManagementDiagnosticVerbosity3 valuesenum
AzureApiManagementHostnameType6 valuesenum
AzureApiManagementOpenApiFormat3 valuesenum
AzureApiManagementProductState2 valuesenum
AzureApiManagementSku8 valuesenum
AzureApiManagementSubscriptionState6 valuesenum
AzureApiManagementVirtualNetworkMode2 values