withPolicy

Method
📦 Aspire.Hosting.Azure.ApiManagement v17.0.0-preview.1.26567.5
interface AzureApiManagementApiResource {
// ... omitted for brevity
withPolicy(policyXml: string): AzureApiManagementApiResource;
}

Signature

methodwithPolicybuilder
Replaces the complete API-level policy document.
withPolicy(policyXml: string): AzureApiManagementApiResource
policyXmlstringA complete APIM `policies` XML document.
AzureApiManagementApiResource

Applies to

This method applies to the following types: