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'
You can use the below URL to find out the effective policy in API level.
CURL Request-
I am getting below response-
To get the effective policy in operation level, you can use the below URL.
CURL Request-
Response-