Skip to main content

ipam_pools

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

Overview

Nameipam_pools
TypeResource
Idazure.network.ipam_pools

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}".
namestringThe name of the resource.
addressPrefixesarrayList of IP address prefixes of the resource. Required.
descriptionstring:vartype description: str
displayNamestringString representing a friendly name for the resource.
etagstringA unique read-only string that changes whenever the resource is updated.
ipAddressTypearrayList of IP address type for the IpamPool.
locationstringThe geo-location where the resource lives. Required.
parentPoolNamestringString representing parent IpamPool resource name. If empty the IpamPool will be a root pool.
provisioningStatestringProvisioning states of a resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
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
getselectresource_group_name, network_manager_name, pool_name, subscription_idGets the specific Pool resource. Gets the specific Pool resource.
listselectresource_group_name, network_manager_name, subscription_idskipToken, skip, top, sortKey, sortValueGets list of Pool resources at Network Manager level. Gets list of Pool resources at Network Manager level.
createinsertresource_group_name, network_manager_name, pool_name, subscription_id, location, propertiesCreates/Updates the Pool resource. Creates/Updates the Pool resource.
updateupdateresource_group_name, network_manager_name, pool_name, subscription_idUpdates the specific Pool resource. Updates the specific Pool resource.
deletedeleteresource_group_name, network_manager_name, pool_name, subscription_idDelete the Pool resource. Delete the Pool resource.
list_associated_resourcesexecresource_group_name, network_manager_name, pool_name, subscription_idList Associated Resource in the Pool. List Associated Resource in the Pool.
get_pool_usageexecresource_group_name, network_manager_name, pool_name, subscription_idGet the Pool Usage. Get the Pool Usage.

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
network_manager_namestringThe name of the network manager. Required.
pool_namestringPool resource name. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
skipintegerOptional num entries to skip. Default value is 0.
skipTokenstringOptional skip token. Default value is None.
sortKeystringOptional key by which to sort. Default value is None.
sortValuestringOptional sort value for pagination. Default value is None.
topintegerOptional num entries to show. Default value is 50.

SELECT examples

Gets the specific Pool resource. Gets the specific Pool resource.

SELECT
id,
name,
addressPrefixes,
description,
displayName,
etag,
ipAddressType,
location,
parentPoolName,
provisioningState,
systemData,
tags,
type
FROM azure.network.ipam_pools
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND network_manager_name = '{{ network_manager_name }}' -- required
AND pool_name = '{{ pool_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates/Updates the Pool resource. Creates/Updates the Pool resource.

INSERT INTO azure.network.ipam_pools (
tags,
location,
properties,
resource_group_name,
network_manager_name,
pool_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}' /* required */,
'{{ resource_group_name }}',
'{{ network_manager_name }}',
'{{ pool_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Updates the specific Pool resource. Updates the specific Pool resource.

UPDATE azure.network.ipam_pools
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND network_manager_name = '{{ network_manager_name }}' --required
AND pool_name = '{{ pool_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete the Pool resource. Delete the Pool resource.

DELETE FROM azure.network.ipam_pools
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND network_manager_name = '{{ network_manager_name }}' --required
AND pool_name = '{{ pool_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

List Associated Resource in the Pool. List Associated Resource in the Pool.

EXEC azure.network.ipam_pools.list_associated_resources 
@resource_group_name='{{ resource_group_name }}' --required,
@network_manager_name='{{ network_manager_name }}' --required,
@pool_name='{{ pool_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;