Skip to main content

volume_quota_rules

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

Overview

Namevolume_quota_rules
TypeResource
Idazure_isv.netapp.volume_quota_rules

Fields

NameDatatypeDescription
accountNametextfield from the properties object
locationtextThe geo-location where the resource lives
poolNametextfield from the properties object
provisioning_statetextfield from the properties object
quota_size_in_ki_bstextfield from the properties object
quota_targettextfield from the properties object
quota_typetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
volumeNametextfield from the properties object
volumeQuotaRuleNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, poolName, resourceGroupName, subscriptionId, volumeName, volumeQuotaRuleNameGet details of the specified quota rule
list_by_volumeSELECTaccountName, poolName, resourceGroupName, subscriptionId, volumeNameList all quota rules associated with the volume
createINSERTaccountName, poolName, resourceGroupName, subscriptionId, volumeName, volumeQuotaRuleNameCreate the specified quota rule within the given volume
deleteDELETEaccountName, poolName, resourceGroupName, subscriptionId, volumeName, volumeQuotaRuleNameDelete quota rule
updateUPDATEaccountName, poolName, resourceGroupName, subscriptionId, volumeName, volumeQuotaRuleNamePatch a quota rule

SELECT examples

List all quota rules associated with the volume

SELECT
accountName,
location,
poolName,
provisioning_state,
quota_size_in_ki_bs,
quota_target,
quota_type,
resourceGroupName,
subscriptionId,
tags,
volumeName,
volumeQuotaRuleName
FROM azure_isv.netapp.vw_volume_quota_rules
WHERE accountName = '{{ accountName }}'
AND poolName = '{{ poolName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND volumeName = '{{ volumeName }}';

INSERT example

Use the following StackQL query and manifest file to create a new volume_quota_rules resource.

/*+ create */
INSERT INTO azure_isv.netapp.volume_quota_rules (
accountName,
poolName,
resourceGroupName,
subscriptionId,
volumeName,
volumeQuotaRuleName,
tags,
location,
properties
)
SELECT
'{{ accountName }}',
'{{ poolName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ volumeName }}',
'{{ volumeQuotaRuleName }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;

UPDATE example

Updates a volume_quota_rules resource.

/*+ update */
UPDATE azure_isv.netapp.volume_quota_rules
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
accountName = '{{ accountName }}'
AND poolName = '{{ poolName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND volumeName = '{{ volumeName }}'
AND volumeQuotaRuleName = '{{ volumeQuotaRuleName }}';

DELETE example

Deletes the specified volume_quota_rules resource.

/*+ delete */
DELETE FROM azure_isv.netapp.volume_quota_rules
WHERE accountName = '{{ accountName }}'
AND poolName = '{{ poolName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND volumeName = '{{ volumeName }}'
AND volumeQuotaRuleName = '{{ volumeQuotaRuleName }}';