addPolicyFragment
Method
interface AzureApiManagementResource { // ... omitted for brevity addPolicyFragment( name: string, policyXml: string, description?: string, fragmentName?: string): AzureApiManagementPolicyFragmentResource;}Signature
method
addPolicyFragment builderAdds a reusable policy fragment to the API Management service.
addPolicyFragment( name: string, policyXml: string, description?: string, fragmentName?: string): AzureApiManagementPolicyFragmentResourceParameters
namestringThe globally unique Aspire resource name and default physical policy-fragment name.policyXml stringOne or more well-formed APIM policy elements without a `fragment` envelope.descriptionstringoptionalAn optional description.fragmentName stringoptionalThe physical policy-fragment identifier in API Management. The resource name is used when omitted.Returns
AzureApiManagementPolicyFragmentResource Applies to
This method applies to the following types: