Skip to main content

volumes

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

Overview

Namevolumes
TypeResource
Idazure.nexus.volumes

Fields

The following fields are returned by SELECT queries:

The resource has been successfully retrieved.

NameDatatypeDescription
extendedLocationobjectThe extended location of the cluster associated with the resource. (title: ExtendedLocation represents the Azure custom location where the resource will be created.)
locationstringThe geo-location where the resource lives
propertiesobjectThe list of the resource properties. (title: VolumeProperties represents properties of the volume resource.)
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, volumeNameGet properties of the provided volume.
list_by_resource_groupselectsubscriptionId, resourceGroupNameGet a list of volumes in the provided resource group.
list_by_subscriptionselectsubscriptionIdGet a list of volumes in the provided subscription.
create_or_updateinsertsubscriptionId, resourceGroupName, volumeName, data__extendedLocation, data__propertiesCreate a new volume or update the properties of the existing one.
updateupdatesubscriptionId, resourceGroupName, volumeNameUpdate tags associated with the provided volume.
deletedeletesubscriptionId, resourceGroupName, volumeNameDelete the provided volume.

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
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.
volumeNamestringThe name of the volume.

SELECT examples

Get properties of the provided volume.

SELECT
extendedLocation,
location,
properties,
tags
FROM azure.nexus.volumes
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND volumeName = '{{ volumeName }}' -- required
;

INSERT examples

Create a new volume or update the properties of the existing one.

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

UPDATE examples

Update tags associated with the provided volume.

UPDATE azure.nexus.volumes
SET
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND volumeName = '{{ volumeName }}' --required
RETURNING
extendedLocation,
location,
properties,
tags;

DELETE examples

Delete the provided volume.

DELETE FROM azure.nexus.volumes
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND volumeName = '{{ volumeName }}' --required
;