WithPolicy

Method
📦 Aspire.Hosting.Azure.ApiManagement v17.0.0-preview.1.26567.5
func (AzureApiManagementApiResource) WithPolicy(policyXml string) AzureApiManagementApiResource

Signature

methodWithPolicybuilder
Replaces the complete API-level policy document.
WithPolicy(policyXml string) AzureApiManagementApiResource
policyXmlstringA complete APIM policies XML document.
AzureApiManagementApiResource

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: