volume_quota_rules
Creates, updates, deletes, gets or lists a volume_quota_rules
resource.
Overview
Name | volume_quota_rules |
Type | Resource |
Id | azure_isv.netapp.volume_quota_rules |
Fields
- vw_volume_quota_rules
- volume_quota_rules
Name | Datatype | Description |
---|---|---|
accountName | text | field from the properties object |
location | text | The geo-location where the resource lives |
poolName | text | field from the properties object |
provisioning_state | text | field from the properties object |
quota_size_in_ki_bs | text | field from the properties object |
quota_target | text | field from the properties object |
quota_type | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
volumeName | text | field from the properties object |
volumeQuotaRuleName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | Volume Quota Rule properties |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | accountName, poolName, resourceGroupName, subscriptionId, volumeName, volumeQuotaRuleName | Get details of the specified quota rule |
list_by_volume | SELECT | accountName, poolName, resourceGroupName, subscriptionId, volumeName | List all quota rules associated with the volume |
create | INSERT | accountName, poolName, resourceGroupName, subscriptionId, volumeName, volumeQuotaRuleName | Create the specified quota rule within the given volume |
delete | DELETE | accountName, poolName, resourceGroupName, subscriptionId, volumeName, volumeQuotaRuleName | Delete quota rule |
update | UPDATE | accountName, poolName, resourceGroupName, subscriptionId, volumeName, volumeQuotaRuleName | Patch a quota rule |
SELECT
examples
List all quota rules associated with the volume
- vw_volume_quota_rules
- volume_quota_rules
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 }}';
SELECT
location,
properties,
tags
FROM azure_isv.netapp.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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: tags
value: object
- name: location
value: string
- name: properties
value:
- name: provisioningState
value: []
- name: quotaSizeInKiBs
value: integer
- name: quotaType
value: string
- name: quotaTarget
value: string
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 }}';