Skip to main content

elastic_capacity_pools

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

Overview

Nameelastic_capacity_pools
TypeResource
Idazure.netapp.elastic_capacity_pools

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
isAvailablestringTrue indicates name is valid and available. False indicates the name is invalid, unavailable, or both. Known values are: "True" and "False". (True, False)
messagestringIf reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that resource name is already in use, and direct them to select a different name.
reasonstringInvalid indicates the name provided does not match Azure NetApp Files naming requirements. AlreadyExists indicates that the name is already in use and is therefore unavailable. Known values are: "Invalid" and "AlreadyExists". (Invalid, AlreadyExists)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
check_volume_file_path_availabilityselectresource_group_name, account_name, pool_name, subscription_idCheck if an Elastic Volume file path is available within the given Elastic Capacity Pool.
getselectresource_group_name, account_name, pool_name, subscription_idGet the NetApp Elastic Capacity Pool.
list_by_elastic_accountselectresource_group_name, account_name, subscription_idList and describe all NetApp Elastic Capacity Pools in the Elastic NetApp Account.
create_or_updateinsertresource_group_name, account_name, pool_name, subscription_id, locationCreate or update the specified NetApp Elastic Capacity Pool within the resource group and NetApp Elastic Account.
updateupdateresource_group_name, account_name, pool_name, subscription_idPatch the specified NetApp Elastic Capacity Pool.
create_or_updatereplaceresource_group_name, account_name, pool_name, subscription_id, locationCreate or update the specified NetApp Elastic Capacity Pool within the resource group and NetApp Elastic Account.
deletedeleteresource_group_name, account_name, pool_name, subscription_idDelete the specified NetApp Elastic Capacity Pool.
change_zoneexecresource_group_name, account_name, pool_name, subscription_id, newZoneMoves pool to another zone.

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
account_namestringThe name of the ElasticAccount. Required.
pool_namestringThe name of the ElasticCapacityPool. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Check if an Elastic Volume file path is available within the given Elastic Capacity Pool.

SELECT
isAvailable,
message,
reason
FROM azure.netapp.elastic_capacity_pools
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND account_name = '{{ account_name }}' -- required
AND pool_name = '{{ pool_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or update the specified NetApp Elastic Capacity Pool within the resource group and NetApp Elastic Account.

INSERT INTO azure.netapp.elastic_capacity_pools (
tags,
location,
properties,
zones,
resource_group_name,
account_name,
pool_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ zones }}',
'{{ resource_group_name }}',
'{{ account_name }}',
'{{ pool_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
eTag,
location,
properties,
systemData,
tags,
type,
zones
;

UPDATE examples

Patch the specified NetApp Elastic Capacity Pool.

UPDATE azure.netapp.elastic_capacity_pools
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND pool_name = '{{ pool_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
eTag,
location,
properties,
systemData,
tags,
type,
zones;

REPLACE examples

Create or update the specified NetApp Elastic Capacity Pool within the resource group and NetApp Elastic Account.

REPLACE azure.netapp.elastic_capacity_pools
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
zones = '{{ zones }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND pool_name = '{{ pool_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
eTag,
location,
properties,
systemData,
tags,
type,
zones;

DELETE examples

Delete the specified NetApp Elastic Capacity Pool.

DELETE FROM azure.netapp.elastic_capacity_pools
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND pool_name = '{{ pool_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Moves pool to another zone.

EXEC azure.netapp.elastic_capacity_pools.change_zone 
@resource_group_name='{{ resource_group_name }}' --required,
@account_name='{{ account_name }}' --required,
@pool_name='{{ pool_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"newZone": "{{ newZone }}"
}'
;