subvolumes
Creates, updates, deletes, gets or lists a subvolumes
resource.
Overview
Name | subvolumes |
Type | Resource |
Id | azure_isv.netapp.subvolumes |
Fields
- vw_subvolumes
- subvolumes
Name | Datatype | Description |
---|---|---|
accountName | text | field from the properties object |
parent_path | text | field from the properties object |
path | text | field from the properties object |
poolName | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
size | text | field from the properties object |
subscriptionId | text | field from the properties object |
subvolumeName | text | field from the properties object |
volumeName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | This represents path associated with the subvolume |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | accountName, poolName, resourceGroupName, subscriptionId, subvolumeName, volumeName | Returns the path associated with the subvolumeName provided |
list_by_volume | SELECT | accountName, poolName, resourceGroupName, subscriptionId, volumeName | Returns a list of the subvolumes in the volume |
create | INSERT | accountName, poolName, resourceGroupName, subscriptionId, subvolumeName, volumeName | Creates a subvolume in the path or clones the subvolume mentioned in the parentPath |
delete | DELETE | accountName, poolName, resourceGroupName, subscriptionId, subvolumeName, volumeName | Delete subvolume |
update | UPDATE | accountName, poolName, resourceGroupName, subscriptionId, subvolumeName, volumeName | Patch a subvolume |
SELECT
examples
Returns a list of the subvolumes in the volume
- vw_subvolumes
- subvolumes
SELECT
accountName,
parent_path,
path,
poolName,
provisioning_state,
resourceGroupName,
size,
subscriptionId,
subvolumeName,
volumeName
FROM azure_isv.netapp.vw_subvolumes
WHERE accountName = '{{ accountName }}'
AND poolName = '{{ poolName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND volumeName = '{{ volumeName }}';
SELECT
properties
FROM azure_isv.netapp.subvolumes
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 subvolumes
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_isv.netapp.subvolumes (
accountName,
poolName,
resourceGroupName,
subscriptionId,
subvolumeName,
volumeName,
properties
)
SELECT
'{{ accountName }}',
'{{ poolName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ subvolumeName }}',
'{{ volumeName }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: path
value: string
- name: size
value: integer
- name: parentPath
value: string
- name: provisioningState
value: string
UPDATE
example
Updates a subvolumes
resource.
/*+ update */
UPDATE azure_isv.netapp.subvolumes
SET
properties = '{{ properties }}'
WHERE
accountName = '{{ accountName }}'
AND poolName = '{{ poolName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND subvolumeName = '{{ subvolumeName }}'
AND volumeName = '{{ volumeName }}';
DELETE
example
Deletes the specified subvolumes
resource.
/*+ delete */
DELETE FROM azure_isv.netapp.subvolumes
WHERE accountName = '{{ accountName }}'
AND poolName = '{{ poolName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND subvolumeName = '{{ subvolumeName }}'
AND volumeName = '{{ volumeName }}';