Azure Networking Services Ddos Custom Policies API
The ddosCustomPolicies API from Azure Networking Services — 3 operation(s) for ddoscustompolicies.
The ddosCustomPolicies API from Azure Networking Services — 3 operation(s) for ddoscustompolicies.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/azure-networking-services:azure-networking-services-ddoscustompolicies-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: WebApplicationFirewallManagement Ddos Custom Policies API
version: '2026-03-01'
description: APIs to manage Microsoft Azure network resources.
x-typespec-generated:
- emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
- user_impersonation
tags:
- name: ddosCustomPolicies
paths:
/subscriptions/{subscriptionId}/providers/Microsoft.Network/ddosCustomPolicies:
get:
operationId: DdosCustomPolicies_ListAll
tags:
- ddosCustomPolicies
description: Gets all the DDoS custom policies in a subscription.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/DdosCustomPolicyListResult'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/CloudError'
x-ms-pageable:
nextLinkName: nextLink
summary: Ddos custom policies list all
x-summary-source: derived
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosCustomPolicies:
get:
operationId: DdosCustomPolicies_List
tags:
- ddosCustomPolicies
description: Gets all the DDoS custom policies in a resource group.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/DdosCustomPolicyListResult'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/CloudError'
x-ms-pageable:
nextLinkName: nextLink
summary: Ddos custom policies list
x-summary-source: derived
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosCustomPolicies/{ddosCustomPolicyName}
: get:
operationId: DdosCustomPolicies_Get
tags:
- ddosCustomPolicies
description: Gets information about the specified DDoS custom policy.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: ddosCustomPolicyName
in: path
description: The name of the DDoS custom policy.
required: true
schema:
type: string
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/DdosCustomPolicy'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/CloudError'
summary: Ddos custom policies get
x-summary-source: derived
put:
operationId: DdosCustomPolicies_CreateOrUpdate
tags:
- ddosCustomPolicies
description: Creates or updates a DDoS custom policy.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: ddosCustomPolicyName
in: path
description: The name of the DDoS custom policy.
required: true
schema:
type: string
responses:
'200':
description: Resource 'DdosCustomPolicy' update operation succeeded
content:
application/json:
schema:
$ref: '#/components/schemas/DdosCustomPolicy'
'201':
description: Resource 'DdosCustomPolicy' create operation succeeded
headers:
Azure-AsyncOperation:
description: A link to the status monitor
schema:
type: string
Retry-After:
description: The Retry-After header can indicate how long the client should wait before polling the operation status.
schema:
type: integer
format: int32
content:
application/json:
schema:
$ref: '#/components/schemas/DdosCustomPolicy'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/CloudError'
x-ms-long-running-operation-options:
final-state-via: azure-async-operation
final-state-schema: '#/definitions/DdosCustomPolicy'
x-ms-long-running-operation: true
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/DdosCustomPolicy'
description: Parameters supplied to the create or update operation.
required: true
summary: Ddos custom policies create or update
x-summary-source: derived
patch:
operationId: DdosCustomPolicies_UpdateTags
tags:
- ddosCustomPolicies
description: Update a DDoS custom policy tags.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: ddosCustomPolicyName
in: path
description: The name of the DDoS custom policy.
required: true
schema:
type: string
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/DdosCustomPolicy'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/CloudError'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/TagsObject'
description: Parameters supplied to update DDoS custom policy resource tags.
required: true
summary: Ddos custom policies update tags
x-summary-source: derived
delete:
operationId: DdosCustomPolicies_Delete
tags:
- ddosCustomPolicies
description: Deletes the specified DDoS custom policy.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: ddosCustomPolicyName
in: path
description: The name of the DDoS custom policy.
required: true
schema:
type: string
responses:
'200':
description: Resource deleted successfully.
'202':
description: Resource deletion accepted.
headers:
Location:
description: The Location header contains the URL where the status of the long running operation can be checked.
schema:
type: string
Retry-After:
description: The Retry-After header can indicate how long the client should wait before polling the operation status.
schema:
type: integer
format: int32
'204':
description: Resource does not exist.
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/CloudError'
x-ms-long-running-operation-options:
final-state-via: location
x-ms-long-running-operation: true
summary: Ddos custom policies delete
x-summary-source: derived
components:
schemas:
DdosDetectionRule:
type: object
description: A DDoS detection rule resource.
properties:
name:
type: string
description: The name of the DDoS detection rule.
id:
type: string
description: The resource ID of the DDoS detection rule.
readOnly: true
etag:
type: string
description: A unique read-only string that changes whenever the resource is updated.
readOnly: true
type:
type: string
description: The resource type.
readOnly: true
properties:
$ref: '#/components/schemas/DdosDetectionRulePropertiesFormat'
description: Properties of the DDoS detection rule.
x-ms-client-flatten: true
allOf:
- $ref: '#/components/schemas/SubResource'
SubResource:
type: object
description: Reference to another subresource.
properties:
id:
type: string
description: Resource ID.
DdosSourcePolicyOverride:
type: object
description: A source-specific action that overrides the default mitigations.
properties:
policyAction:
$ref: '#/components/schemas/DdosSourcePolicyAction'
description: The action to apply to matching traffic.
conditions:
$ref: '#/components/schemas/DdosSourceMatchConditions'
description: The source conditions that select traffic for the action.
required:
- policyAction
- conditions
CloudError:
type: object
description: An error response from the service.
properties:
error:
$ref: '#/components/schemas/CloudErrorBody'
description: Cloud error body.
x-ms-external: true
DdosUdpDefaultMitigations:
type: object
description: Default mitigations for UDP traffic.
properties:
perSourceRateLimiting:
$ref: '#/components/schemas/DdosUdpPerSourceRateLimitPolicy'
description: The per-source UDP packet rate limit.
DdosSourceMatchConditions:
type: object
description: Source conditions for a DDoS source policy override. A source matches when it matches any IP prefix or any geographic match.
properties:
ipPrefixes:
type: array
description: The IPv4 or IPv6 CIDR prefixes in `<address>/<prefix-length>` format. Entries are evaluated with OR semantics.
items:
type: string
geoMatches:
type: array
description: The geographic matches. Entries are evaluated with OR semantics.
items:
$ref: '#/components/schemas/DdosGeoMatch'
x-ms-identifiers: []
DdosTcpDefaultMitigations:
type: object
description: Default mitigations for TCP traffic.
properties:
perSourceRateLimiting:
$ref: '#/components/schemas/DdosTcpPerSourceRateLimitPolicy'
description: The per-source TCP packet rate limit.
perSourceConnectionRateLimiting:
$ref: '#/components/schemas/DdosTcpPerSourceConnectionRateLimitPolicy'
description: The per-source rate limit for new TCP connection establishments.
DdosCustomPolicyPropertiesFormat:
type: object
description: DDoS custom policy properties.
properties:
resourceGuid:
type: string
description: The resource GUID property of the DDoS custom policy resource. It uniquely identifies the resource, even if the user changes its name or migrate the resource across subscriptions or resource groups.
readOnly: true
provisioningState:
$ref: '#/components/schemas/ProvisioningState'
description: The provisioning state of the DDoS custom policy resource.
readOnly: true
detectionRules:
type: array
description: The list of DDoS detection rules associated with the custom policy.
items:
$ref: '#/components/schemas/DdosDetectionRule'
mitigationRules:
type: array
description: The list of DDoS mitigation rules associated with the custom policy.
items:
$ref: '#/components/schemas/DdosMitigationRule'
x-ms-identifiers:
- name
frontEndIpConfiguration:
type: array
description: The list of frontend IP configurations associated with the custom policy.
items:
$ref: '#/components/schemas/SubResource'
publicIPAddresses:
type: array
description: The list of public IP addresses associated with the custom policy. This list is read-only.
items:
$ref: '#/components/schemas/SubResource'
readOnly: true
ProvisioningState:
type: string
description: Provisioning states of a resource.
enum:
- Failed
- Succeeded
- Canceled
- Creating
- Updating
- Deleting
x-ms-enum:
name: ProvisioningState
modelAsString: true
values:
- name: Failed
value: Failed
description: Failed
- name: Succeeded
value: Succeeded
description: Succeeded
- name: Canceled
value: Canceled
description: Canceled
- name: Creating
value: Creating
description: Creating
- name: Updating
value: Updating
description: Updating
- name: Deleting
value: Deleting
description: Deleting
DdosMitigationTrafficScope:
type: string
description: The traffic protocol to which a DDoS mitigation rule applies.
enum:
- Tcp
- Udp
x-ms-enum:
name: DdosMitigationTrafficScope
modelAsString: true
values:
- name: Tcp
value: Tcp
description: TCP traffic.
- name: Udp
value: Udp
description: UDP traffic.
DdosTcpPerSourceRateLimitPolicy:
type: object
description: A per-source TCP packet rate limit.
properties:
packetsPerSecond:
type: integer
format: int32
description: The maximum number of TCP packets allowed per second from a source IP.
required:
- packetsPerSecond
DdosSourcePolicyActionType:
type: string
description: The action applied to traffic matching a source policy override.
enum:
- Deny
- Permit
x-ms-enum:
name: DdosSourcePolicyActionType
modelAsString: true
values:
- name: Deny
value: Deny
description: Deny traffic from matching sources.
- name: Permit
value: Permit
description: Permit traffic from matching sources.
DdosMitigationRule:
type: object
description: A DDoS mitigation rule resource.
properties:
name:
type: string
description: The name of the DDoS mitigation rule.
id:
type: string
description: The resource ID of the DDoS mitigation rule.
readOnly: true
etag:
type: string
description: A unique read-only string that changes whenever the resource is updated.
readOnly: true
type:
type: string
description: The resource type.
readOnly: true
properties:
$ref: '#/components/schemas/DdosMitigationRulePropertiesFormat'
description: Properties of the DDoS mitigation rule.
required:
- name
- properties
allOf:
- $ref: '#/components/schemas/SubResource'
DdosUdpPerSourceRateLimitPolicy:
type: object
description: A per-source UDP packet rate limit.
properties:
packetsPerSecond:
type: integer
format: int32
description: The maximum number of UDP packets allowed per second from a source IP.
required:
- packetsPerSecond
DdosDetectionRulePropertiesFormat:
type: object
description: DDoS detection rule properties.
properties:
provisioningState:
$ref: '#/components/schemas/ProvisioningState'
description: The provisioning state of the DDoS detection rule.
readOnly: true
detectionMode:
$ref: '#/components/schemas/DdosDetectionMode'
description: The detection mode for the DDoS detection rule.
trafficDetectionRule:
$ref: '#/components/schemas/TrafficDetectionRule'
description: The traffic detection rule details.
DdosTrafficType:
type: string
description: The traffic type (one of Tcp, Udp, TcpSyn) that the detection rule will be applied upon.
enum:
- Tcp
- Udp
- TcpSyn
x-ms-enum:
name: DdosTrafficType
modelAsString: true
values:
- name: Tcp
value: Tcp
description: Tcp
- name: Udp
value: Udp
description: Udp
- name: TcpSyn
value: TcpSyn
description: TcpSyn
DdosCustomPolicy:
type: object
description: A DDoS custom policy in a resource group.
properties:
properties:
$ref: '#/components/schemas/DdosCustomPolicyPropertiesFormat'
description: Properties of the DDoS custom policy.
x-ms-client-flatten: true
etag:
type: string
description: A unique read-only string that changes whenever the resource is updated.
readOnly: true
allOf:
- $ref: '#/components/schemas/Resource'
DdosTcpPerSourceConnectionRateLimitPolicy:
type: object
description: A per-source TCP connection establishment rate limit.
properties:
connectionsPerSecond:
type: integer
format: int32
description: The maximum number of new TCP connections established per second from a source IP.
required:
- connectionsPerSecond
Resource:
type: object
description: Common resource representation.
properties:
id:
type: string
description: Resource ID.
name:
type: string
description: Resource name.
readOnly: true
type:
type: string
description: Resource type.
readOnly: true
location:
type: string
description: Resource location.
tags:
type: object
description: Resource tags.
additionalProperties:
type: string
x-ms-azure-resource: true
TagsObject:
type: object
description: Tags object for patch operations.
properties:
tags:
type: object
description: Resource tags.
additionalProperties:
type: string
DdosGeoMatch:
type: object
description: A geographic source match. The service validates that at least one of continent or countryCode is specified. If both are specified, the service validates that the country belongs to the continent according to the service-defined mapping. For example, RU, TR, and KZ map to Asia, EG maps to Africa, and CY maps to Europe.
properties:
continent:
$ref: '#/components/schemas/DdosContinent'
description: The continent to match. Country membership follows the service-defined mapping documented on DdosGeoMatch.
countryCode:
type: string
description: The uppercase two-letter ISO 3166-1 alpha-2 code for the country or territory to match.
pattern: ^[A-Z]{2}$
DdosContinent:
type: string
description: A continent used for DDoS geographic source matching.
enum:
- Africa
- Antarctica
- Asia
- Europe
- NorthAmerica
- Oceania
- SouthAmerica
x-ms-enum:
name: DdosContinent
modelAsString: true
values:
- name: Africa
value: Africa
description: Matches traffic originating from countries and territories in Africa.
- name: Antarctica
value: Antarctica
description: Matches traffic originating from Antarctica.
- name: Asia
value: Asia
description: Matches traffic originating from countries and territories in Asia.
- name: Europe
value: Europe
description: Matches traffic originating from countries and territories in Europe.
- name: NorthAmerica
value: NorthAmerica
description: Matches traffic originating from countries and territories in North America.
- name: Oceania
value: Oceania
description: Matches traffic originating from countries and territories in Oceania.
- name: SouthAmerica
value: SouthAmerica
description: Matches traffic originating from countries and territories in South America.
DdosMitigationRulePropertiesFormat:
type: object
description: DDoS mitigation rule properties. The service validates that each rule specifies at least one applicable default mitigation or source policy override and that the default mitigations match the selected trafficScope.
properties:
provisioningState:
$ref: '#/components/schemas/ProvisioningState'
description: The provisioning state of the DDoS mitigation rule.
readOnly: true
trafficScope:
$ref: '#/components/schemas/DdosMitigationTrafficScope'
description: The traffic protocol to which the mitigation rule applies.
tcpDefaultMitigations:
$ref: '#/components/schemas/DdosTcpDefaultMitigations'
description: The default TCP mitigations. This property is valid only when trafficScope is Tcp.
udpDefaultMitigations:
$ref: '#/components/schemas/DdosUdpDefaultMitigations'
description: The default UDP mitigations. This property is valid only when trafficScope is Udp.
sourcePolicyOverrides:
type: array
description: Source-specific actions that override the default mitigations. A rule supports at most one Deny override and one Permit override.
items:
$ref: '#/components/schemas/DdosSourcePolicyOverride'
x-ms-identifiers:
- policyAction/actionType
required:
- trafficScope
DdosDetectionMode:
type: string
description: The detection mode for the DDoS detection rule.
enum:
- TrafficThreshold
x-ms-enum:
name: DdosDetectionMode
modelAsString: true
values:
- name: TrafficThreshold
value: TrafficThreshold
description: TrafficThreshold
DdosSourcePolicyAction:
type: object
description: The action to apply to traffic matching a source policy override.
properties:
actionType:
$ref: '#/components/schemas/DdosSourcePolicyActionType'
description: The source policy action type.
required:
- actionType
DdosCustomPolicyListResult:
type: object
description: The response of a DdosCustomPolicy list operation.
properties:
value:
type: array
description: The DdosCustomPolicy items on this page
items:
$ref: '#/components/schemas/DdosCustomPolicy'
nextLink:
type: string
format: uri
description: The link to the next page of items
required:
- value
TrafficDetectionRule:
type: object
description: Ddos Custom Policy traffic detection rule.
properties:
trafficType:
$ref: '#/components/schemas/DdosTrafficType'
description: The traffic type (one of Tcp, Udp, TcpSyn) that the detection rule will be applied upon.
packetsPerSecond:
type: integer
format: int32
description: The customized packets per second threshold.
parameters:
SubscriptionIdParameter:
name: subscriptionId
in: path
description: The ID of the target subscription. The value must be an UUID.
required: true
schema:
type: string
format: uuid
ResourceGroupNameParameter:
name: resourceGroupName
in: path
description: The name of the resource group. The name is case insensitive.
required: true
x-ms-parameter-location: method
schema:
type: string
maxLength: 90
minLength: 1
ApiVersionParameter:
name: api-version
in: query
description: The API version to use for this operation.
required: true
schema:
type: string
minLength: 1
securitySchemes:
azure_auth:
type: oauth2
flows:
implicit:
scopes:
user_impersonation: impersonate your user account
authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
description: Azure Active Directory OAuth2 Flow.