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:

Request successful. The operation returns the resulting CustomIpPrefix resource.

NameDatatypeDescription
idstring (arm-id)Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
namestringThe name of the resource
etagstringA unique read-only string that changes whenever the resource is updated.
extendedLocationobjectThe extended location of the custom IP prefix.
propertiesobjectCustom IP prefix properties.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
zonesarrayA list of availability zones denoting the IP allocated for the resource needs to come from.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, customIpPrefixName, subscriptionId$expandGets 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_updateinsertresourceGroupName, customIpPrefixName, subscriptionIdCreates or updates a custom IP prefix.
deletedeleteresourceGroupName, customIpPrefixName, subscriptionIdDeletes the specified custom IP prefix.
update_tagsexecresourceGroupName, customIpPrefixName, subscriptionIdUpdates custom IP prefix tags.

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
customIpPrefixNamestringThe name of the custom IP prefix.
resourceGroupNamestringThe name of the resource group.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
$expandstringExpands referenced resources.

SELECT examples

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

SELECT
id,
name,
etag,
extendedLocation,
properties,
systemData,
type,
zones
FROM azure.network.custom_ip_prefixes
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND customIpPrefixName = '{{ customIpPrefixName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND $expand = '{{ $expand }}'
;

INSERT examples

Creates or updates a custom IP prefix.

INSERT INTO azure.network.custom_ip_prefixes (
data__extendedLocation,
data__properties,
data__zones,
resourceGroupName,
customIpPrefixName,
subscriptionId
)
SELECT
'{{ extendedLocation }}',
'{{ properties }}',
'{{ zones }}',
'{{ resourceGroupName }}',
'{{ customIpPrefixName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
etag,
extendedLocation,
properties,
systemData,
type,
zones
;

DELETE examples

Deletes the specified custom IP prefix.

DELETE FROM azure.network.custom_ip_prefixes
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND customIpPrefixName = '{{ customIpPrefixName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;

Lifecycle Methods

Updates custom IP prefix tags.

EXEC azure.network.custom_ip_prefixes.update_tags 
@resourceGroupName='{{ resourceGroupName }}' --required,
@customIpPrefixName='{{ customIpPrefixName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
@@json=
'{
"tags": "{{ tags }}"
}'
;