Azure Networking Services Public IP Prefixes API
The PublicIPPrefixes API from Azure Networking Services — 3 operation(s) for publicipprefixes.
The PublicIPPrefixes API from Azure Networking Services — 3 operation(s) for publicipprefixes.
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-publicipprefixes-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 Public IP Prefixes 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: PublicIPPrefixes
paths:
/subscriptions/{subscriptionId}/providers/Microsoft.Network/publicIPPrefixes:
get:
operationId: PublicIPPrefixes_ListAll
tags:
- PublicIPPrefixes
description: Gets all the public IP prefixes 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/PublicIPPrefixListResult'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/CloudError'
x-ms-pageable:
nextLinkName: nextLink
summary: Public IP prefixes list all
x-summary-source: derived
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes:
get:
operationId: PublicIPPrefixes_List
tags:
- PublicIPPrefixes
description: Gets all public IP prefixes 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/PublicIPPrefixListResult'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/CloudError'
x-ms-pageable:
nextLinkName: nextLink
summary: Public IP prefixes list
x-summary-source: derived
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIpPrefixName}
: get:
operationId: PublicIPPrefixes_Get
tags:
- PublicIPPrefixes
description: Gets the specified public IP prefix in a specified resource group.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: publicIpPrefixName
in: path
description: The name of the public IP prefix.
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/PublicIPPrefix'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/CloudError'
summary: Public IP prefixes get
x-summary-source: derived
put:
operationId: PublicIPPrefixes_CreateOrUpdate
tags:
- PublicIPPrefixes
description: Creates or updates a static or dynamic public IP prefix.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: publicIpPrefixName
in: path
description: The name of the public IP prefix.
required: true
schema:
type: string
responses:
'200':
description: Resource 'PublicIPPrefix' update operation succeeded
content:
application/json:
schema:
$ref: '#/components/schemas/PublicIPPrefix'
'201':
description: Resource 'PublicIPPrefix' create operation succeeded
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
content:
application/json:
schema:
$ref: '#/components/schemas/PublicIPPrefix'
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/CloudError'
x-ms-long-running-operation-options:
final-state-via: location
final-state-schema: '#/definitions/PublicIPPrefix'
x-ms-long-running-operation: true
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PublicIPPrefix'
description: Parameters supplied to the create or update public IP prefix operation.
required: true
summary: Public IP prefixes create or update
x-summary-source: derived
patch:
operationId: PublicIPPrefixes_UpdateTags
tags:
- PublicIPPrefixes
description: Updates public IP prefix tags.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: publicIpPrefixName
in: path
description: The name of the public IP prefix.
required: true
schema:
type: string
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/PublicIPPrefix'
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 public IP prefix tags.
required: true
summary: Public IP prefixes update tags
x-summary-source: derived
delete:
operationId: PublicIPPrefixes_Delete
tags:
- PublicIPPrefixes
description: Deletes the specified public IP prefix.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: publicIpPrefixName
in: path
description: The name of the public IP prefix.
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: Public IP prefixes delete
x-summary-source: derived
components:
schemas:
PublicIPPrefixListResult:
type: object
description: The response of a PublicIPPrefix list operation.
properties:
value:
type: array
description: The PublicIPPrefix items on this page
items:
$ref: '#/components/schemas/PublicIPPrefix'
nextLink:
type: string
format: uri
description: The link to the next page of items
required:
- value
SubResource:
type: object
description: Reference to another subresource.
properties:
id:
type: string
description: Resource ID.
PublicIPPrefixSku:
type: object
description: SKU of a public IP prefix.
properties:
name:
$ref: '#/components/schemas/PublicIPPrefixSkuName'
description: Name of a public IP prefix SKU.
tier:
$ref: '#/components/schemas/PublicIPPrefixSkuTier'
description: Tier of a public IP prefix SKU.
NatGatewaySkuName:
type: string
description: Name of Nat Gateway SKU.
enum:
- Standard
- StandardV2
x-ms-enum:
name: NatGatewaySkuName
modelAsString: true
values:
- name: Standard
value: Standard
description: Standard
- name: StandardV2
value: StandardV2
description: StandardV2
ReferencedPublicIpAddress:
type: object
description: Reference to a public IP address.
properties:
id:
type: string
description: The PublicIPAddress Reference.
ExtendedLocation:
type: object
description: ExtendedLocation complex type.
properties:
name:
type: string
description: The name of the extended location.
type:
$ref: '#/components/schemas/ExtendedLocationTypes'
description: The type of the extended location.
CloudError:
type: object
description: An error response from the service.
properties:
error:
$ref: '#/components/schemas/CloudErrorBody'
description: Cloud error body.
x-ms-external: true
PublicIPPrefixPropertiesFormat:
type: object
description: Public IP prefix properties.
properties:
publicIPAddressVersion:
$ref: '#/components/schemas/IPVersion'
description: The public IP address version.
ipTags:
type: array
description: The list of tags associated with the public IP prefix.
items:
$ref: '#/components/schemas/IpTag'
prefixLength:
type: integer
format: int32
description: The Length of the Public IP Prefix.
ipPrefix:
type: string
description: The allocated Prefix.
readOnly: true
publicIPAddresses:
type: array
description: The list of all referenced PublicIPAddresses.
items:
$ref: '#/components/schemas/ReferencedPublicIpAddress'
readOnly: true
loadBalancerFrontendIpConfiguration:
$ref: '#/components/schemas/SubResource'
description: The reference to load balancer frontend IP configuration associated with the public IP prefix.
readOnly: true
customIPPrefix:
$ref: '#/components/schemas/SubResource'
description: The customIpPrefix that this prefix is associated with.
resourceGuid:
type: string
description: The resource GUID property of the public IP prefix resource.
readOnly: true
provisioningState:
$ref: '#/components/schemas/ProvisioningState'
description: The provisioning state of the public IP prefix resource.
readOnly: true
natGateway:
$ref: '#/components/schemas/NatGateway'
description: NatGateway of Public IP Prefix.
upgradedToV2:
type: boolean
description: Whether the public IP prefix SKU has been upgraded from Standard to StandardV2.
readOnly: true
NatGateway:
type: object
description: Nat Gateway resource.
properties:
properties:
$ref: '#/components/schemas/NatGatewayPropertiesFormat'
description: Nat Gateway properties.
x-ms-client-flatten: true
sku:
$ref: '#/components/schemas/NatGatewaySku'
description: The nat gateway SKU.
zones:
type: array
description: A list of availability zones denoting the zone in which Nat Gateway should be deployed.
items:
type: string
etag:
type: string
description: A unique read-only string that changes whenever the resource is updated.
readOnly: true
allOf:
- $ref: '#/components/schemas/Resource'
PublicIPPrefix:
type: object
description: Public IP prefix resource.
properties:
properties:
$ref: '#/components/schemas/PublicIPPrefixPropertiesFormat'
description: Public IP prefix properties.
x-ms-client-flatten: true
extendedLocation:
$ref: '#/components/schemas/ExtendedLocation'
description: The extended location of the public ip address.
sku:
$ref: '#/components/schemas/PublicIPPrefixSku'
description: The public IP prefix SKU.
etag:
type: string
description: A unique read-only string that changes whenever the resource is updated.
readOnly: true
zones:
type: array
description: A list of availability zones denoting the IP allocated for the resource needs to come from.
items:
type: string
allOf:
- $ref: '#/components/schemas/Resource'
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
PublicIPPrefixSkuTier:
type: string
description: Tier of a public IP prefix SKU.
enum:
- Regional
- Global
x-ms-enum:
name: PublicIPPrefixSkuTier
modelAsString: true
values:
- name: Regional
value: Regional
description: Regional
- name: Global
value: Global
description: Global
IpTag:
type: object
description: Contains the IpTag associated with the object.
properties:
ipTagType:
type: string
description: 'The IP tag type. Example: FirstPartyUsage.'
tag:
type: string
description: 'The value of the IP tag associated with the public IP. Example: SQL.'
firstPartyServiceTagId:
type: string
format: arm-id
description: The resource ID of the first party service tag associated with the IP tag.
x-ms-arm-id-details:
allowedResources:
- type: Microsoft.Network/firstPartyServiceTags
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
NatGatewaySku:
type: object
description: SKU of nat gateway.
properties:
name:
$ref: '#/components/schemas/NatGatewaySkuName'
description: Name of Nat Gateway SKU.
NatGatewayPropertiesFormat:
type: object
description: Nat Gateway properties.
properties:
idleTimeoutInMinutes:
type: integer
format: int32
description: The idle timeout of the nat gateway.
publicIpAddresses:
type: array
description: An array of public ip addresses V4 associated with the nat gateway resource.
items:
$ref: '#/components/schemas/SubResource'
publicIpAddressesV6:
type: array
description: An array of public ip addresses V6 associated with the nat gateway resource.
items:
$ref: '#/components/schemas/SubResource'
publicIpPrefixes:
type: array
description: An array of public ip prefixes V4 associated with the nat gateway resource.
items:
$ref: '#/components/schemas/SubResource'
publicIpPrefixesV6:
type: array
description: An array of public ip prefixes V6 associated with the nat gateway resource.
items:
$ref: '#/components/schemas/SubResource'
subnets:
type: array
description: An array of references to the subnets using this nat gateway resource.
items:
$ref: '#/components/schemas/SubResource'
readOnly: true
sourceVirtualNetwork:
$ref: '#/components/schemas/SubResource'
description: A reference to the source virtual network using this nat gateway resource.
serviceGateway:
$ref: '#/components/schemas/SubResource'
description: Reference to an existing service gateway.
nat64:
$ref: '#/components/schemas/Nat64State'
description: Whether Nat64 is enabled for the NAT gateway resource.
resourceGuid:
type: string
description: The resource GUID property of the NAT gateway resource.
readOnly: true
provisioningState:
$ref: '#/components/schemas/ProvisioningState'
description: The provisioning state of the NAT gateway resource.
readOnly: true
PublicIPPrefixSkuName:
type: string
description: Name of a public IP prefix SKU.
enum:
- Standard
- StandardV2
x-ms-enum:
name: PublicIPPrefixSkuName
modelAsString: true
values:
- name: Standard
value: Standard
description: Standard
- name: StandardV2
value: StandardV2
description: StandardV2
IPVersion:
type: string
description: IP address version.
enum:
- IPv4
- IPv6
x-ms-enum:
name: IPVersion
modelAsString: true
values:
- name: IPv4
value: IPv4
description: IPv4
- name: IPv6
value: IPv6
description: IPv6
Nat64State:
type: string
description: Whether Nat64 is enabled for the NAT gateway resource.
enum:
- None
- Enabled
- Disabled
x-ms-enum:
name: Nat64State
modelAsString: true
values:
- name: None
value: None
description: Nat64 Property is not set.
- name: Enabled
value: Enabled
description: Nat64 is enabled.
- name: Disabled
value: Disabled
description: Nat64 is disabled.
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.