Skip to main content

custom_ip_prefixes

Creates, updates, deletes, gets or lists a custom_ip_prefixes resource.

Overview

Namecustom_ip_prefixes
TypeResource
Idazure.network.custom_ip_prefixes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource ID.
namestringResource name.
asnstringThe ASN for CIDR advertising. Should be an integer as string.
authorizationMessagestringAuthorization message for WAN validation.
childCustomIpPrefixesarrayThe list of all Children for IPv6 /48 CustomIpPrefix.
cidrstringThe prefix range in CIDR notation. Should include the start address and the prefix length.
commissionedStatestringThe commissioned state of the Custom IP Prefix. Known values are: "Provisioning", "Provisioned", "Commissioning", "CommissionedNoInternetAdvertise", "Commissioned", "Decommissioning", "Deprovisioning", and "Deprovisioned". (Provisioning, Provisioned, Commissioning, CommissionedNoInternetAdvertise, Commissioned, Decommissioning, Deprovisioning, Deprovisioned)
customIpPrefixParentobjectReference to another subresource.
etagstringA unique read-only string that changes whenever the resource is updated.
expressRouteAdvertisebooleanWhether to do express route advertise.
extendedLocationobjectThe extended location of the custom IP prefix.
failedReasonstringThe reason why resource is in failed state.
geostringThe Geo for CIDR advertising. Should be an Geo code. Known values are: "GLOBAL", "AFRI", "APAC", "EURO", "LATAM", "NAM", "ME", "OCEANIA", and "AQ". (GLOBAL, AFRI, APAC, EURO, LATAM, NAM, ME, OCEANIA, AQ)
locationstringResource location.
noInternetAdvertisebooleanWhether to Advertise the range to Internet.
prefixTypestringType of custom IP prefix. Should be Singular, Parent, or Child. Known values are: "Singular", "Parent", and "Child". (Singular, Parent, Child)
provisioningStatestringThe provisioning state of the custom IP prefix resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting)
publicIpPrefixesarrayThe list of all referenced PublicIpPrefixes.
resourceGuidstringThe resource GUID property of the custom IP prefix resource.
signedMessagestringSigned message for WAN validation.
tagsobjectResource tags.
typestringResource type.
zonesarrayA list of availability zones denoting where the resource needs to come from.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, custom_ip_prefix_name, subscription_id$expandGets the specified custom IP prefix in a specified resource group.
listselectresource_group_name, subscription_idGets all custom IP prefixes in a resource group.
list_allselectsubscription_idGets all the custom IP prefixes in a subscription.
create_or_updateinsertresource_group_name, custom_ip_prefix_name, subscription_idCreates or updates a custom IP prefix.
update_tagsupdateresource_group_name, custom_ip_prefix_name, subscription_idUpdates custom IP prefix tags.
create_or_updatereplaceresource_group_name, custom_ip_prefix_name, subscription_idCreates or updates a custom IP prefix.
deletedeleteresource_group_name, custom_ip_prefix_name, subscription_idDeletes the specified custom IP prefix.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
custom_ip_prefix_namestringThe name of the custom IP prefix. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
$expandstringExpands referenced resources. Default value is None.

SELECT examples

Gets the specified custom IP prefix in a specified resource group.

SELECT
id,
name,
asn,
authorizationMessage,
childCustomIpPrefixes,
cidr,
commissionedState,
customIpPrefixParent,
etag,
expressRouteAdvertise,
extendedLocation,
failedReason,
geo,
location,
noInternetAdvertise,
prefixType,
provisioningState,
publicIpPrefixes,
resourceGuid,
signedMessage,
tags,
type,
zones
FROM azure.network.custom_ip_prefixes
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND custom_ip_prefix_name = '{{ custom_ip_prefix_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $expand = '{{ $expand }}'
;

INSERT examples

Creates or updates a custom IP prefix.

INSERT INTO azure.network.custom_ip_prefixes (
id,
location,
tags,
properties,
extendedLocation,
zones,
resource_group_name,
custom_ip_prefix_name,
subscription_id
)
SELECT
'{{ id }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ extendedLocation }}',
'{{ zones }}',
'{{ resource_group_name }}',
'{{ custom_ip_prefix_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
extendedLocation,
location,
properties,
tags,
type,
zones
;

UPDATE examples

Updates custom IP prefix tags.

UPDATE azure.network.custom_ip_prefixes
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND custom_ip_prefix_name = '{{ custom_ip_prefix_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
extendedLocation,
location,
properties,
tags,
type,
zones;

REPLACE examples

Creates or updates a custom IP prefix.

REPLACE azure.network.custom_ip_prefixes
SET
id = '{{ id }}',
location = '{{ location }}',
tags = '{{ tags }}',
properties = '{{ properties }}',
extendedLocation = '{{ extendedLocation }}',
zones = '{{ zones }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND custom_ip_prefix_name = '{{ custom_ip_prefix_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
extendedLocation,
location,
properties,
tags,
type,
zones;

DELETE examples

Deletes the specified custom IP prefix.

DELETE FROM azure.network.custom_ip_prefixes
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND custom_ip_prefix_name = '{{ custom_ip_prefix_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;