Azure / api-management-policy-snippets

Re-usable examples of Azure API Management policies
MIT License
326 stars 147 forks source link

is there any way to export the effective policy assigned to api and operation level to an xml file? #125

Open vivuu1989 opened 4 months ago

vivuu1989 commented 4 months ago

I tried below option, but its not fetching the effective policy assigned to an api or operation, where as its fetching just the policy assigned to them alone

curl --location 'https://management.azure.com/subscriptions/xxxxxxxxxxxx/resourceGroups/xxxxxxxxx/providers/Microsoft.ApiManagement/service/xxxxxxxxxx/apis/apiname/policies/policy?format=xml&api-version=2022-08-01' --header 'Content-Type: application/json' --header 'Authorization: Bearer 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'