move_resources
Creates, updates, deletes, gets or lists a move_resources
resource.
Overview
Name | move_resources |
Type | Resource |
Id | azure.resource_mover.move_resources |
Fields
- vw_move_resources
- move_resources
Name | Datatype | Description |
---|---|---|
id | text | Fully qualified resource Id for the resource. |
name | text | The name of the resource |
depends_on | text | field from the properties object |
depends_on_overrides | text | field from the properties object |
errors | text | field from the properties object |
existing_target_id | text | field from the properties object |
is_resolve_required | text | field from the properties object |
moveCollectionName | text | field from the properties object |
moveResourceName | text | field from the properties object |
move_status | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
resource_settings | text | field from the properties object |
source_id | text | field from the properties object |
source_resource_settings | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
target_id | text | field from the properties object |
type | text | The type of the resource. |
Name | Datatype | Description |
---|---|---|
id | string | Fully qualified resource Id for the resource. |
name | string | The name of the resource |
properties | object | Defines the move resource properties. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
type | string | The type of the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | moveCollectionName, moveResourceName, resourceGroupName, subscriptionId | Gets the Move Resource. |
list | SELECT | moveCollectionName, resourceGroupName, subscriptionId | Lists the Move Resources in the move collection. |
create | INSERT | moveCollectionName, moveResourceName, resourceGroupName, subscriptionId | Creates or updates a Move Resource in the move collection. |
delete | DELETE | moveCollectionName, moveResourceName, resourceGroupName, subscriptionId | Deletes a Move Resource from the move collection. |
SELECT
examples
Lists the Move Resources in the move collection.
- vw_move_resources
- move_resources
SELECT
id,
name,
depends_on,
depends_on_overrides,
errors,
existing_target_id,
is_resolve_required,
moveCollectionName,
moveResourceName,
move_status,
provisioning_state,
resourceGroupName,
resource_settings,
source_id,
source_resource_settings,
subscriptionId,
system_data,
target_id,
type
FROM azure.resource_mover.vw_move_resources
WHERE moveCollectionName = '{{ moveCollectionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
properties,
systemData,
type
FROM azure.resource_mover.move_resources
WHERE moveCollectionName = '{{ moveCollectionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new move_resources
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.resource_mover.move_resources (
moveCollectionName,
moveResourceName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ moveCollectionName }}',
'{{ moveResourceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: properties
value:
- name: provisioningState
value: []
- name: sourceId
value: string
- name: targetId
value: string
- name: existingTargetId
value: string
- name: resourceSettings
value:
- name: resourceType
value: string
- name: targetResourceName
value: string
- name: targetResourceGroupName
value: string
- name: moveStatus
value: string
- name: dependsOn
value:
- - name: id
value: string
- name: resolutionStatus
value: string
- name: resolutionType
value: []
- name: dependencyType
value: []
- name: manualResolution
value:
- name: targetId
value: string
- name: automaticResolution
value:
- name: moveResourceId
value: string
- name: isOptional
value: string
- name: dependsOnOverrides
value:
- - name: id
value: string
- name: targetId
value: string
- name: isResolveRequired
value: boolean
- name: errors
value: string
- 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
DELETE
example
Deletes the specified move_resources
resource.
/*+ delete */
DELETE FROM azure.resource_mover.move_resources
WHERE moveCollectionName = '{{ moveCollectionName }}'
AND moveResourceName = '{{ moveResourceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';