volumes
Creates, updates, deletes, gets or lists a volumes
resource.
Overview
Name | volumes |
Type | Resource |
Id | azure.elastic_san.volumes |
Fields
- vw_volumes
- volumes
Name | Datatype | Description |
---|---|---|
creation_data | text | field from the properties object |
elasticSanName | text | field from the properties object |
managed_by | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
size_gib | text | field from the properties object |
storage_target | text | field from the properties object |
subscriptionId | text | field from the properties object |
volumeGroupName | text | field from the properties object |
volumeName | text | field from the properties object |
volume_id | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Volume response properties. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | elasticSanName, resourceGroupName, subscriptionId, volumeGroupName, volumeName | Get an Volume. |
list_by_volume_group | SELECT | elasticSanName, resourceGroupName, subscriptionId, volumeGroupName | List Volumes in a VolumeGroup. |
create | INSERT | elasticSanName, resourceGroupName, subscriptionId, volumeGroupName, volumeName, data__properties | Create a Volume. |
delete | DELETE | elasticSanName, resourceGroupName, subscriptionId, volumeGroupName, volumeName | Delete an Volume. |
update | UPDATE | elasticSanName, resourceGroupName, subscriptionId, volumeGroupName, volumeName | Update an Volume. |
SELECT
examples
List Volumes in a VolumeGroup.
- vw_volumes
- volumes
SELECT
creation_data,
elasticSanName,
managed_by,
provisioning_state,
resourceGroupName,
size_gib,
storage_target,
subscriptionId,
volumeGroupName,
volumeName,
volume_id
FROM azure.elastic_san.vw_volumes
WHERE elasticSanName = '{{ elasticSanName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND volumeGroupName = '{{ volumeGroupName }}';
SELECT
properties
FROM azure.elastic_san.volumes
WHERE elasticSanName = '{{ elasticSanName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND volumeGroupName = '{{ volumeGroupName }}';
INSERT
example
Use the following StackQL query and manifest file to create a new volumes
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.elastic_san.volumes (
elasticSanName,
resourceGroupName,
subscriptionId,
volumeGroupName,
volumeName,
data__properties,
properties
)
SELECT
'{{ elasticSanName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ volumeGroupName }}',
'{{ volumeName }}',
'{{ data__properties }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: volumeId
value: string
- name: creationData
value:
- name: createSource
value: string
- name: sourceId
value: string
- name: sizeGiB
value: integer
- name: storageTarget
value:
- name: targetIqn
value: string
- name: targetPortalHostname
value: string
- name: targetPortalPort
value: integer
- name: provisioningState
value: []
- name: status
value: []
- name: managedBy
value:
- name: resourceId
value: string
UPDATE
example
Updates a volumes
resource.
/*+ update */
UPDATE azure.elastic_san.volumes
SET
properties = '{{ properties }}'
WHERE
elasticSanName = '{{ elasticSanName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND volumeGroupName = '{{ volumeGroupName }}'
AND volumeName = '{{ volumeName }}';
DELETE
example
Deletes the specified volumes
resource.
/*+ delete */
DELETE FROM azure.elastic_san.volumes
WHERE elasticSanName = '{{ elasticSanName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND volumeGroupName = '{{ volumeGroupName }}'
AND volumeName = '{{ volumeName }}';