volumes
Creates, updates, deletes, gets or lists a volumes
resource.
Overview
Name | volumes |
Type | Resource |
Id | azure.service_fabric_mesh.volumes |
Fields
- vw_volumes
- volumes
Name | Datatype | Description |
---|---|---|
description | text | field from the properties object |
azure_file_parameters | text | field from the properties object |
location | text | The geo-location where the resource lives |
provider | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
status | text | field from the properties object |
status_details | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
volumeResourceName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | This type describes properties of a volume resource. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, subscriptionId, volumeResourceName | Gets the information about the volume resource with the given name. The information include the description and other properties of the volume. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Gets the information about all volume resources in a given resource group. The information include the description and other properties of the Volume. |
list_by_subscription | SELECT | subscriptionId | Gets the information about all volume resources in a given resource group. The information include the description and other properties of the volume. |
create | INSERT | resourceGroupName, subscriptionId, volumeResourceName, data__properties | Creates 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. |
delete | DELETE | resourceGroupName, subscriptionId, volumeResourceName | Deletes 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.
- vw_volumes
- volumes
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 }}';
SELECT
location,
properties,
tags
FROM azure.service_fabric_mesh.volumes
WHERE 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.service_fabric_mesh.volumes (
resourceGroupName,
subscriptionId,
volumeResourceName,
data__properties,
tags,
location,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ volumeResourceName }}',
'{{ data__properties }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: tags
value: object
- name: location
value: string
- name: properties
value:
- name: provisioningState
value: string
- name: description
value: string
- name: status
value: []
- name: statusDetails
value: string
- name: provider
value: []
- name: azureFileParameters
value:
- name: accountName
value: string
- name: accountKey
value: string
- name: shareName
value: string
DELETE
example
Deletes the specified volumes
resource.
/*+ delete */
DELETE FROM azure.service_fabric_mesh.volumes
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND volumeResourceName = '{{ volumeResourceName }}';