replication_migration_items
Creates, updates, deletes, gets or lists a replication_migration_items
resource.
Overview
Name | replication_migration_items |
Type | Resource |
Id | azure.recovery_services_site_recovery.replication_migration_items |
Fields
- vw_replication_migration_items
- replication_migration_items
Name | Datatype | Description |
---|---|---|
id | text | Resource Id |
name | text | Resource Name |
allowed_operations | text | field from the properties object |
critical_job_history | text | field from the properties object |
current_job | text | field from the properties object |
event_correlation_id | text | field from the properties object |
fabricName | text | field from the properties object |
health | text | field from the properties object |
health_errors | text | field from the properties object |
last_migration_status | text | field from the properties object |
last_migration_time | text | field from the properties object |
last_test_migration_status | text | field from the properties object |
last_test_migration_time | text | field from the properties object |
location | text | Resource Location |
machine_name | text | field from the properties object |
migrationItemName | text | field from the properties object |
migration_state | text | field from the properties object |
migration_state_description | text | field from the properties object |
policy_friendly_name | text | field from the properties object |
policy_id | text | field from the properties object |
protectionContainerName | text | field from the properties object |
provider_specific_details | text | field from the properties object |
recovery_services_provider_id | text | field from the properties object |
replication_status | text | field from the properties object |
resourceGroupName | text | field from the properties object |
resourceName | text | field from the properties object |
subscriptionId | text | field from the properties object |
test_migrate_state | text | field from the properties object |
test_migrate_state_description | text | field from the properties object |
type | text | Resource Type |
Name | Datatype | Description |
---|---|---|
id | string | Resource Id |
name | string | Resource Name |
location | string | Resource Location |
properties | object | Migration item properties. |
type | string | Resource Type |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | fabricName, migrationItemName, protectionContainerName, resourceGroupName, resourceName, subscriptionId | |
list | SELECT | resourceGroupName, resourceName, subscriptionId | |
list_by_replication_protection_containers | SELECT | fabricName, protectionContainerName, resourceGroupName, resourceName, subscriptionId | Gets the list of ASR migration items in the protection container. |
create | INSERT | fabricName, migrationItemName, protectionContainerName, resourceGroupName, resourceName, subscriptionId, data__properties | The operation to create an ASR migration item (enable migration). |
delete | DELETE | fabricName, migrationItemName, protectionContainerName, resourceGroupName, resourceName, subscriptionId | The operation to delete an ASR migration item. |
update | UPDATE | fabricName, migrationItemName, protectionContainerName, resourceGroupName, resourceName, subscriptionId | The operation to update the recovery settings of an ASR migration item. |
migrate | EXEC | fabricName, migrationItemName, protectionContainerName, resourceGroupName, resourceName, subscriptionId, data__properties | The operation to initiate migration of the item. |
pause_replication | EXEC | fabricName, migrationItemName, protectionContainerName, resourceGroupName, resourceName, subscriptionId, data__properties | The operation to initiate pause replication of the item. |
resume_replication | EXEC | fabricName, migrationItemName, protectionContainerName, resourceGroupName, resourceName, subscriptionId, data__properties | The operation to initiate resume replication of the item. |
resync | EXEC | fabricName, migrationItemName, protectionContainerName, resourceGroupName, resourceName, subscriptionId, data__properties | The operation to resynchronize replication of an ASR migration item. |
test_migrate | EXEC | fabricName, migrationItemName, protectionContainerName, resourceGroupName, resourceName, subscriptionId, data__properties | The operation to initiate test migration of the item. |
test_migrate_cleanup | EXEC | fabricName, migrationItemName, protectionContainerName, resourceGroupName, resourceName, subscriptionId, data__properties | The operation to initiate test migrate cleanup. |
SELECT
examples
- vw_replication_migration_items
- replication_migration_items
SELECT
id,
name,
allowed_operations,
critical_job_history,
current_job,
event_correlation_id,
fabricName,
health,
health_errors,
last_migration_status,
last_migration_time,
last_test_migration_status,
last_test_migration_time,
location,
machine_name,
migrationItemName,
migration_state,
migration_state_description,
policy_friendly_name,
policy_id,
protectionContainerName,
provider_specific_details,
recovery_services_provider_id,
replication_status,
resourceGroupName,
resourceName,
subscriptionId,
test_migrate_state,
test_migrate_state_description,
type
FROM azure.recovery_services_site_recovery.vw_replication_migration_items
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
location,
properties,
type
FROM azure.recovery_services_site_recovery.replication_migration_items
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new replication_migration_items
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.recovery_services_site_recovery.replication_migration_items (
fabricName,
migrationItemName,
protectionContainerName,
resourceGroupName,
resourceName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ fabricName }}',
'{{ migrationItemName }}',
'{{ protectionContainerName }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: policyId
value: string
- name: providerSpecificDetails
value:
- name: instanceType
value: string
UPDATE
example
Updates a replication_migration_items
resource.
/*+ update */
UPDATE azure.recovery_services_site_recovery.replication_migration_items
SET
properties = '{{ properties }}'
WHERE
fabricName = '{{ fabricName }}'
AND migrationItemName = '{{ migrationItemName }}'
AND protectionContainerName = '{{ protectionContainerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified replication_migration_items
resource.
/*+ delete */
DELETE FROM azure.recovery_services_site_recovery.replication_migration_items
WHERE fabricName = '{{ fabricName }}'
AND migrationItemName = '{{ migrationItemName }}'
AND protectionContainerName = '{{ protectionContainerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';