Microsoft Azure

Azure CDN: Afdx

Use these APIs to manage Azure Front Door resources through the Azure Resource Manager. You must make sure that requests made to these resources are secure.

Developer tools#openapi

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Use these APIs to manage Azure Front Door resources through the Azure Resource Manager. You must make sure that requests made to these resources are secure.

Endpoints 61

CheckEndpointNameAvailability

  • POSTCheckEndpointNameAvailability/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/checkEndpointNameAvailabilityCheck the availability of a resource name. This is needed for resources where name is globally unique, such as a afdx endpoint.

AFDProfiles

  • POSTAFDProfiles_CheckEndpointNameAvailability/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/checkEndpointNameAvailabilityCheck the availability of an afdx endpoint name, and return the globally unique endpoint host name.
  • POSTAFDProfiles_ListResourceUsage/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/usagesChecks the quota and actual usage of endpoints under the given Azure Front Door profile.
  • POSTAFDProfiles_CheckHostNameAvailability/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/checkHostNameAvailabilityValidates the custom domain mapping to ensure it maps to the correct Azure Front Door endpoint in DNS.
  • POSTAFDProfiles_ValidateSecret/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/validateSecretValidate a Secret in the profile.
  • POSTAFDProfiles_Upgrade/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/upgradeUpgrade a profile from Standard_AzureFrontDoor to Premium_AzureFrontDoor.

AFDCustomDomains

  • GETAFDCustomDomains_ListByProfile/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/customDomainsLists existing AzureFrontDoor domains.
  • GETAFDCustomDomains_Get/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/customDomains/:customDomainNameGets an existing AzureFrontDoor domain with the specified domain name under the specified subscription, resource group and profile.
  • PUTAFDCustomDomains_Create/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/customDomains/:customDomainNameCreates a new domain within the specified profile.
  • DELETEAFDCustomDomains_Delete/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/customDomains/:customDomainNameDeletes an existing AzureFrontDoor domain with the specified domain name under the specified subscription, resource group and profile.
  • PATCHAFDCustomDomains_Update/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/customDomains/:customDomainNameUpdates an existing domain within a profile.
  • POSTAFDCustomDomains_RefreshValidationToken/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/customDomains/:customDomainName/refreshValidationTokenUpdates the domain validation token.

AFDEndpoints

  • GETAFDEndpoints_ListByProfile/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/afdEndpointsLists existing AzureFrontDoor endpoints.
  • GETAFDEndpoints_Get/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/afdEndpoints/:endpointNameGets an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
  • PUTAFDEndpoints_Create/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/afdEndpoints/:endpointNameCreates a new AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
  • DELETEAFDEndpoints_Delete/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/afdEndpoints/:endpointNameDeletes an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
  • PATCHAFDEndpoints_Update/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/afdEndpoints/:endpointNameUpdates an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile. Only tags can be…
  • POSTAFDEndpoints_PurgeContent/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/afdEndpoints/:endpointName/purgeRemoves a content from AzureFrontDoor.
  • POSTAFDEndpoints_ListResourceUsage/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/afdEndpoints/:endpointName/usagesChecks the quota and actual usage of endpoints under the given Azure Front Door profile.
  • POSTAFDEndpoints_ValidateCustomDomain/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/afdEndpoints/:endpointName/validateCustomDomainValidates the custom domain mapping to ensure it maps to the correct Azure Front Door endpoint in DNS.

AFDOriginGroups

  • GETAFDOriginGroups_ListByProfile/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/originGroupsLists all of the existing origin groups within a profile.
  • GETAFDOriginGroups_Get/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/originGroups/:originGroupNameGets an existing origin group within a profile.
  • PUTAFDOriginGroups_Create/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/originGroups/:originGroupNameCreates a new origin group within the specified profile.
  • DELETEAFDOriginGroups_Delete/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/originGroups/:originGroupNameDeletes an existing origin group within a profile.
  • PATCHAFDOriginGroups_Update/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/originGroups/:originGroupNameUpdates an existing origin group within a profile.
  • POSTAFDOriginGroups_ListResourceUsage/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/originGroups/:originGroupName/usagesChecks the quota and actual usage of endpoints under the given Azure Front Door profile..

AFDOrigins

  • GETAFDOrigins_ListByOriginGroup/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/originGroups/:originGroupName/originsLists all of the existing origins within an origin group.
  • GETAFDOrigins_Get/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/originGroups/:originGroupName/origins/:originNameGets an existing origin within an origin group.
  • PUTAFDOrigins_Create/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/originGroups/:originGroupName/origins/:originNameCreates a new origin within the specified origin group.
  • DELETEAFDOrigins_Delete/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/originGroups/:originGroupName/origins/:originNameDeletes an existing origin within an origin group.
  • PATCHAFDOrigins_Update/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/originGroups/:originGroupName/origins/:originNameUpdates an existing origin within an origin group.

Routes

  • GETRoutes_ListByEndpoint/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/afdEndpoints/:endpointName/routesLists all of the existing origins within a profile.
  • GETRoutes_Get/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/afdEndpoints/:endpointName/routes/:routeNameGets an existing route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint.
  • PUTRoutes_Create/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/afdEndpoints/:endpointName/routes/:routeNameCreates a new route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint.
  • DELETERoutes_Delete/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/afdEndpoints/:endpointName/routes/:routeNameDeletes an existing route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint.
  • PATCHRoutes_Update/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/afdEndpoints/:endpointName/routes/:routeNameUpdates an existing route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint.

RuleSets

  • GETRuleSets_ListByProfile/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/ruleSetsLists existing AzureFrontDoor rule sets within a profile.
  • GETRuleSets_Get/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/ruleSets/:ruleSetNameGets an existing AzureFrontDoor rule set with the specified rule set name under the specified subscription, resource group and profile.
  • PUTRuleSets_Create/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/ruleSets/:ruleSetNameCreates a new rule set within the specified profile.
  • DELETERuleSets_Delete/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/ruleSets/:ruleSetNameDeletes an existing AzureFrontDoor rule set with the specified rule set name under the specified subscription, resource group and profile.
  • POSTRuleSets_ListResourceUsage/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/ruleSets/:ruleSetName/usagesChecks the quota and actual usage of endpoints under the given Azure Front Door profile..

Rules

  • GETRules_ListByRuleSet/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/ruleSets/:ruleSetName/rulesLists all of the existing delivery rules within a rule set.
  • GETRules_Get/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/ruleSets/:ruleSetName/rules/:ruleNameGets an existing delivery rule within a rule set.
  • PUTRules_Create/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/ruleSets/:ruleSetName/rules/:ruleNameCreates a new delivery rule within the specified rule set.
  • DELETERules_Delete/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/ruleSets/:ruleSetName/rules/:ruleNameDeletes an existing delivery rule within a rule set.
  • PATCHRules_Update/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/ruleSets/:ruleSetName/rules/:ruleNameUpdates an existing delivery rule within a rule set.

SecurityPolicies

  • GETSecurityPolicies_ListByProfile/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/securityPoliciesLists security policies associated with the profile
  • GETSecurityPolicies_Get/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/securityPolicies/:securityPolicyNameGets an existing security policy within a profile.
  • PUTSecurityPolicies_Create/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/securityPolicies/:securityPolicyNameCreates a new security policy within the specified profile.
  • DELETESecurityPolicies_Delete/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/securityPolicies/:securityPolicyNameDeletes an existing security policy within profile.
  • PATCHSecurityPolicies_Patch/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/securityPolicies/:securityPolicyNameUpdates an existing security policy within a profile.

Secrets

  • GETSecrets_ListByProfile/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/secretsLists existing AzureFrontDoor secrets.
  • GETSecrets_Get/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/secrets/:secretNameGets an existing Secret within a profile.
  • PUTSecrets_Create/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/secrets/:secretNameCreates a new Secret within the specified profile.
  • DELETESecrets_Delete/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/secrets/:secretNameDeletes an existing Secret within profile.

LogAnalytics

  • GETLogAnalytics_GetLogAnalyticsMetrics/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/getLogAnalyticsMetrics?metrics=clientRequestCount&dateTimeBegin=2024-01-01T00:00:00Z&dateTimeEnd=2024-01-01T00:00:00Z&granularity=PT5M&groupBy=httpStatusCode&continents=string&countryOrRegions=string&customDomains=string&protocols=stringGet log report for AFD profile
  • GETLogAnalytics_GetLogAnalyticsRankings/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/getLogAnalyticsRankings?rankings=url&metrics=clientRequestCount&maxRanking=0&dateTimeBegin=2024-01-01T00:00:00Z&dateTimeEnd=2024-01-01T00:00:00Z&customDomains=stringGet log analytics ranking report for AFD profile
  • GETLogAnalytics_GetLogAnalyticsLocations/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/getLogAnalyticsLocationsGet all available location names for AFD log analytics report.
  • GETLogAnalytics_GetLogAnalyticsResources/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/getLogAnalyticsResourcesGet all endpoints and custom domains available for AFD log report

WafLogAnalytics

  • GETLogAnalytics_GetWafLogAnalyticsMetrics/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/getWafLogAnalyticsMetrics?metrics=clientRequestCount&dateTimeBegin=2024-01-01T00:00:00Z&dateTimeEnd=2024-01-01T00:00:00Z&granularity=PT5M&actions=allow&groupBy=httpStatusCode&ruleTypes=managedGet Waf related log analytics report for AFD profile.
  • GETLogAnalytics_GetWafLogAnalyticsRankings/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/profiles/:profileName/getWafLogAnalyticsRankings?metrics=clientRequestCount&dateTimeBegin=2024-01-01T00:00:00Z&dateTimeEnd=2024-01-01T00:00:00Z&maxRanking=0&rankings=action&actions=allow&ruleTypes=managedGet WAF log analytics charts for AFD profile

API details

Base URL
https://management.azure.com
Authentication
OAuth 2.0 (implicit flow) with 1 scope
Operations
61 operations on 36 pathsGET 24POST 12PUT 9DELETE 9PATCH 7
Main resources
AFDEndpoints 8AFDCustomDomains 6AFDOriginGroups 6AFDOrigins 5AFDProfiles 5Routes 5RuleSets 5Rules 5SecurityPolicies 5LogAnalytics 4
Response formats
application/json
Description format
Swagger 2.0, API version 2025-04-15

How to test the Azure CDN: Afdx in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Azure CDN: Afdx collection, without the publisher's secrets.
  3. Add your credentialsThis API uses OAuth 2.0 (implicit flow) with 1 scope. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “CheckEndpointNameAvailability” (POST /subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Cdn/checkEndpointNameAvailability), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Azure CDN: Afdx?

Use these APIs to manage Azure Front Door resources through the Azure Resource Manager. You must make sure that requests made to these resources are secure. It is listed under Developer tools and has 61 endpoints.

Who publishes the Azure CDN: Afdx?

It is listed from Microsoft Azure's public API description (an OpenAPI document), not published by Microsoft Azure on Swastik Codes. Anyone who controls azure.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Azure CDN: Afdx?

Requests go to https://management.azure.com. Endpoint paths are added to this base URL.

How do I authenticate with the Azure CDN: Afdx?

With OAuth 2.0 (implicit flow) with 1 scope.

How many endpoints does the Azure CDN: Afdx have?

61 operations on 36 paths (24 GET, 12 POST, 9 PUT, 9 DELETE, 7 PATCH). The largest groups are AFDEndpoints, AFDCustomDomains, AFDOriginGroups, AFDOrigins.

Is forking the Azure CDN: Afdx free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.