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

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource Id
namestringResource name
locationstringResource location
propertiesobjectVolume group properties
typestringResource type

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, accountName, volumeGroupNameGet details of the specified volume group
list_by_netapp_accountselectsubscriptionId, resourceGroupName, accountNameList all volume groups for given account
createinsertsubscriptionId, resourceGroupName, accountName, volumeGroupNameCreate a volume group along with specified volumes
deletedeletesubscriptionId, resourceGroupName, accountName, volumeGroupNameDelete the specified volume group only if there are no volumes under volume group.

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
accountNamestringThe name of the NetApp account
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.
volumeGroupNamestringThe name of the volumeGroup

SELECT examples

Get details of the specified volume group

SELECT
id,
name,
location,
properties,
type
FROM azure_isv.netapp.volume_groups
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
AND volumeGroupName = '{{ volumeGroupName }}' -- required
;

INSERT examples

Create a volume group along with specified volumes

INSERT INTO azure_isv.netapp.volume_groups (
data__location,
data__properties,
subscriptionId,
resourceGroupName,
accountName,
volumeGroupName
)
SELECT
'{{ location }}',
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ accountName }}',
'{{ volumeGroupName }}'
RETURNING
id,
name,
location,
properties,
type
;

DELETE examples

Delete the specified volume group only if there are no volumes under volume group.

DELETE FROM azure_isv.netapp.volume_groups
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
AND volumeGroupName = '{{ volumeGroupName }}' --required
;