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

NameDatatypeDescription
idtextResource ID.
nametextResource name.
asntextfield from the properties object
authorization_messagetextfield from the properties object
child_custom_ip_prefixestextfield from the properties object
cidrtextfield from the properties object
commissioned_statetextfield from the properties object
customIpPrefixNametextfield from the properties object
custom_ip_prefix_parenttextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
express_route_advertisetextfield from the properties object
extended_locationtextfield from the properties object
failed_reasontextfield from the properties object
geotextfield from the properties object
locationtextResource location.
no_internet_advertisetextfield from the properties object
prefix_typetextfield from the properties object
provisioning_statetextfield from the properties object
public_ip_prefixestextfield from the properties object
resourceGroupNametextfield from the properties object
resource_guidtextfield from the properties object
signed_messagetextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
typetextResource type.
zonestextA list of availability zones denoting the IP allocated for the resource needs to come from.

Methods

NameAccessible byRequired ParamsDescription
getSELECTcustomIpPrefixName, resourceGroupName, subscriptionIdGets the specified custom IP prefix in a specified resource group.
listSELECTresourceGroupName, subscriptionIdGets all custom IP prefixes in a resource group.
list_allSELECTsubscriptionIdGets all the custom IP prefixes in a subscription.
create_or_updateINSERTcustomIpPrefixName, resourceGroupName, subscriptionIdCreates or updates a custom IP prefix.
deleteDELETEcustomIpPrefixName, resourceGroupName, subscriptionIdDeletes the specified custom IP prefix.
update_tagsEXECcustomIpPrefixName, resourceGroupName, subscriptionIdUpdates custom IP prefix tags.

SELECT examples

Gets all the custom IP prefixes in a subscription.

SELECT
id,
name,
asn,
authorization_message,
child_custom_ip_prefixes,
cidr,
commissioned_state,
customIpPrefixName,
custom_ip_prefix_parent,
etag,
express_route_advertise,
extended_location,
failed_reason,
geo,
location,
no_internet_advertise,
prefix_type,
provisioning_state,
public_ip_prefixes,
resourceGroupName,
resource_guid,
signed_message,
subscriptionId,
tags,
type,
zones
FROM azure.network.vw_custom_ip_prefixes
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new custom_ip_prefixes resource.

/*+ create */
INSERT INTO azure.network.custom_ip_prefixes (
customIpPrefixName,
resourceGroupName,
subscriptionId,
extendedLocation,
properties,
zones,
id,
location,
tags
)
SELECT
'{{ customIpPrefixName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ extendedLocation }}',
'{{ properties }}',
'{{ zones }}',
'{{ id }}',
'{{ location }}',
'{{ tags }}'
;

DELETE example

Deletes the specified custom_ip_prefixes resource.

/*+ delete */
DELETE FROM azure.network.custom_ip_prefixes
WHERE customIpPrefixName = '{{ customIpPrefixName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';