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

adding resync api for migration items #11

Closed
wants to merge 14 commits into from
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@
},
"202": {}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,20 @@
"properties": {
"policyId": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationPolicies/vmwarepolicy1",
"providerSpecificDetails": {
"instanceType": "VMwareCbt"
"instanceType": "VMwareCbt",
"disksToInclude" : [
{
"diskId": "disk1",
"isOSDisk": true,
"logStorageAccountId": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.Storage/storageAccounts/logStorageAccount1",
"logStorageAccountSasSecretName": "logStorageSas"
}
],
"vmwareMachineId": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.OffAzure/VMwareSites/vmwaresite1/machines/virtualmachine1",
"targetNetworkId": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.Network/virtualNetworks/virtualNetwork1",
"targetResourceGroupId": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1",
"snapshotRunAsAccountId": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.OffAzure/VMwareSites/vmwaresite1/runasaccounts/snapshotRunAsAccount1",
"dataMoverRunAsAccountId": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.OffAzure/VMwareSites/vmwaresite1/runasaccounts/dataMoverRunAsAccount1"
}
}
}
Expand Down Expand Up @@ -43,8 +56,7 @@
},
"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"
}
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@
},
"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"
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
},
"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"
}
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@
},
"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"
}
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"migrateInput": {
"properties": {
"providerSpecificDetails": {
"instanceType": "VMwareCbt"
"instanceType": "VMwareCbt",
"performShutdown": true
}
}
}
Expand Down Expand Up @@ -42,8 +43,7 @@
},
"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"
}
}
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"parameters": {
"api-version": "2018-01-10",
"migrationItemName": "virtualmachine1",
"protectionContainerName": "vmwareContainer1",
"fabricName": "vmwarefabric1",
"resourceName": "migrationvault",
"resourceGroupName": "resourcegroup1",
"subscriptionId": "cb53d0c3-bd59-4721-89bc-06916a9147ef",
"input": {
"properties": {
"providerSpecificDetails": {
"instanceType": "VMwareCbt",
"skipCbtReset": true
}
}
}
},
"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"
}
}
}
},
"202": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
"testMigrateInput": {
"properties": {
"providerSpecificDetails": {
"instanceType": "VMwareCbt"
"instanceType": "VMwareCbt",
"recoveryPointId": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.RecoveryServices/vaults/migrationvault/replicationFabrics/vmwarefabric1/replicationProtectionContainers/vmwareContainer1/replicationMigrationItems/virtualmachine1/migrationRecoveryPoints/9e737191-317e-43d0-8c83-e32ac3b34686",
"networkId": "/Subscriptions/cb53d0c3-bd59-4721-89bc-06916a9147ef/resourceGroups/resourcegroup1/providers/Microsoft.Network/virtualNetworks/virtualNetwork1"
}
}
}
Expand Down Expand Up @@ -42,8 +44,7 @@
},
"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"
}
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@
},
"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"
}
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@
},
"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"
}
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"failoverDirection": "PrimaryToRecovery",
"providerSpecificDetails": [
{
"vaultLocation": "central-us",
"instanceType": "HyperVReplicaAzure"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"networkId": "/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryProd1/providers/Microsoft.Network/virtualNetworks/vnetavrai",
"providerSpecificDetails": [
{
"vaultLocation": "central-us",
"instanceType": "HyperVReplicaAzure"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"sourceSiteOperations": "Required",
"providerSpecificDetails": [
{
"vaultLocation": "central-us",
"instanceType": "HyperVReplicaAzure"
}
]
Expand Down
Loading