Custom IP Prefixes - List

Gets all custom IP prefixes in a resource group.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/customIpPrefixes?api-version=2023-09-01

URI Parameters

Name In Required Type Description
resourceGroupName
path True

string

The name of the resource group.

subscriptionId
path True

string

The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

api-version
query True

string

Client API version.

Responses

Name Type Description
200 OK

CustomIpPrefixListResult

Request successful. The operation returns a list of CustomIpPrefix resources.

Other Status Codes

CloudError

Error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

List resource group Custom IP prefixes

Sample Request

GET https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/customIpPrefixes?api-version=2023-09-01

Sample Response

{
  "value": [
    {
      "name": "test-customipprefix",
      "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/customIpPrefixes/test-customipprefix",
      "etag": "W/\"00000000-0000-0000-0000-00000000\"",
      "location": "westus",
      "properties": {
        "provisioningState": "Succeeded",
        "resourceGuid": "00000000-0000-0000-0000-00000000",
        "cidr": "0.0.0.0/24",
        "commissionedState": "Commissioned",
        "signedMessage": "signedMessage",
        "authorizationMessage": "authorizationMessage",
        "noInternetAdvertise": false,
        "expressRouteAdvertise": false,
        "failedReason": "",
        "publicIpPrefixes": [],
        "childCustomIpPrefixes": []
      },
      "type": "Microsoft.Network/customIpPrefixes"
    },
    {
      "name": "test-customipprefix2",
      "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/customIpPrefixes/test-customipprefix2",
      "etag": "W/\"00000000-0000-0000-0000-00000000\"",
      "location": "westus",
      "properties": {
        "provisioningState": "Succeeded",
        "resourceGuid": "00000000-0000-0000-0000-00000000",
        "cidr": "0.0.1.0/30",
        "commissionedState": "Commissioned",
        "signedMessage": "signedMessage",
        "authorizationMessage": "authorizationMessage",
        "noInternetAdvertise": false,
        "expressRouteAdvertise": false,
        "failedReason": "",
        "publicIpPrefixes": [],
        "childCustomIpPrefixes": []
      },
      "type": "Microsoft.Network/customIpPrefixes"
    },
    {
      "name": "test-customipprefix4",
      "id": "/subscriptions/subid/resourceGroups/rg3/providers/Microsoft.Network/customIpPrefixes/test-customipprefix4",
      "etag": "W/\"00000000-0000-0000-0000-00000000\"",
      "location": "eastus",
      "properties": {
        "provisioningState": "Succeeded",
        "resourceGuid": "00000000-0000-0000-0000-00000000",
        "cidr": "2607:f0d1:1002:0001::/64",
        "commissionedState": "Commissioned",
        "signedMessage": "signedMessage",
        "authorizationMessage": "authorizationMessage",
        "noInternetAdvertise": false,
        "expressRouteAdvertise": false,
        "failedReason": "",
        "publicIpPrefixes": [],
        "childCustomIpPrefixes": [],
        "customIpPrefixParent": {
          "id": "/subscriptions/subid/resourceGroups/rg3/providers/Microsoft.Network/customIpPrefixes/test-customipprefix5"
        }
      },
      "type": "Microsoft.Network/customIpPrefixes"
    },
    {
      "name": "test-customipprefix5",
      "id": "/subscriptions/subid/resourceGroups/rg3/providers/Microsoft.Network/customIpPrefixes/test-customipprefix5",
      "etag": "W/\"00000000-0000-0000-0000-00000000\"",
      "location": "eastus",
      "properties": {
        "provisioningState": "Succeeded",
        "resourceGuid": "00000000-0000-0000-0000-00000000",
        "cidr": "2607:f0d1:1002::/48",
        "commissionedState": "Provisioned",
        "signedMessage": "signedMessage",
        "authorizationMessage": "authorizationMessage",
        "noInternetAdvertise": false,
        "expressRouteAdvertise": false,
        "failedReason": "",
        "publicIpPrefixes": [],
        "childCustomIpPrefixes": [
          {
            "id": "/subscriptions/subid/resourceGroups/rg3/providers/Microsoft.Network/customIpPrefixes/test-customipprefix4"
          }
        ]
      },
      "type": "Microsoft.Network/customIpPrefixes"
    },
    {
      "name": "test-customipprefix6",
      "id": "/subscriptions/subid/resourceGroups/rg3/providers/Microsoft.Network/customIpPrefixes/test-customipprefix8",
      "etag": "W/\"00000000-0000-0000-0000-00000000\"",
      "location": "eastus",
      "properties": {
        "provisioningState": "Succeeded",
        "resourceGuid": "00000000-0000-0000-0000-00000000",
        "cidr": "0.0.7.0/22",
        "commissionedState": "Commissioning",
        "signedMessage": "signedMessage",
        "authorizationMessage": "authorizationMessage",
        "noInternetAdvertise": false,
        "expressRouteAdvertise": false,
        "failedReason": "",
        "publicIpPrefixes": [],
        "childCustomIpPrefixes": []
      },
      "type": "Microsoft.Network/customIpPrefixes"
    }
  ]
}

Definitions

Name Description
CloudError

An error response from the service.

CloudErrorBody

An error response from the service.

CommissionedState

The commissioned state of the Custom IP Prefix.

CustomIpPrefix

Custom IP prefix resource.

CustomIpPrefixListResult

Response for ListCustomIpPrefixes API service call.

CustomIpPrefixType

Type of custom IP prefix. Should be Singular, Parent, or Child.

ExtendedLocation

ExtendedLocation complex type.

ExtendedLocationTypes

The type of the extended location.

Geo

The Geo for CIDR advertising. Should be an Geo code.

ProvisioningState

The current provisioning state.

SubResource

Reference to another subresource.

CloudError

An error response from the service.

Name Type Description
error

CloudErrorBody

Cloud error body.

CloudErrorBody

An error response from the service.

Name Type Description
code

string

An identifier for the error. Codes are invariant and are intended to be consumed programmatically.

details

CloudErrorBody[]

A list of additional details about the error.

message

string

A message describing the error, intended to be suitable for display in a user interface.

target

string

The target of the particular error. For example, the name of the property in error.

CommissionedState

The commissioned state of the Custom IP Prefix.

Name Type Description
Commissioned

string

CommissionedNoInternetAdvertise

string

Commissioning

string

Decommissioning

string

Deprovisioned

string

Deprovisioning

string

Provisioned

string

Provisioning

string

CustomIpPrefix

Custom IP prefix resource.

Name Type Description
etag

string

A unique read-only string that changes whenever the resource is updated.

extendedLocation

ExtendedLocation

The extended location of the custom IP prefix.

id

string

Resource ID.

location

string

Resource location.

name

string

Resource name.

properties.asn

string

The ASN for CIDR advertising. Should be an integer as string.

properties.authorizationMessage

string

Authorization message for WAN validation.

properties.childCustomIpPrefixes

SubResource[]

The list of all Children for IPv6 /48 CustomIpPrefix.

properties.cidr

string

The prefix range in CIDR notation. Should include the start address and the prefix length.

properties.commissionedState

CommissionedState

The commissioned state of the Custom IP Prefix.

properties.customIpPrefixParent

SubResource

The Parent CustomIpPrefix for IPv6 /64 CustomIpPrefix.

properties.expressRouteAdvertise

boolean

Whether to do express route advertise.

properties.failedReason

string

The reason why resource is in failed state.

properties.geo

Geo

The Geo for CIDR advertising. Should be an Geo code.

properties.noInternetAdvertise

boolean

Whether to Advertise the range to Internet.

properties.prefixType

CustomIpPrefixType

Type of custom IP prefix. Should be Singular, Parent, or Child.

properties.provisioningState

ProvisioningState

The provisioning state of the custom IP prefix resource.

properties.publicIpPrefixes

SubResource[]

The list of all referenced PublicIpPrefixes.

properties.resourceGuid

string

The resource GUID property of the custom IP prefix resource.

properties.signedMessage

string

Signed message for WAN validation.

tags

object

Resource tags.

type

string

Resource type.

zones

string[]

A list of availability zones denoting the IP allocated for the resource needs to come from.

CustomIpPrefixListResult

Response for ListCustomIpPrefixes API service call.

Name Type Description
nextLink

string

The URL to get the next set of results.

value

CustomIpPrefix[]

A list of Custom IP prefixes that exists in a resource group.

CustomIpPrefixType

Type of custom IP prefix. Should be Singular, Parent, or Child.

Name Type Description
Child

string

Parent

string

Singular

string

ExtendedLocation

ExtendedLocation complex type.

Name Type Description
name

string

The name of the extended location.

type

ExtendedLocationTypes

The type of the extended location.

ExtendedLocationTypes

The type of the extended location.

Name Type Description
EdgeZone

string

Geo

The Geo for CIDR advertising. Should be an Geo code.

Name Type Description
AFRI

string

APAC

string

AQ

string

EURO

string

GLOBAL

string

LATAM

string

ME

string

NAM

string

OCEANIA

string

ProvisioningState

The current provisioning state.

Name Type Description
Deleting

string

Failed

string

Succeeded

string

Updating

string

SubResource

Reference to another subresource.

Name Type Description
id

string

Resource ID.