Azure Networking Services Firewall Policies API
The FirewallPolicies API from Azure Networking Services — 3 operation(s) for firewallpolicies.
The FirewallPolicies API from Azure Networking Services — 3 operation(s) for firewallpolicies.
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-firewallpolicies-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 Firewall 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: FirewallPolicies
paths:
/subscriptions/{subscriptionId}/providers/Microsoft.Network/firewallPolicies:
get:
operationId: FirewallPolicies_ListAll
tags:
- FirewallPolicies
description: Gets all the Firewall 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/FirewallPolicyListResult'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/CloudError'
x-ms-pageable:
nextLinkName: nextLink
summary: Firewall policies list all
x-summary-source: derived
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies:
get:
operationId: FirewallPolicies_List
tags:
- FirewallPolicies
description: Lists all Firewall 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/FirewallPolicyListResult'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/CloudError'
x-ms-pageable:
nextLinkName: nextLink
summary: Firewall policies list
x-summary-source: derived
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}
: get:
operationId: FirewallPolicies_Get
tags:
- FirewallPolicies
description: Gets the specified Firewall Policy.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: firewallPolicyName
in: path
description: The name of the Firewall Policy.
required: true
schema:
type: string
- name: $expand
in: query
description: Expands referenced resources.
required: false
schema:
type: string
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/FirewallPolicy'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/CloudError'
summary: Firewall policies get
x-summary-source: derived
put:
operationId: FirewallPolicies_CreateOrUpdate
tags:
- FirewallPolicies
description: Creates or updates the specified Firewall Policy.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: firewallPolicyName
in: path
description: The name of the Firewall Policy.
required: true
schema:
type: string
- name: afcManagedSync
in: query
description: Indicates that the write originates from AFC (Azure Firewall for Containers) and is permitted to modify an AFC-managed Firewall Policy.
required: false
schema:
type: boolean
responses:
'200':
description: Resource 'FirewallPolicy' update operation succeeded
content:
application/json:
schema:
$ref: '#/components/schemas/FirewallPolicy'
'201':
description: Resource 'FirewallPolicy' 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/FirewallPolicy'
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/FirewallPolicy'
x-ms-long-running-operation: true
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/FirewallPolicy'
description: Parameters supplied to the create or update Firewall Policy operation.
required: true
summary: Firewall policies create or update
x-summary-source: derived
patch:
operationId: FirewallPolicies_UpdateTags
tags:
- FirewallPolicies
description: Updates tags of a Azure Firewall Policy resource.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: firewallPolicyName
in: path
description: The name of the Firewall Policy.
required: true
schema:
type: string
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/FirewallPolicy'
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 Azure Firewall Policy tags.
required: true
summary: Firewall policies update tags
x-summary-source: derived
delete:
operationId: FirewallPolicies_Delete
tags:
- FirewallPolicies
description: Deletes the specified Firewall Policy.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: firewallPolicyName
in: path
description: The name of the Firewall 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: Firewall policies delete
x-summary-source: derived
components:
schemas:
FirewallPolicySNAT:
type: object
description: The private IP addresses/IP ranges to which traffic will not be SNAT.
properties:
privateRanges:
type: array
description: List of private IP addresses/IP address ranges to not be SNAT.
items:
type: string
autoLearnPrivateRanges:
$ref: '#/components/schemas/AutoLearnPrivateRangesMode'
description: The operation mode for automatically learning private ranges to not be SNAT
FirewallPolicyIntrusionDetectionStateType:
type: string
description: Possible state values.
enum:
- 'Off'
- Alert
- Deny
x-ms-enum:
name: FirewallPolicyIntrusionDetectionStateType
modelAsString: true
values:
- name: 'Off'
value: 'Off'
description: 'Off'
- name: Alert
value: Alert
description: Alert
- name: Deny
value: Deny
description: Deny
SubResource:
type: object
description: Reference to another subresource.
properties:
id:
type: string
description: Resource ID.
FirewallPolicyThreatIntelWhitelist:
type: object
description: ThreatIntel Whitelist for Firewall Policy.
properties:
ipAddresses:
type: array
description: List of IP addresses for the ThreatIntel Whitelist.
items:
type: string
fqdns:
type: array
description: List of FQDNs for the ThreatIntel Whitelist.
items:
type: string
FirewallPolicyTransportSecurity:
type: object
description: Configuration needed to perform TLS termination & initiation.
properties:
certificateAuthority:
$ref: '#/components/schemas/FirewallPolicyCertificateAuthority'
description: The CA used for intermediate CA generation.
CloudError:
type: object
description: An error response from the service.
properties:
error:
$ref: '#/components/schemas/CloudErrorBody'
description: Cloud error body.
x-ms-external: true
FirewallPolicyLogAnalyticsWorkspace:
type: object
description: Log Analytics Workspace for Firewall Policy Insights.
properties:
region:
type: string
description: Region to configure the Workspace.
workspaceId:
$ref: '#/components/schemas/SubResource'
description: The workspace Id for Firewall Policy Insights.
FirewallPolicyPropertiesFormat:
type: object
description: Firewall Policy definition.
properties:
size:
type: string
description: A read-only string that represents the size of the FirewallPolicyPropertiesFormat in MB. (ex 0.5MB)
readOnly: true
ruleCollectionGroups:
type: array
description: List of references to FirewallPolicyRuleCollectionGroups.
items:
$ref: '#/components/schemas/SubResource'
readOnly: true
kubeSelectorGroups:
type: array
description: List of references to FirewallPolicyKubeSelectorGroups.
items:
$ref: '#/components/schemas/SubResource'
readOnly: true
provisioningState:
$ref: '#/components/schemas/ProvisioningState'
description: The provisioning state of the firewall policy resource.
readOnly: true
basePolicy:
$ref: '#/components/schemas/SubResource'
description: The parent firewall policy from which rules are inherited.
firewalls:
type: array
description: List of references to Azure Firewalls that this Firewall Policy is associated with.
items:
$ref: '#/components/schemas/SubResource'
readOnly: true
childPolicies:
type: array
description: List of references to Child Firewall Policies.
items:
$ref: '#/components/schemas/SubResource'
readOnly: true
threatIntelMode:
$ref: '#/components/schemas/AzureFirewallThreatIntelMode'
description: The operation mode for Threat Intelligence.
threatIntelWhitelist:
$ref: '#/components/schemas/FirewallPolicyThreatIntelWhitelist'
description: ThreatIntel Whitelist for Firewall Policy.
insights:
$ref: '#/components/schemas/FirewallPolicyInsights'
description: Insights on Firewall Policy.
snat:
$ref: '#/components/schemas/FirewallPolicySNAT'
description: The private IP addresses/IP ranges to which traffic will not be SNAT.
sql:
$ref: '#/components/schemas/FirewallPolicySQL'
description: SQL Settings definition.
dnsSettings:
$ref: '#/components/schemas/DnsSettings'
description: DNS Proxy Settings definition.
explicitProxy:
$ref: '#/components/schemas/ExplicitProxy'
description: Explicit Proxy Settings definition.
intrusionDetection:
$ref: '#/components/schemas/FirewallPolicyIntrusionDetection'
description: The configuration for Intrusion detection.
transportSecurity:
$ref: '#/components/schemas/FirewallPolicyTransportSecurity'
description: TLS Configuration definition.
sku:
$ref: '#/components/schemas/FirewallPolicySku'
description: The Firewall Policy SKU.
afcManaged:
type: boolean
description: Indicates that the Firewall Policy is managed by AFC (Azure Firewall for Containers). When set, the policy is treated as read-only for callers that do not supply the AFC-managed sync marker on write operations.
readOnly: true
FirewallPolicyLogAnalyticsResources:
type: object
description: Log Analytics Resources for Firewall Policy Insights.
properties:
workspaces:
type: array
description: List of workspaces for Firewall Policy Insights.
items:
$ref: '#/components/schemas/FirewallPolicyLogAnalyticsWorkspace'
x-ms-identifiers: []
defaultWorkspaceId:
$ref: '#/components/schemas/SubResource'
description: The default workspace Id for Firewall Policy Insights.
FirewallPolicyIntrusionDetectionBypassTrafficSpecifications:
type: object
description: Intrusion detection bypass traffic specification.
properties:
name:
type: string
description: Name of the bypass traffic rule.
description:
type: string
description: Description of the bypass traffic rule.
protocol:
$ref: '#/components/schemas/FirewallPolicyIntrusionDetectionProtocol'
description: The rule bypass protocol.
sourceAddresses:
type: array
description: List of source IP addresses or ranges for this rule.
items:
type: string
destinationAddresses:
type: array
description: List of destination IP addresses or ranges for this rule.
items:
type: string
destinationPorts:
type: array
description: List of destination ports or ranges.
items:
type: string
sourceIpGroups:
type: array
description: List of source IpGroups for this rule.
items:
type: string
destinationIpGroups:
type: array
description: List of destination IpGroups for this rule.
items:
type: string
FirewallPolicyIntrusionDetection:
type: object
description: Configuration for intrusion detection mode and rules.
properties:
mode:
$ref: '#/components/schemas/FirewallPolicyIntrusionDetectionStateType'
description: Intrusion detection general state. When attached to a parent policy, the firewall's effective IDPS mode is the stricter mode of the two.
profile:
$ref: '#/components/schemas/FirewallPolicyIntrusionDetectionProfileType'
description: IDPS profile name. When attached to a parent policy, the firewall's effective profile is the profile name of the parent policy.
configuration:
$ref: '#/components/schemas/FirewallPolicyIntrusionDetectionConfiguration'
description: Intrusion detection configuration properties.
ExplicitProxy:
type: object
description: Explicit Proxy Settings in Firewall Policy.
properties:
enableExplicitProxy:
type:
- boolean
- 'null'
description: When set to true, explicit proxy mode is enabled.
httpPort:
type: integer
format: int32
description: Port number for explicit proxy http protocol, cannot be greater than 64000.
minimum: 0
maximum: 64000
httpsPort:
type: integer
format: int32
description: Port number for explicit proxy https protocol, cannot be greater than 64000.
minimum: 0
maximum: 64000
enablePacFile:
type:
- boolean
- 'null'
description: When set to true, pac file port and url needs to be provided.
pacFilePort:
type: integer
format: int32
description: Port number for firewall to serve PAC file.
minimum: 0
maximum: 64000
pacFile:
type: string
description: SAS URL for PAC file.
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
AzureFirewallThreatIntelMode:
type: string
description: The operation mode for Threat Intel.
enum:
- Alert
- Deny
- 'Off'
x-ms-enum:
name: AzureFirewallThreatIntelMode
modelAsString: true
values:
- name: Alert
value: Alert
description: Alert
- name: Deny
value: Deny
description: Deny
- name: 'Off'
value: 'Off'
description: 'Off'
DnsSettings:
type: object
description: DNS Proxy Settings in Firewall Policy.
properties:
servers:
type: array
description: List of Custom DNS Servers.
items:
type: string
enableProxy:
type: boolean
description: Enable DNS Proxy on Firewalls attached to the Firewall Policy.
requireProxyForNetworkRules:
type:
- boolean
- 'null'
description: FQDNs in Network Rules are supported when set to true.
AutoLearnPrivateRangesMode:
type: string
description: The operation mode for automatically learning private ranges to not be SNAT
enum:
- Enabled
- Disabled
x-ms-enum:
name: AutoLearnPrivateRangesMode
modelAsString: true
values:
- name: Enabled
value: Enabled
description: Enabled
- name: Disabled
value: Disabled
description: Disabled
FirewallPolicyIntrusionDetectionConfiguration:
type: object
description: The operation for configuring intrusion detection.
properties:
signatureOverrides:
type: array
description: List of specific signatures states.
items:
$ref: '#/components/schemas/FirewallPolicyIntrusionDetectionSignatureSpecification'
bypassTrafficSettings:
type: array
description: List of rules for traffic to bypass.
items:
$ref: '#/components/schemas/FirewallPolicyIntrusionDetectionBypassTrafficSpecifications'
x-ms-identifiers: []
privateRanges:
type: array
description: IDPS Private IP address ranges are used to identify traffic direction (i.e. inbound, outbound, etc.). By default, only ranges defined by IANA RFC 1918 are considered private IP addresses. To modify default ranges, specify your Private IP address ranges with this property
items:
type: string
FirewallPolicyListResult:
type: object
description: The response of a FirewallPolicy list operation.
properties:
value:
type: array
description: The FirewallPolicy items on this page
items:
$ref: '#/components/schemas/FirewallPolicy'
nextLink:
type: string
format: uri
description: The link to the next page of items
required:
- value
FirewallPolicy:
type: object
description: FirewallPolicy Resource.
properties:
properties:
$ref: '#/components/schemas/FirewallPolicyPropertiesFormat'
description: Properties of the firewall policy.
x-ms-client-flatten: true
etag:
type: string
description: A unique read-only string that changes whenever the resource is updated.
readOnly: true
identity:
$ref: '#/components/schemas/ManagedServiceIdentity'
description: The identity of the firewall policy.
allOf:
- $ref: '#/components/schemas/Resource'
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
FirewallPolicyIntrusionDetectionProtocol:
type: string
description: Possible intrusion detection bypass traffic protocols.
enum:
- TCP
- UDP
- ICMP
- ANY
x-ms-enum:
name: FirewallPolicyIntrusionDetectionProtocol
modelAsString: true
values:
- name: TCP
value: TCP
description: TCP
- name: UDP
value: UDP
description: UDP
- name: ICMP
value: ICMP
description: ICMP
- name: ANY
value: ANY
description: ANY
FirewallPolicyIntrusionDetectionSignatureSpecification:
type: object
description: Intrusion detection signatures specification states.
properties:
id:
type: string
description: Signature id.
mode:
$ref: '#/components/schemas/FirewallPolicyIntrusionDetectionStateType'
description: The signature state.
TagsObject:
type: object
description: Tags object for patch operations.
properties:
tags:
type: object
description: Resource tags.
additionalProperties:
type: string
FirewallPolicySkuTier:
type: string
description: Tier of Firewall Policy.
enum:
- Standard
- Premium
- Basic
x-ms-enum:
name: FirewallPolicySkuTier
modelAsString: true
values:
- name: Standard
value: Standard
description: Standard
- name: Premium
value: Premium
description: Premium
- name: Basic
value: Basic
description: Basic
FirewallPolicyCertificateAuthority:
type: object
description: Trusted Root certificates properties for tls.
properties:
keyVaultSecretId:
type: string
description: Secret Id of (base-64 encoded unencrypted pfx) 'Secret' or 'Certificate' object stored in KeyVault.
name:
type: string
description: Name of the CA certificate.
FirewallPolicySku:
type: object
description: SKU of Firewall policy.
properties:
tier:
$ref: '#/components/schemas/FirewallPolicySkuTier'
description: Tier of Firewall Policy.
FirewallPolicyInsights:
type: object
description: Firewall Policy Insights.
properties:
isEnabled:
type: boolean
description: A flag to indicate if the insights are enabled on the policy.
retentionDays:
type: integer
format: int32
description: Number of days the insights should be enabled on the policy.
logAnalyticsResources:
$ref: '#/components/schemas/FirewallPolicyLogAnalyticsResources'
description: Workspaces needed to configure the Firewall Policy Insights.
FirewallPolicySQL:
type: object
description: SQL Settings in Firewall Policy.
properties:
allowSqlRedirect:
type: boolean
description: A flag to indicate if SQL Redirect traffic filtering is enabled. Turning on the flag requires no rule using port 11000-11999.
FirewallPolicyIntrusionDetectionProfileType:
type: string
description: 'Specifies the Intrusion Detection signature profile to apply.
Values:
- Off: IDPS profiles disabled; uses the same signature set that existed before profiles.
- Emerging: Signatures of the newest, most recent threats.
- Core: Complete, modern, standard set of signatures.
- Extended: Core signatures plus older legacy signatures for maximum coverage.'
enum:
- 'Off'
- Emerging
- Core
- Extended
x-ms-enum:
name: FirewallPolicyIntrusionDetectionProfileType
modelAsString: true
values:
- name: 'Off'
value: 'Off'
description: 'Off'
- name: Emerging
value: Emerging
description: Emerging
- name: Core
value: Core
description: Core
- name: Extended
value: Extended
description: Extended
ManagedServiceIdentity:
type: object
description: Identity for the resource.
properties:
principalId:
type: string
description: The principal id of the system assigned identity. This property will only be provided for a system assigned identity.
readOnly: true
tenantId:
type: string
description: The tenant id of the system assigned identity. This property will only be provided for a system assigned identity.
readOnly: true
type:
$ref: '#/components/schemas/ResourceIdentityType'
description: The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine.
userAssignedIdentities:
type: object
description: 'The list of user identities associated with resource. The user identity dictionary key references will be ARM resource ids in the form: ''/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}''.'
additionalProperties:
$ref: '#/components/schemas/ManagedServiceIdentityUserAssignedIdentities'
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.