Skip to main content

mesh_volume

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

Overview

Namemesh_volume
TypeResource
Idazure.service_fabric_dataplane.mesh_volume

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestring
azureFileParametersobjectThis type describes a volume provided by an Azure Files file share. All required parameters must be populated in order to send to Azure.
descriptionstring
providerstringRequired. Provider of the volume. Default value: "SFAzureFile" .
statusstringStatus of the volume. Possible values include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed'
statusDetailsstringGives additional information about the current status of the volume.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectvolume_resource_name, endpointGets the Volume resource with the given name. Gets the information about the Volume resource with the given name. The information include the description and other properties of the Volume.
listselectendpointLists all the volume resources. Gets the information about all volume resources in a given resource group. The information include the description and other properties of the Volume.
create_or_updateinsertvolume_resource_name, endpoint, name, propertiesCreates or updates a Volume resource. Creates a Volume resource with the specified name, description and properties. If Volume resource with the same name exists, then it is updated with the specified description and properties.
create_or_updatereplacevolume_resource_name, endpoint, name, propertiesCreates or updates a Volume resource. Creates a Volume resource with the specified name, description and properties. If Volume resource with the same name exists, then it is updated with the specified description and properties.
deletedeletevolume_resource_name, endpointDeletes the Volume resource. Deletes the Volume resource identified by the name.

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
endpointstringThe service endpoint host (no scheme). (default: )
volume_resource_namestringThe identity of the volume.

SELECT examples

Gets the Volume resource with the given name. Gets the information about the Volume resource with the given name. The information include the description and other properties of the Volume.

SELECT
name,
azureFileParameters,
description,
provider,
status,
statusDetails
FROM azure.service_fabric_dataplane.mesh_volume
WHERE volume_resource_name = '{{ volume_resource_name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

INSERT examples

Creates or updates a Volume resource. Creates a Volume resource with the specified name, description and properties. If Volume resource with the same name exists, then it is updated with the specified description and properties.

INSERT INTO azure.service_fabric_dataplane.mesh_volume (
name,
properties,
volume_resource_name,
endpoint
)
SELECT
'{{ name }}' /* required */,
'{{ properties }}' /* required */,
'{{ volume_resource_name }}',
'{{ endpoint }}'
RETURNING
name,
properties
;

REPLACE examples

Creates or updates a Volume resource. Creates a Volume resource with the specified name, description and properties. If Volume resource with the same name exists, then it is updated with the specified description and properties.

REPLACE azure.service_fabric_dataplane.mesh_volume
SET
name = '{{ name }}',
properties = '{{ properties }}'
WHERE
volume_resource_name = '{{ volume_resource_name }}' --required
AND endpoint = '{{ endpoint }}' --required
AND name = '{{ name }}' --required
AND properties = '{{ properties }}' --required
RETURNING
name,
properties;

DELETE examples

Deletes the Volume resource. Deletes the Volume resource identified by the name.

DELETE FROM azure.service_fabric_dataplane.mesh_volume
WHERE volume_resource_name = '{{ volume_resource_name }}' --required
AND endpoint = '{{ endpoint }}' --required
;