Skip to main content

volume_quota_rules

Creates, updates, deletes, gets or lists a volume_quota_rules resource.

Overview

Namevolume_quota_rules
TypeResource
Idazure.netapp.volume_quota_rules

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
locationstringThe geo-location where the resource lives. Required.
provisioningStatestringGets the status of the VolumeQuotaRule at the time the operation was called. Known values are: "Accepted", "Creating", "Patching", "Updating", "Deleting", "Moving", "Failed", and "Succeeded". (Accepted, Creating, Patching, Updating, Deleting, Moving, Failed, Succeeded)
quotaSizeInKiBsintegerSize of quota.
quotaTargetstringUserID/GroupID/SID based on the quota target type. UserID and groupID can be found by running ‘id’ or ‘getent’ command for the user or group and SID can be found by running .
quotaTypestringType of quota. Known values are: "DefaultUserQuota", "DefaultGroupQuota", "IndividualUserQuota", and "IndividualGroupQuota". (DefaultUserQuota, DefaultGroupQuota, IndividualUserQuota, IndividualGroupQuota)
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, account_name, pool_name, volume_name, volume_quota_rule_name, subscription_idGet details of the specified quota rule.
list_by_volumeselectresource_group_name, account_name, pool_name, volume_name, subscription_idList all quota rules associated with the volume.
createinsertresource_group_name, account_name, pool_name, volume_name, volume_quota_rule_name, subscription_id, locationCreate the specified quota rule within the given volume.
updateupdateresource_group_name, account_name, pool_name, volume_name, volume_quota_rule_name, subscription_idPatch a quota rule.
deletedeleteresource_group_name, account_name, pool_name, volume_name, volume_quota_rule_name, subscription_idDelete quota rule.

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 NetApp account. Required.
pool_namestringThe name of the capacity pool. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
volume_namestringThe name of the volume. Required.
volume_quota_rule_namestringThe name of volume quota rule. Required.

SELECT examples

Get details of the specified quota rule.

SELECT
id,
name,
location,
provisioningState,
quotaSizeInKiBs,
quotaTarget,
quotaType,
systemData,
tags,
type
FROM azure.netapp.volume_quota_rules
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND account_name = '{{ account_name }}' -- required
AND pool_name = '{{ pool_name }}' -- required
AND volume_name = '{{ volume_name }}' -- required
AND volume_quota_rule_name = '{{ volume_quota_rule_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create the specified quota rule within the given volume.

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

UPDATE examples

Patch a quota rule.

UPDATE azure.netapp.volume_quota_rules
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 volume_name = '{{ volume_name }}' --required
AND volume_quota_rule_name = '{{ volume_quota_rule_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete quota rule.

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