Skip to main content

public_ip_addresses

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

Overview

Namepublic_ip_addresses
TypeResource
Idazure.network.public_ip_addresses

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
ddos_settingstextfield from the properties object
delete_optiontextfield from the properties object
dns_settingstextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
extended_locationtextfield from the properties object
idle_timeout_in_minutestextfield from the properties object
ip_addresstextfield from the properties object
ip_configurationtextfield from the properties object
ip_tagstextfield from the properties object
linked_public_ip_addresstextfield from the properties object
locationtextResource location.
migration_phasetextfield from the properties object
nat_gatewaytextfield from the properties object
provisioning_statetextfield from the properties object
publicIpAddressNametextfield from the properties object
public_ip_address_versiontextfield from the properties object
public_ip_allocation_methodtextfield from the properties object
public_ip_prefixtextfield from the properties object
resourceGroupNametextfield from the properties object
resource_guidtextfield from the properties object
service_public_ip_addresstextfield from the properties object
skutextSKU of a public IP address.
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
getSELECTpublicIpAddressName, resourceGroupName, subscriptionIdGets the specified public IP address in a specified resource group.
listSELECTresourceGroupName, subscriptionIdGets all public IP addresses in a resource group.
list_allSELECTsubscriptionIdGets all the public IP addresses in a subscription.
create_or_updateINSERTpublicIpAddressName, resourceGroupName, subscriptionIdCreates or updates a static or dynamic public IP address.
deleteDELETEpublicIpAddressName, resourceGroupName, subscriptionIdDeletes the specified public IP address.
ddos_protection_statusEXECpublicIpAddressName, resourceGroupName, subscriptionIdGets the Ddos Protection Status of a Public IP Address
update_tagsEXECpublicIpAddressName, resourceGroupName, subscriptionIdUpdates public IP address tags.

SELECT examples

Gets all the public IP addresses in a subscription.

SELECT
id,
name,
ddos_settings,
delete_option,
dns_settings,
etag,
extended_location,
idle_timeout_in_minutes,
ip_address,
ip_configuration,
ip_tags,
linked_public_ip_address,
location,
migration_phase,
nat_gateway,
provisioning_state,
publicIpAddressName,
public_ip_address_version,
public_ip_allocation_method,
public_ip_prefix,
resourceGroupName,
resource_guid,
service_public_ip_address,
sku,
subscriptionId,
tags,
type,
zones
FROM azure.network.vw_public_ip_addresses
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified public_ip_addresses resource.

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