Skip to main content

public_ip_prefixes

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

Overview

Namepublic_ip_prefixes
TypeResource
Idazure.network.public_ip_prefixes

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
custom_ip_prefixtextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
extended_locationtextfield from the properties object
ip_prefixtextfield from the properties object
ip_tagstextfield from the properties object
load_balancer_frontend_ip_configurationtextfield from the properties object
locationtextResource location.
nat_gatewaytextfield from the properties object
prefix_lengthtextfield from the properties object
provisioning_statetextfield from the properties object
publicIpPrefixNametextfield from the properties object
public_ip_address_versiontextfield from the properties object
public_ip_addressestextfield from the properties object
resourceGroupNametextfield from the properties object
resource_guidtextfield from the properties object
skutextSKU of a public IP prefix.
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
getSELECTpublicIpPrefixName, resourceGroupName, subscriptionIdGets the specified public IP prefix in a specified resource group.
listSELECTresourceGroupName, subscriptionIdGets all public IP prefixes in a resource group.
list_allSELECTsubscriptionIdGets all the public IP prefixes in a subscription.
create_or_updateINSERTpublicIpPrefixName, resourceGroupName, subscriptionIdCreates or updates a static or dynamic public IP prefix.
deleteDELETEpublicIpPrefixName, resourceGroupName, subscriptionIdDeletes the specified public IP prefix.
update_tagsEXECpublicIpPrefixName, resourceGroupName, subscriptionIdUpdates public IP prefix tags.

SELECT examples

Gets all the public IP prefixes in a subscription.

SELECT
id,
name,
custom_ip_prefix,
etag,
extended_location,
ip_prefix,
ip_tags,
load_balancer_frontend_ip_configuration,
location,
nat_gateway,
prefix_length,
provisioning_state,
publicIpPrefixName,
public_ip_address_version,
public_ip_addresses,
resourceGroupName,
resource_guid,
sku,
subscriptionId,
tags,
type,
zones
FROM azure.network.vw_public_ip_prefixes
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified public_ip_prefixes resource.

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