Skip to main content

volumes

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

Overview

Namevolumes
TypeResource
Idazure.service_fabric_mesh.volumes

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
azure_file_parameterstextfield from the properties object
locationtextThe geo-location where the resource lives
providertextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
statustextfield from the properties object
status_detailstextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
volumeResourceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, subscriptionId, volumeResourceNameGets the information about the volume resource with the given name. The information include the description and other properties of the volume.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets the information about all volume resources in a given resource group. The information include the description and other properties of the Volume.
list_by_subscriptionSELECTsubscriptionIdGets the information about all volume resources in a given resource group. The information include the description and other properties of the volume.
createINSERTresourceGroupName, subscriptionId, volumeResourceName, data__propertiesCreates a volume resource with the specified name, description and properties. If a volume resource with the same name exists, then it is updated with the specified description and properties.
deleteDELETEresourceGroupName, subscriptionId, volumeResourceNameDeletes the volume resource identified by the name.

SELECT examples

Gets the information about all volume resources in a given resource group. The information include the description and other properties of the volume.

SELECT
description,
azure_file_parameters,
location,
provider,
provisioning_state,
resourceGroupName,
status,
status_details,
subscriptionId,
tags,
volumeResourceName
FROM azure.service_fabric_mesh.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.service_fabric_mesh.volumes (
resourceGroupName,
subscriptionId,
volumeResourceName,
data__properties,
tags,
location,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ volumeResourceName }}',
'{{ data__properties }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;

DELETE example

Deletes the specified volumes resource.

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