Skip to main content

volume_groups

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

Overview

Namevolume_groups
TypeResource
Idazure_isv.netapp.volume_groups

Fields

NameDatatypeDescription
idtextResource Id
nametextResource name
accountNametextfield from the properties object
group_meta_datatextfield from the properties object
locationtextResource location
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
typetextResource type
volumeGroupNametextfield from the properties object
volumestextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, resourceGroupName, subscriptionId, volumeGroupNameGet details of the specified volume group
list_by_netapp_accountSELECTaccountName, resourceGroupName, subscriptionIdList all volume groups for given account
createINSERTaccountName, resourceGroupName, subscriptionId, volumeGroupNameCreate a volume group along with specified volumes
deleteDELETEaccountName, resourceGroupName, subscriptionId, volumeGroupNameDelete the specified volume group only if there are no volumes under volume group.

SELECT examples

List all volume groups for given account

SELECT
id,
name,
accountName,
group_meta_data,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
type,
volumeGroupName,
volumes
FROM azure_isv.netapp.vw_volume_groups
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_isv.netapp.volume_groups (
accountName,
resourceGroupName,
subscriptionId,
volumeGroupName,
location,
properties
)
SELECT
'{{ accountName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ volumeGroupName }}',
'{{ location }}',
'{{ properties }}'
;

DELETE example

Deletes the specified volume_groups resource.

/*+ delete */
DELETE FROM azure_isv.netapp.volume_groups
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND volumeGroupName = '{{ volumeGroupName }}';