Skip to main content

volumes

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

Overview

Namevolumes
TypeResource
Idazure.nexus.volumes

Fields

NameDatatypeDescription
attached_totextfield from the properties object
detailed_statustextfield from the properties object
detailed_status_messagetextfield from the properties object
extended_locationtextfield from the properties object
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
serial_numbertextfield from the properties object
size_mibtextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
volumeNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, volumeNameGet properties of the provided volume.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGet a list of volumes in the provided resource group.
list_by_subscriptionSELECTsubscriptionIdGet a list of volumes in the provided subscription.
create_or_updateINSERTresourceGroupName, subscriptionId, volumeName, data__extendedLocation, data__propertiesCreate a new volume or update the properties of the existing one.
deleteDELETEresourceGroupName, subscriptionId, volumeNameDelete the provided volume.
updateUPDATEresourceGroupName, subscriptionId, volumeNameUpdate tags associated with the provided volume.

SELECT examples

Get a list of volumes in the provided subscription.

SELECT
attached_to,
detailed_status,
detailed_status_message,
extended_location,
location,
provisioning_state,
resourceGroupName,
serial_number,
size_mib,
subscriptionId,
tags,
volumeName
FROM azure.nexus.vw_volumes
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.nexus.volumes (
resourceGroupName,
subscriptionId,
volumeName,
data__extendedLocation,
data__properties,
extendedLocation,
properties,
tags,
location
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ volumeName }}',
'{{ data__extendedLocation }}',
'{{ data__properties }}',
'{{ extendedLocation }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a volumes resource.

/*+ update */
UPDATE azure.nexus.volumes
SET
tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND volumeName = '{{ volumeName }}';

DELETE example

Deletes the specified volumes resource.

/*+ delete */
DELETE FROM azure.nexus.volumes
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND volumeName = '{{ volumeName }}';