# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand. overlay: 1.0.0 info: title: API Evangelist conversational phrasing for Azure API Management REST Policy API version: 1.0.0 extends: openapi/microsoft-azure-api-management-policy-api-openapi.yml actions: - target: $.info update: x-apievangelist-phrasing: method: generated generated: '2026-10-01' generator: build-phrasing.py label: Generated by API Evangelist operations: 5 - target: $.paths['/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies'].get update: x-apievangelist-phrasing: intent: List the global policies of the service effect: read questions: - What global policy definitions apply across my whole API Management instance? - Can I see the service-wide policies that run before API-level ones? instructions: - text: List the global policies for my API Management service {serviceName}. slots: serviceName: path.serviceName - text: Show all service-wide policy definitions. method: generated generated: '2026-10-01' - target: $.paths['/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}'].get update: x-apievangelist-phrasing: intent: Get the global policy effect: read questions: - How do I read the global policy XML for all my APIs? - What does the all-APIs policy currently contain? instructions: - text: Get global policy {policyId} of API Management service {serviceName}. slots: policyId: path.policyId serviceName: path.serviceName - text: Show me the service-level policy XML. method: generated generated: '2026-10-01' - target: $.paths['/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}'].put update: x-apievangelist-phrasing: intent: Set the global policy effect: write questions: - How do I apply a policy, like CORS, to every API in the service at once? - Can I overwrite the global policy configuration? instructions: - text: Set global policy {policyId} on service {serviceName} to my new XML. slots: policyId: path.policyId serviceName: path.serviceName - text: Replace the all-APIs policy with my new XML. method: generated generated: '2026-10-01' - target: $.paths['/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}'].delete update: x-apievangelist-phrasing: intent: Delete the global policy effect: destructive questions: - Can I remove the global policy so only API-level policies apply? - What happens to service-wide behavior when the global policy is deleted? instructions: - text: Delete global policy {policyId} from service {serviceName}. slots: policyId: path.policyId serviceName: path.serviceName - text: Remove the service-wide policy. method: generated generated: '2026-10-01' - target: $.paths['/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policies/{policyId}'].head update: x-apievangelist-phrasing: intent: Check the global policy's ETag effect: read questions: - How do I get the ETag of the global policy before updating it? - Can I check whether a global policy is defined? instructions: - text: Get the entity tag version of global policy {policyId} on service {serviceName}. slots: policyId: path.policyId serviceName: path.serviceName - text: Check whether my service has a global policy. method: generated generated: '2026-10-01'