capabilities.work

Azure API Management Apply API Policy

A 3-step recipe with Microsoft Azure API Management. We can help you get access.

Recipe · 3 steps

Azure API Management Apply API Policy

Set the policy document on an API and confirm it.

  1. Read the API to confirm it exists before applying a policy to it.
  2. Create or update the API-scoped policy with the supplied policy document.
  3. Read the policy back to confirm the document was stored on the API.
What you'll need to have ready
  • subscriptionId: The Azure subscription identifier.
  • resourceGroupName: The resource group containing the service.
  • serviceName: The API Management service name.
  • apiId: The API identifier to apply the policy to.
  • policyId: The policy identifier (typically "policy").
  • policyContent: The policy document content (XML or Base64 depending on format).
  • policyFormat: The policy content format (e.g. xml or rawxml).
For your developer

Arazzo workflow microsoft-azure-api-management:apply-api-policy, 3 operations: Api_Get → ApiPolicy_CreateOrUpdate → ApiPolicy_Get. Specs on APIs.io.