Skip to main content

ip_allocations

Creates, updates, deletes, gets or lists an ip_allocations resource.

Overview

Nameip_allocations
TypeResource
Idazure.network.ip_allocations

Fields

The following fields are returned by SELECT queries:

Request successful. The operation returns the resulting IpAllocation 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.
propertiesobjectProperties of the IpAllocation.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, ipAllocationName, subscriptionId$expandGets the specified IpAllocation by resource group.
list_by_resource_groupselectresourceGroupName, subscriptionIdGets all IpAllocations in a resource group.
listselectsubscriptionIdGets all IpAllocations in a subscription.
create_or_updateinsertresourceGroupName, ipAllocationName, subscriptionIdCreates or updates an IpAllocation in the specified resource group.
deletedeleteresourceGroupName, ipAllocationName, subscriptionIdDeletes the specified IpAllocation.
update_tagsexecresourceGroupName, ipAllocationName, subscriptionIdUpdates a IpAllocation 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
ipAllocationNamestringThe name of the IpAllocation.
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 IpAllocation by resource group.

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

INSERT examples

Creates or updates an IpAllocation in the specified resource group.

INSERT INTO azure.network.ip_allocations (
data__properties,
resourceGroupName,
ipAllocationName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ ipAllocationName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
etag,
properties,
systemData,
type
;

DELETE examples

Deletes the specified IpAllocation.

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

Lifecycle Methods

Updates a IpAllocation tags.

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