volumes
Creates, updates, deletes, gets or lists a volumes
resource.
Overview
Name | volumes |
Type | Resource |
Id | azure_extras.storsimple_8000_series.volumes |
Fields
- vw_volumes
- volumes
Name | Datatype | Description |
---|---|---|
id | text | The path ID that uniquely identifies the object. |
name | text | The name of the object. |
access_control_record_ids | text | field from the properties object |
backup_policy_ids | text | field from the properties object |
backup_status | text | field from the properties object |
deviceName | text | field from the properties object |
kind | text | The Kind of the object. Currently only Series8000 is supported |
managerName | text | field from the properties object |
monitoring_status | text | field from the properties object |
operation_status | text | field from the properties object |
resourceGroupName | text | field from the properties object |
size_in_bytes | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | The hierarchical type of the object. |
volumeContainerName | text | field from the properties object |
volumeName | text | field from the properties object |
volume_container_id | text | field from the properties object |
volume_status | text | field from the properties object |
volume_type | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | The path ID that uniquely identifies the object. |
name | string | The name of the object. |
kind | string | The Kind of the object. Currently only Series8000 is supported |
properties | object | The properties of volume. |
type | string | The hierarchical type of the object. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | deviceName, managerName, resourceGroupName, subscriptionId, volumeContainerName, volumeName | Returns the properties of the specified volume name. |
list_by_device | SELECT | deviceName, managerName, resourceGroupName, subscriptionId | Retrieves all the volumes in a device. |
list_by_volume_container | SELECT | deviceName, managerName, resourceGroupName, subscriptionId, volumeContainerName | Retrieves all the volumes in a volume container. |
create_or_update | INSERT | deviceName, managerName, resourceGroupName, subscriptionId, volumeContainerName, volumeName, data__properties | Creates or updates the volume. |
delete | DELETE | deviceName, managerName, resourceGroupName, subscriptionId, volumeContainerName, volumeName | Deletes the volume. |
SELECT
examples
Retrieves all the volumes in a device.
- vw_volumes
- volumes
SELECT
id,
name,
access_control_record_ids,
backup_policy_ids,
backup_status,
deviceName,
kind,
managerName,
monitoring_status,
operation_status,
resourceGroupName,
size_in_bytes,
subscriptionId,
type,
volumeContainerName,
volumeName,
volume_container_id,
volume_status,
volume_type
FROM azure_extras.storsimple_8000_series.vw_volumes
WHERE deviceName = '{{ deviceName }}'
AND managerName = '{{ managerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
kind,
properties,
type
FROM azure_extras.storsimple_8000_series.volumes
WHERE deviceName = '{{ deviceName }}'
AND managerName = '{{ managerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new volumes
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure_extras.storsimple_8000_series.volumes (
deviceName,
managerName,
resourceGroupName,
subscriptionId,
volumeContainerName,
volumeName,
data__properties,
kind,
properties
)
SELECT
'{{ deviceName }}',
'{{ managerName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ volumeContainerName }}',
'{{ volumeName }}',
'{{ data__properties }}',
'{{ kind }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: kind
value: string
- name: properties
value:
- name: sizeInBytes
value: integer
- name: volumeType
value: string
- name: volumeContainerId
value: string
- name: accessControlRecordIds
value:
- string
- name: volumeStatus
value: string
- name: operationStatus
value: string
- name: backupStatus
value: string
- name: monitoringStatus
value: string
- name: backupPolicyIds
value:
- string
DELETE
example
Deletes the specified volumes
resource.
/*+ delete */
DELETE FROM azure_extras.storsimple_8000_series.volumes
WHERE deviceName = '{{ deviceName }}'
AND managerName = '{{ managerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND volumeContainerName = '{{ volumeContainerName }}'
AND volumeName = '{{ volumeName }}';