storage_movers
Creates, updates, deletes, gets or lists a storage_movers
resource.
Overview
Name | storage_movers |
Type | Resource |
Id | azure.storage_mover.storage_movers |
Fields
- vw_storage_movers
- storage_movers
Name | Datatype | Description |
---|---|---|
description | text | field from the properties object |
location | text | The geo-location where the resource lives |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
storageMoverName | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
tags | text | Resource tags. |
Name | Datatype | Description |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | The resource specific properties for the Storage Mover resource. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, storageMoverName, subscriptionId | Gets a Storage Mover resource. |
list | SELECT | resourceGroupName, subscriptionId | Lists all Storage Movers in a resource group. |
list_by_subscription | SELECT | subscriptionId | Lists all Storage Movers in a subscription. |
create_or_update | INSERT | resourceGroupName, storageMoverName, subscriptionId | Creates or updates a top-level Storage Mover resource. |
delete | DELETE | resourceGroupName, storageMoverName, subscriptionId | Deletes a Storage Mover resource. |
update | UPDATE | resourceGroupName, storageMoverName, subscriptionId | Updates properties for a Storage Mover resource. Properties not specified in the request body will be unchanged. |
SELECT
examples
Lists all Storage Movers in a subscription.
- vw_storage_movers
- storage_movers
SELECT
description,
location,
provisioning_state,
resourceGroupName,
storageMoverName,
subscriptionId,
system_data,
tags
FROM azure.storage_mover.vw_storage_movers
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
location,
properties,
systemData,
tags
FROM azure.storage_mover.storage_movers
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new storage_movers
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.storage_mover.storage_movers (
resourceGroupName,
storageMoverName,
subscriptionId,
properties,
systemData,
tags,
location
)
SELECT
'{{ resourceGroupName }}',
'{{ storageMoverName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ systemData }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: description
value: string
- name: provisioningState
value: []
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
- name: tags
value: object
- name: location
value: string
UPDATE
example
Updates a storage_movers
resource.
/*+ update */
UPDATE azure.storage_mover.storage_movers
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND storageMoverName = '{{ storageMoverName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified storage_movers
resource.
/*+ delete */
DELETE FROM azure.storage_mover.storage_movers
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND storageMoverName = '{{ storageMoverName }}'
AND subscriptionId = '{{ subscriptionId }}';