public_ip_prefixes
Creates, updates, deletes, gets or lists a public_ip_prefixes
resource.
Overview
Name | public_ip_prefixes |
Type | Resource |
Id | azure.network.public_ip_prefixes |
Fields
The following fields are returned by SELECT
queries:
- get
- list
- list_all
Request successful. The operation returns the resulting PublicIPPrefix resource.
Name | Datatype | Description |
---|---|---|
id | string (arm-id) | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name | string | The name of the resource |
etag | string | A unique read-only string that changes whenever the resource is updated. |
extendedLocation | object | The extended location of the public ip address. |
properties | object | Public IP prefix properties. |
sku | object | The public IP prefix SKU. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
zones | array | A list of availability zones denoting the IP allocated for the resource needs to come from. |
Request successful. The operation returns a list of PublicIPPrefix resources.
Name | Datatype | Description |
---|---|---|
id | string (arm-id) | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name | string | The name of the resource |
etag | string | A unique read-only string that changes whenever the resource is updated. |
extendedLocation | object | The extended location of the public ip address. |
properties | object | Public IP prefix properties. |
sku | object | The public IP prefix SKU. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
zones | array | A list of availability zones denoting the IP allocated for the resource needs to come from. |
Request successful. The operation returns a list of PublicIPPrefix resources.
Name | Datatype | Description |
---|---|---|
id | string (arm-id) | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name | string | The name of the resource |
etag | string | A unique read-only string that changes whenever the resource is updated. |
extendedLocation | object | The extended location of the public ip address. |
properties | object | Public IP prefix properties. |
sku | object | The public IP prefix SKU. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
zones | array | A list of availability zones denoting the IP allocated for the resource needs to come from. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | resourceGroupName , publicIpPrefixName , subscriptionId | $expand | Gets the specified public IP prefix in a specified resource group. |
list | select | resourceGroupName , subscriptionId | Gets all public IP prefixes in a resource group. | |
list_all | select | subscriptionId | Gets all the public IP prefixes in a subscription. | |
create_or_update | insert | resourceGroupName , publicIpPrefixName , subscriptionId | Creates or updates a static or dynamic public IP prefix. | |
delete | delete | resourceGroupName , publicIpPrefixName , subscriptionId | Deletes the specified public IP prefix. | |
update_tags | exec | resourceGroupName , publicIpPrefixName , subscriptionId | Updates public 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.
Name | Datatype | Description |
---|---|---|
publicIpPrefixName | string | The name of the public IP prefix. |
resourceGroupName | string | The name of the resource group. |
subscriptionId | string (uuid) | The ID of the target subscription. The value must be an UUID. |
$expand | string | Expands referenced resources. |
SELECT
examples
- get
- list
- list_all
Gets the specified public IP prefix in a specified resource group.
SELECT
id,
name,
etag,
extendedLocation,
properties,
sku,
systemData,
type,
zones
FROM azure.network.public_ip_prefixes
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND publicIpPrefixName = '{{ publicIpPrefixName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND $expand = '{{ $expand }}'
;
Gets all public IP prefixes in a resource group.
SELECT
id,
name,
etag,
extendedLocation,
properties,
sku,
systemData,
type,
zones
FROM azure.network.public_ip_prefixes
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;
Gets all the public IP prefixes in a subscription.
SELECT
id,
name,
etag,
extendedLocation,
properties,
sku,
systemData,
type,
zones
FROM azure.network.public_ip_prefixes
WHERE subscriptionId = '{{ subscriptionId }}' -- required
;
INSERT
examples
- create_or_update
- Manifest
Creates or updates a static or dynamic public IP prefix.
INSERT INTO azure.network.public_ip_prefixes (
data__extendedLocation,
data__sku,
data__properties,
data__zones,
resourceGroupName,
publicIpPrefixName,
subscriptionId
)
SELECT
'{{ extendedLocation }}',
'{{ sku }}',
'{{ properties }}',
'{{ zones }}',
'{{ resourceGroupName }}',
'{{ publicIpPrefixName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
etag,
extendedLocation,
properties,
sku,
systemData,
type,
zones
;
# Description fields are for documentation purposes
- name: public_ip_prefixes
props:
- name: resourceGroupName
value: string
description: Required parameter for the public_ip_prefixes resource.
- name: publicIpPrefixName
value: string
description: Required parameter for the public_ip_prefixes resource.
- name: subscriptionId
value: string (uuid)
description: Required parameter for the public_ip_prefixes resource.
- name: extendedLocation
value: object
description: |
The extended location of the public ip address.
- name: sku
value: object
description: |
The public IP prefix SKU.
- name: properties
value: object
description: |
Public IP prefix properties.
- name: zones
value: array
description: |
A list of availability zones denoting the IP allocated for the resource needs to come from.
DELETE
examples
- delete
Deletes the specified public IP prefix.
DELETE FROM azure.network.public_ip_prefixes
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND publicIpPrefixName = '{{ publicIpPrefixName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;
Lifecycle Methods
- update_tags
Updates public IP prefix tags.
EXEC azure.network.public_ip_prefixes.update_tags
@resourceGroupName='{{ resourceGroupName }}' --required,
@publicIpPrefixName='{{ publicIpPrefixName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
@@json=
'{
"tags": "{{ tags }}"
}'
;