Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration APIs #4425

Merged
merged 2 commits into from
Dec 3, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"api-version": "2018-01-10",
"migrationRecoveryPointName": "b22134ea-620c-474b-9fa5-3c1cb47708e3",
"migrationItemName": "virtualmachine1",
"protectionContainerName": "vmwareContainer1",
"fabricName": "vmwarefabric1",
"resourceName": "migrationvault",
"resourceGroupName": "resourcegroup1",
"subscriptionId": "cb53d0c3-bd59-4721-89bc-06916a9147ef"
},
"responses": {
"200": {
"body": {
"name": "b22134ea-620c-474b-9fa5-3c1cb47708e3",
"type": "Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems/migrationRecoveryPoints",
"id": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationFabrics/vmwarefabric1/replicationProtectionContainers/vmwareContainer1/replicationMigrationItems/virtualmachine1/migrationRecoveryPoints/b22134ea-620c-474b-9fa5-3c1cb47708e3",
"properties": {
"recoveryPointTime": "2017-04-26T06:37:50.8082715Z",
"recoveryPointType": "CrashConsistent"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"parameters": {
"api-version": "2018-01-10",
"migrationItemName": "virtualmachine1",
"protectionContainerName": "vmwareContainer1",
"fabricName": "vmwarefabric1",
"resourceName": "migrationvault",
"resourceGroupName": "resourcegroup1",
"subscriptionId": "cb53d0c3-bd59-4721-89bc-06916a9147ef"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "648336ef-2d70-4d98-b100-8c299f97cd41",
"type": "Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems/migrationRecoveryPoints",
"id": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationFabrics/vmwarefabric1/replicationProtectionContainers/vmwareContainer1/replicationMigrationItems/virtualmachine1/migrationRecoveryPoints/648336ef-2d70-4d98-b100-8c299f97cd41",
"properties": {
"recoveryPointTime": "2017-04-26T06:37:50.8082715Z",
"recoveryPointType": "CrashConsistent"
}
},
{
"name": "34cb2d05-e730-4d3f-b96b-a60a5e92acb2",
"type": "Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems/migrationRecoveryPoints",
"id": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationFabrics/vmwarefabric1/replicationProtectionContainers/vmwareContainer1/replicationMigrationItems/virtualmachine1/migrationRecoveryPoints/34cb2d05-e730-4d3f-b96b-a60a5e92acb2",
"properties": {
"recoveryPointTime": "2017-04-26T07:37:30.9722019Z",
"recoveryPointType": "CrashConsistent"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"parameters": {
"api-version": "2018-01-10",
"migrationItemName": "virtualmachine1",
"protectionContainerName": "vmwareContainer1",
"fabricName": "vmwarefabric1",
"resourceName": "migrationvault",
"resourceGroupName": "resourcegroup1",
"subscriptionId": "cb53d0c3-bd59-4721-89bc-06916a9147ef",
"input": {
"properties": {
"policyId": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationPolicies/vmwarepolicy1",
"providerSpecificDetails": {
"instanceType": "VMwareCbt"
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationFabrics/vmwarefabric1/replicationProtectionContainers/vmwareContainer1/replicationMigrationItems/virtualmachine1",
"name": "virtualmachine1",
"type": "Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems",
"properties": {
"machineName": "vm-0520-2",
"migrationState": "Replicating",
"migrationStateDescription": "Ready to migrate",
"testMigrateState": "None",
"testMigrateStateDescription": "None",
"policyFriendlyName": "vmwarepolicy1",
"policyId": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationPolicies/vmwarepolicy1",
"allowedOperations": [
"Migrate",
"DisableMigration",
"TestMigrate",
"TestMigrateCleanup"
],
"currentJob": {
"jobName": "None",
"jobId": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationJobs/None",
"startTime": "2017-04-26T06:37:50.8082715Z"
},
"providerSpecificDetails": {
"instanceType": "VMwareCbt"
},
"recoveryServicesProviderId": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationFabrics/vmwarefabric1/replicationRecoveryServicesProviders/45b55118-f42d-505f-8bde-f3745258171f"
}
}
},
"202": {
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"api-version": "2018-01-10",
"migrationItemName": "virtualmachine1",
"protectionContainerName": "vmwareContainer1",
"fabricName": "vmwarefabric1",
"resourceName": "migrationvault",
"resourceGroupName": "resourcegroup1",
"subscriptionId": "cb53d0c3-bd59-4721-89bc-06916a9147ef"
},
"responses": {
"202": {
},
"204": {
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"parameters": {
"api-version": "2018-01-10",
"migrationItemName": "virtualmachine1",
"protectionContainerName": "vmwareContainer1",
"fabricName": "vmwarefabric1",
"resourceName": "migrationvault",
"resourceGroupName": "resourcegroup1",
"subscriptionId": "cb53d0c3-bd59-4721-89bc-06916a9147ef"
},
"responses": {
"200": {
"body": {
"id": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationFabrics/vmwarefabric1/replicationProtectionContainers/vmwareContainer1/replicationMigrationItems/virtualmachine1",
"name": "virtualmachine1",
"type": "Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems",
"properties": {
"machineName": "vm-0520-2",
"migrationState": "Replicating",
"migrationStateDescription": "Ready to migrate",
"testMigrateState": "None",
"testMigrateStateDescription": "None",
"policyFriendlyName": "vmwarepolicy1",
"policyId": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationPolicies/vmwarepolicy1",
"allowedOperations": [
"Migrate",
"DisableMigration",
"TestMigrate",
"TestMigrateCleanup"
],
"currentJob": {
"jobName": "None",
"jobId": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationJobs/None",
"startTime": "2017-04-26T06:37:50.8082715Z"
},
"providerSpecificDetails": {
"instanceType": "VMwareCbt"
},
"recoveryServicesProviderId": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationFabrics/vmwarefabric1/replicationRecoveryServicesProviders/45b55118-f42d-505f-8bde-f3745258171f"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"parameters": {
"api-version": "2018-01-10",
"resourceName": "migrationvault",
"resourceGroupName": "resourcegroup1",
"subscriptionId": "cb53d0c3-bd59-4721-89bc-06916a9147ef"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationFabrics/vmwarefabric1/replicationProtectionContainers/vmwareContainer1/replicationMigrationItems/virtualmachine1",
"name": "virtualmachine1",
"type": "Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems",
"properties": {
"machineName": "vm-0520-2",
"migrationState": "Replicating",
"migrationStateDescription": "Ready to migrate",
"testMigrateState": "None",
"testMigrateStateDescription": "None",
"policyFriendlyName": "vmwarepolicy1",
"policyId": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationPolicies/vmwarepolicy1",
"allowedOperations": [
"Migrate",
"DisableMigration",
"TestMigrate",
"TestMigrateCleanup"
],
"currentJob": {
"jobName": "None",
"jobId": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationJobs/None",
"startTime": "2017-04-26T06:37:50.8082715Z"
},
"providerSpecificDetails": {
"instanceType": "VMwareCbt"
},
"recoveryServicesProviderId": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationFabrics/vmwarefabric1/replicationRecoveryServicesProviders/45b55118-f42d-505f-8bde-f3745258171f"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"parameters": {
"api-version": "2018-01-10",
"protectionContainerName": "vmwareContainer1",
"fabricName": "vmwarefabric1",
"resourceName": "migrationvault",
"resourceGroupName": "resourcegroup1",
"subscriptionId": "cb53d0c3-bd59-4721-89bc-06916a9147ef"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationFabrics/vmwarefabric1/replicationProtectionContainers/vmwareContainer1/replicationMigrationItems/virtualmachine1",
"name": "virtualmachine1",
"type": "Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems",
"properties": {
"machineName": "vm-0520-2",
"migrationState": "Replicating",
"migrationStateDescription": "Ready to migrate",
"testMigrateState": "None",
"testMigrateStateDescription": "None",
"policyFriendlyName": "vmwarepolicy1",
"policyId": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationPolicies/vmwarepolicy1",
"allowedOperations": [
"Migrate",
"DisableMigration",
"TestMigrate",
"TestMigrateCleanup"
],
"currentJob": {
"jobName": "None",
"jobId": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationJobs/None",
"startTime": "2017-04-26T06:37:50.8082715Z"
},
"providerSpecificDetails": {
"instanceType": "VMwareCbt"
},
"recoveryServicesProviderId": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationFabrics/vmwarefabric1/replicationRecoveryServicesProviders/45b55118-f42d-505f-8bde-f3745258171f"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"parameters": {
"api-version": "2018-01-10",
"migrationItemName": "virtualmachine1",
"protectionContainerName": "vmwareContainer1",
"fabricName": "vmwarefabric1",
"resourceName": "migrationvault",
"resourceGroupName": "resourcegroup1",
"subscriptionId": "cb53d0c3-bd59-4721-89bc-06916a9147ef",
"migrateInput": {
"properties": {
"providerSpecificDetails": {
"instanceType": "VMwareCbt"
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationFabrics/vmwarefabric1/replicationProtectionContainers/vmwareContainer1/replicationMigrationItems/virtualmachine1",
"name": "virtualmachine1",
"type": "Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems",
"properties": {
"machineName": "vm-0520-2",
"migrationState": "Replicating",
"migrationStateDescription": "Ready to migrate",
"testMigrateState": "None",
"testMigrateStateDescription": "None",
"policyFriendlyName": "vmwarepolicy1",
"policyId": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationPolicies/vmwarepolicy1",
"allowedOperations": [
"Migrate",
"DisableMigration",
"TestMigrate",
"TestMigrateCleanup"
],
"currentJob": {
"jobName": "None",
"jobId": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationJobs/None",
"startTime": "2017-04-26T06:37:50.8082715Z"
},
"providerSpecificDetails": {
"instanceType": "VMwareCbt"
},
"recoveryServicesProviderId": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationFabrics/vmwarefabric1/replicationRecoveryServicesProviders/45b55118-f42d-505f-8bde-f3745258171f"
}
}
},
"202": {
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"parameters": {
"api-version": "2018-01-10",
"migrationItemName": "virtualmachine1",
"protectionContainerName": "vmwareContainer1",
"fabricName": "vmwarefabric1",
"resourceName": "migrationvault",
"resourceGroupName": "resourcegroup1",
"subscriptionId": "cb53d0c3-bd59-4721-89bc-06916a9147ef",
"testMigrateInput": {
"properties": {
"providerSpecificDetails": {
"instanceType": "VMwareCbt"
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationFabrics/vmwarefabric1/replicationProtectionContainers/vmwareContainer1/replicationMigrationItems/virtualmachine1",
"name": "virtualmachine1",
"type": "Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationMigrationItems",
"properties": {
"machineName": "vm-0520-2",
"migrationState": "Replicating",
"migrationStateDescription": "Ready to migrate",
"testMigrateState": "None",
"testMigrateStateDescription": "None",
"policyFriendlyName": "vmwarepolicy1",
"policyId": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationPolicies/vmwarepolicy1",
"allowedOperations": [
"Migrate",
"DisableMigration",
"TestMigrate",
"TestMigrateCleanup"
],
"currentJob": {
"jobName": "None",
"jobId": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationJobs/None",
"startTime": "2017-04-26T06:37:50.8082715Z"
},
"providerSpecificDetails": {
"instanceType": "VMwareCbt"
},
"recoveryServicesProviderId": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationFabrics/vmwarefabric1/replicationRecoveryServicesProviders/45b55118-f42d-505f-8bde-f3745258171f"
}
}
},
"202": {
}
}
}
Loading