From 30fd2d1896ed1366f1127dcce29b0a08ef950c60 Mon Sep 17 00:00:00 2001 From: ayfathim Date: Fri, 8 Feb 2019 14:23:54 +0530 Subject: [PATCH 1/5] Updating for addDisks,removDisks, ResolveHealthErrors APIs --- .../ReplicationProtectedItem_AddDisks.json | 163 ++++++++++++++ .../ReplicationProtectedItem_RemoveDisks.json | 161 +++++++++++++ ...tionProtectedItem_ResolveHealthErrors.json | 158 +++++++++++++ .../stable/2018-07-10/service.json | 213 ++++++++++++++++++ 4 files changed, 695 insertions(+) create mode 100644 specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_AddDisks.json create mode 100644 specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_RemoveDisks.json create mode 100644 specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_ResolveHealthErrors.json diff --git a/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_AddDisks.json b/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_AddDisks.json new file mode 100644 index 000000000000..56ee92c0e220 --- /dev/null +++ b/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_AddDisks.json @@ -0,0 +1,163 @@ +{ + "parameters":{ + "api-version":"2018-07-10", + "replicatedProtectedItemName":"f8491e4f-817a-40dd-a90c-af773978c75b", + "protectionContainerName":"cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + "fabricName":"cloud1", + "resourceName":"vault1", + "resourceGroupName":"resourceGroupPS1", + "subscriptionId":"c183865e-6077-46f2-a3b1-deb0f4f4650a", + "input":{ + "properties"= { + "providerSpecificDetails"= { + "instanceType" = "A2A", + "vmDisksUris" = [ + { + "diskUri" = "https://vmstorage.blob.core.windows.net/vhds/datadisk1.vhd" + "recoveryAzureStorageAccountId" = "/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/recoveryResource/providers/Microsoft.Storage/storageAccounts/recoverystorage" + "primaryStagingAzureStorageAccountId" = "/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/primaryResource/providers/Microsoft.Storage/storageAccounts/vmcachestorage" + } + ] + } + } + } + }, + "responses":{ + "body":{ + "id":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud1/replicationProtectionContainers/cloud_6d224fc6-f326-5d35-96de-fbf51efb3179/replicationProtectedItems/f8491e4f-817a-40dd-a90c-af773978c75b", + "name":"f8491e4f-817a-40dd-a90c-af773978c75b", + "type":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems", + "properties":{ + "friendlyName":"f8491e4f-817a-40dd-a90c-af773978c75b", + "protectedItemType":"", + "protectableItemId":null, + "recoveryServicesProviderId":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud1/replicationRecoveryServicesProviders/6d2940f9-4c34-5989-9f56-1243a6e76ecf", + "primaryFabricFriendlyName":"cloud1", + "primaryFabricProvider":"AzureFabric", + "recoveryFabricFriendlyName":"cloud2", + "recoveryFabricId":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud2", + "primaryProtectionContainerFriendlyName":"cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + "recoveryProtectionContainerFriendlyName":"cloud_81224fc6-f326-5d35-96de-fbf51efb3188", + "protectionState":"Protected", + "protectionStateDescription":"Protected", + "activeLocation":"Primary", + "testFailoverState":"None", + "testFailoverStateDescription":"None", + "allowedOperations":[ + "RepairReplication", + "UnplannedFailover", + "DisableProtection", + "TestFailover" + ], + "replicationHealth":"Normal", + "failoverHealth":"Normal", + "healthErrors":[ + + ], + "policyId":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationPolicies/a2aPolicyTst80", + "policyFriendlyName":"a2aPolicyTst80", + "currentScenario":{ + "scenarioName":"None", + "jobId":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationJobs/None", + "startTime":"1752-12-31T19:31:01Z" + }, + "failoverRecoveryPointId":null, + "providerSpecificDetails":{ + "instanceType":"A2A", + "fabricObjectId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/primaryResource/providers/microsoft.compute/virtualmachines/f8491e4f-817a-40dd-a90c-af773978c75b", + "multiVmGroupId":"129ecd4f-e704-40c1-85d7-23b68a68d77e", + "multiVmGroupName":"", + "multiVmGroupCreateOption":"AutoCreated", + "managementId":"b2ec71ae-9de8-4610-892a-707d2a3c54ad", + "protectedDisks":[ + { + "diskUri":"https://vmstorage.blob.core.windows.net/vhds/f8491e4f-817a-40dd-a90c-af773978c75b.vhd", + "recoveryAzureStorageAccountId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/recoveryResource/providers/Microsoft.Storage/storageAccounts/recoverystorage", + "primaryDiskAzureStorageAccountId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/primaryResource/providers/Microsoft.Storage/storageAccounts/vmstorage", + "recoveryDiskUri":null, + "diskName":"f8491e4f-817a-40dd-a90c-af773978c75b", + "diskCapacityInBytes":136367308800, + "primaryStagingAzureStorageAccountId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/primaryResource/providers/Microsoft.Storage/storageAccounts/vmcachestorage", + "diskType":"OperatingSystem", + "resyncRequired":false, + "monitoringPercentageCompletion":null, + "monitoringJobType":null, + "dataPendingInStagingStorageAccountInMB":100.0, + "dataPendingAtSourceAgentInMB":10.0, + "diskState":"Protected", + "allowedDiskLevelOperation":[ + + ], + "isDiskEncrypted":false, + "secretIdentifier":null, + "dekKeyVaultArmId":null, + "isDiskKeyEncrypted":false, + "keyIdentifier":null, + "kekKeyVaultArmId":null + } + ], + "unprotectedDisks":[ + { + "diskLunId":58997 + } + ], + "protectedManagedDisks":null, + "recoveryBootDiagStorageAccountId":null, + "primaryFabricLocation":"eastus2", + "recoveryFabricLocation":"westus2", + "osType":"Windows", + "recoveryAzureVMSize":"Standard_DS1_v2", + "recoveryAzureVMName":"f8491e4f-817a-40dd-a90c-af773978c75b", + "recoveryAzureResourceGroupId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/recoveryResource", + "recoveryCloudService":null, + "recoveryAvailabilitySet":null, + "selectedRecoveryAzureNetworkId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/recoveryResource/providers/microsoft.network/virtualnetworks/recoverynet", + "vmNics":[ + { + "nicId":"cf74a3e9-19b2-5e99-8e67-d4466dc5bdc5", + "replicaNicId":null, + "sourceNicArmId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/primaryResource/providers/Microsoft.Network/networkInterfaces/vm-net", + "vMSubnetName":"default", + "vMNetworkName":"primarynet", + "recoveryVMNetworkId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/recoveryResource/providers/microsoft.network/virtualnetworks/recoverynet", + "recoveryVMSubnetName":"default", + "ipAddressType":"Dynamic", + "primaryNicStaticIPAddress":"172.16.35.5", + "replicaNicStaticIPAddress":"", + "selectionType":"SelectedByDefault", + "recoveryNicIpAddressType":"Dynamic", + "enableAcceleratedNetworkingOnRecovery":false + } + ], + "vmSyncedConfigDetails":{ + "tags":{ + + }, + "inputEndpoints":[ + + ] + }, + "monitoringPercentageCompletion":null, + "monitoringJobType":null, + "lastHeartbeat":"2019-02-07T06:48:57.7860052Z", + "agentVersion":"9.0.0.0", + "agentExpiryDate":"0001-01-01T00:00:00", + "isReplicationAgentUpdateRequired":true, + "recoveryFabricObjectId":null, + "vmProtectionState":"Protected", + "vmProtectionStateDescription":"Protected", + "lifecycleId":"5d26d371-6f4b-484a-bf57-e751310c8e6d", + "testFailoverRecoveryFabricObjectId":null, + "rpoInSeconds":300, + "lastRpoCalculatedTime":"2019-02-07T06:48:58.5707345Z", + "recoveryAvailabilityZone":null + }, + "recoveryContainerId":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud2/replicationProtectionContainers/cloud_81224fc6-f326-5d35-96de-fbf51efb3188", + "eventCorrelationId":"2ebf1c6d-e454-4dea-8b84-5f64b84909dd" + } + } + } + "202":{ + } + } +} \ No newline at end of file diff --git a/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_RemoveDisks.json b/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_RemoveDisks.json new file mode 100644 index 000000000000..78edefd4b060 --- /dev/null +++ b/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_RemoveDisks.json @@ -0,0 +1,161 @@ +{ + "parameters":{ + "api-version":"2018-07-10", + "replicatedProtectedItemName":"f8491e4f-817a-40dd-a90c-af773978c75b", + "protectionContainerName":"cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + "fabricName":"cloud1", + "resourceName":"vault1", + "resourceGroupName":"resourceGroupPS1", + "subscriptionId":"c183865e-6077-46f2-a3b1-deb0f4f4650a", + "input":{ + "properties"= { + "providerSpecificDetails"= { + "instanceType" = "A2A", + "vmDisksUris" = [ + { + "https://vmstorage.blob.core.windows.net/vhds/datadisk1.vhd" + } + ] + } + } + } + }, + "responses":{ + "body":{ + "id":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud1/replicationProtectionContainers/cloud_6d224fc6-f326-5d35-96de-fbf51efb3179/replicationProtectedItems/f8491e4f-817a-40dd-a90c-af773978c75b", + "name":"f8491e4f-817a-40dd-a90c-af773978c75b", + "type":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems", + "properties":{ + "friendlyName":"f8491e4f-817a-40dd-a90c-af773978c75b", + "protectedItemType":"", + "protectableItemId":null, + "recoveryServicesProviderId":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud1/replicationRecoveryServicesProviders/6d2940f9-4c34-5989-9f56-1243a6e76ecf", + "primaryFabricFriendlyName":"cloud1", + "primaryFabricProvider":"AzureFabric", + "recoveryFabricFriendlyName":"cloud2", + "recoveryFabricId":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud2", + "primaryProtectionContainerFriendlyName":"cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + "recoveryProtectionContainerFriendlyName":"cloud_81224fc6-f326-5d35-96de-fbf51efb3188", + "protectionState":"Protected", + "protectionStateDescription":"Protected", + "activeLocation":"Primary", + "testFailoverState":"None", + "testFailoverStateDescription":"None", + "allowedOperations":[ + "RepairReplication", + "UnplannedFailover", + "DisableProtection", + "TestFailover" + ], + "replicationHealth":"Normal", + "failoverHealth":"Normal", + "healthErrors":[ + + ], + "policyId":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationPolicies/A2APolicy", + "policyFriendlyName":"A2APolicy", + "currentScenario":{ + "scenarioName":"None", + "jobId":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationJobs/None", + "startTime":"1752-12-31T19:31:01Z" + }, + "failoverRecoveryPointId":null, + "providerSpecificDetails":{ + "instanceType":"A2A", + "fabricObjectId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/primaryResource/providers/microsoft.compute/virtualmachines/f8491e4f-817a-40dd-a90c-af773978c75b", + "multiVmGroupId":"129ecd4f-e704-40c1-85d7-23b68a68d77e", + "multiVmGroupName":"", + "multiVmGroupCreateOption":"AutoCreated", + "managementId":"b2ec71ae-9de8-4610-892a-707d2a3c54ad", + "protectedDisks":[ + { + "diskUri":"https://vmstorage.blob.core.windows.net/vhds/f8491e4f-817a-40dd-a90c-af773978c75b.vhd", + "recoveryAzureStorageAccountId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/recoveryResource/providers/Microsoft.Storage/storageAccounts/recoverystorage", + "primaryDiskAzureStorageAccountId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/primaryResource/providers/Microsoft.Storage/storageAccounts/vmstorage", + "recoveryDiskUri":null, + "diskName":"f8491e4f-817a-40dd-a90c-af773978c75b", + "diskCapacityInBytes":136367308800, + "primaryStagingAzureStorageAccountId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/primaryResource/providers/Microsoft.Storage/storageAccounts/vmcachestorage", + "diskType":"OperatingSystem", + "resyncRequired":false, + "monitoringPercentageCompletion":null, + "monitoringJobType":null, + "dataPendingInStagingStorageAccountInMB":100.0, + "dataPendingAtSourceAgentInMB":10.0, + "diskState":"Protected", + "allowedDiskLevelOperation":[ + + ], + "isDiskEncrypted":false, + "secretIdentifier":null, + "dekKeyVaultArmId":null, + "isDiskKeyEncrypted":false, + "keyIdentifier":null, + "kekKeyVaultArmId":null + } + ], + "unprotectedDisks":[ + { + "diskLunId":58997 + } + ], + "protectedManagedDisks":null, + "recoveryBootDiagStorageAccountId":null, + "primaryFabricLocation":"eastus2", + "recoveryFabricLocation":"westus2", + "osType":"Windows", + "recoveryAzureVMSize":"Standard_DS1_v2", + "recoveryAzureVMName":"f8491e4f-817a-40dd-a90c-af773978c75b", + "recoveryAzureResourceGroupId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/recoveryResource", + "recoveryCloudService":null, + "recoveryAvailabilitySet":null, + "selectedRecoveryAzureNetworkId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/recoveryResource/providers/microsoft.network/virtualnetworks/recoverynet", + "vmNics":[ + { + "nicId":"cf74a3e9-19b2-5e99-8e67-d4466dc5bdc5", + "replicaNicId":null, + "sourceNicArmId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/primaryResource/providers/Microsoft.Network/networkInterfaces/vm-net", + "vMSubnetName":"default", + "vMNetworkName":"primarynet", + "recoveryVMNetworkId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/recoveryResource/providers/microsoft.network/virtualnetworks/recoverynet", + "recoveryVMSubnetName":"default", + "ipAddressType":"Dynamic", + "primaryNicStaticIPAddress":"172.16.35.5", + "replicaNicStaticIPAddress":"", + "selectionType":"SelectedByDefault", + "recoveryNicIpAddressType":"Dynamic", + "enableAcceleratedNetworkingOnRecovery":false + } + ], + "vmSyncedConfigDetails":{ + "tags":{ + + }, + "inputEndpoints":[ + + ] + }, + "monitoringPercentageCompletion":null, + "monitoringJobType":null, + "lastHeartbeat":"2019-02-07T06:48:57.7860052Z", + "agentVersion":"9.0.0.0", + "agentExpiryDate":"0001-01-01T00:00:00", + "isReplicationAgentUpdateRequired":true, + "recoveryFabricObjectId":null, + "vmProtectionState":"Protected", + "vmProtectionStateDescription":"Protected", + "lifecycleId":"5d26d371-6f4b-484a-bf57-e751310c8e6d", + "testFailoverRecoveryFabricObjectId":null, + "rpoInSeconds":300, + "lastRpoCalculatedTime":"2019-02-07T06:48:58.5707345Z", + "recoveryAvailabilityZone":null + }, + "recoveryContainerId":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud2/replicationProtectionContainers/cloud_81224fc6-f326-5d35-96de-fbf51efb3188", + "eventCorrelationId":"2ebf1c6d-e454-4dea-8b84-5f64b84909dd" + } + } + } + "202":{ + } + } +} \ No newline at end of file diff --git a/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_ResolveHealthErrors.json b/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_ResolveHealthErrors.json new file mode 100644 index 000000000000..4668e2be7dd6 --- /dev/null +++ b/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_ResolveHealthErrors.json @@ -0,0 +1,158 @@ +{ + "parameters":{ + "api-version":"2018-07-10", + "replicatedProtectedItemName":"f8491e4f-817a-40dd-a90c-af773978c75b", + "protectionContainerName":"cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + "fabricName":"cloud1", + "resourceName":"vault1", + "resourceGroupName":"resourceGroupPS1", + "subscriptionId":"c183865e-6077-46f2-a3b1-deb0f4f4650a", + "input":{ + "properties":{ + "healthErrors":[ + { + "healthErrorId":"3:8020" + } + ] + } + } + }, + "responses":{ + "body":{ + "id":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud1/replicationProtectionContainers/cloud_6d224fc6-f326-5d35-96de-fbf51efb3179/replicationProtectedItems/f8491e4f-817a-40dd-a90c-af773978c75b", + "name":"f8491e4f-817a-40dd-a90c-af773978c75b", + "type":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems", + "properties":{ + "friendlyName":"f8491e4f-817a-40dd-a90c-af773978c75b", + "protectedItemType":"", + "protectableItemId":null, + "recoveryServicesProviderId":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud1/replicationRecoveryServicesProviders/6d2940f9-4c34-5989-9f56-1243a6e76ecf", + "primaryFabricFriendlyName":"cloud1", + "primaryFabricProvider":"AzureFabric", + "recoveryFabricFriendlyName":"cloud2", + "recoveryFabricId":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud2", + "primaryProtectionContainerFriendlyName":"cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", + "recoveryProtectionContainerFriendlyName":"cloud_81224fc6-f326-5d35-96de-fbf51efb3188", + "protectionState":"Protected", + "protectionStateDescription":"Protected", + "activeLocation":"Primary", + "testFailoverState":"None", + "testFailoverStateDescription":"None", + "allowedOperations":[ + "RepairReplication", + "UnplannedFailover", + "DisableProtection", + "TestFailover" + ], + "replicationHealth":"Normal", + "failoverHealth":"Normal", + "healthErrors":[ + + ], + "policyId":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationPolicies/a2aPolicyTst80", + "policyFriendlyName":"a2aPolicyTst80", + "currentScenario":{ + "scenarioName":"None", + "jobId":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationJobs/None", + "startTime":"1752-12-31T19:31:01Z" + }, + "failoverRecoveryPointId":null, + "providerSpecificDetails":{ + "instanceType":"A2A", + "fabricObjectId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/primaryResource/providers/microsoft.compute/virtualmachines/f8491e4f-817a-40dd-a90c-af773978c75b", + "multiVmGroupId":"129ecd4f-e704-40c1-85d7-23b68a68d77e", + "multiVmGroupName":"", + "multiVmGroupCreateOption":"AutoCreated", + "managementId":"b2ec71ae-9de8-4610-892a-707d2a3c54ad", + "protectedDisks":[ + { + "diskUri":"https://vmstorage.blob.core.windows.net/vhds/f8491e4f-817a-40dd-a90c-af773978c75b.vhd", + "recoveryAzureStorageAccountId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/recoveryResource/providers/Microsoft.Storage/storageAccounts/recoverystorage", + "primaryDiskAzureStorageAccountId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/primaryResource/providers/Microsoft.Storage/storageAccounts/vmstorage", + "recoveryDiskUri":null, + "diskName":"f8491e4f-817a-40dd-a90c-af773978c75b", + "diskCapacityInBytes":136367308800, + "primaryStagingAzureStorageAccountId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/primaryResource/providers/Microsoft.Storage/storageAccounts/vmcachestorage", + "diskType":"OperatingSystem", + "resyncRequired":false, + "monitoringPercentageCompletion":null, + "monitoringJobType":null, + "dataPendingInStagingStorageAccountInMB":100.0, + "dataPendingAtSourceAgentInMB":10.0, + "diskState":"Protected", + "allowedDiskLevelOperation":[ + + ], + "isDiskEncrypted":false, + "secretIdentifier":null, + "dekKeyVaultArmId":null, + "isDiskKeyEncrypted":false, + "keyIdentifier":null, + "kekKeyVaultArmId":null + } + ], + "unprotectedDisks":[ + { + "diskLunId":58997 + } + ], + "protectedManagedDisks":null, + "recoveryBootDiagStorageAccountId":null, + "primaryFabricLocation":"eastus2", + "recoveryFabricLocation":"westus2", + "osType":"Windows", + "recoveryAzureVMSize":"Standard_DS1_v2", + "recoveryAzureVMName":"f8491e4f-817a-40dd-a90c-af773978c75b", + "recoveryAzureResourceGroupId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/recoveryResource", + "recoveryCloudService":null, + "recoveryAvailabilitySet":null, + "selectedRecoveryAzureNetworkId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/recoveryResource/providers/microsoft.network/virtualnetworks/recoverynet", + "vmNics":[ + { + "nicId":"cf74a3e9-19b2-5e99-8e67-d4466dc5bdc5", + "replicaNicId":null, + "sourceNicArmId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/primaryResource/providers/Microsoft.Network/networkInterfaces/vm-net", + "vMSubnetName":"default", + "vMNetworkName":"primarynet", + "recoveryVMNetworkId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/recoveryResource/providers/microsoft.network/virtualnetworks/recoverynet", + "recoveryVMSubnetName":"default", + "ipAddressType":"Dynamic", + "primaryNicStaticIPAddress":"172.16.35.5", + "replicaNicStaticIPAddress":"", + "selectionType":"SelectedByDefault", + "recoveryNicIpAddressType":"Dynamic", + "enableAcceleratedNetworkingOnRecovery":false + } + ], + "vmSyncedConfigDetails":{ + "tags":{ + + }, + "inputEndpoints":[ + + ] + }, + "monitoringPercentageCompletion":null, + "monitoringJobType":null, + "lastHeartbeat":"2019-02-07T06:48:57.7860052Z", + "agentVersion":"9.0.0.0", + "agentExpiryDate":"0001-01-01T00:00:00", + "isReplicationAgentUpdateRequired":true, + "recoveryFabricObjectId":null, + "vmProtectionState":"Protected", + "vmProtectionStateDescription":"Protected", + "lifecycleId":"5d26d371-6f4b-484a-bf57-e751310c8e6d", + "testFailoverRecoveryFabricObjectId":null, + "rpoInSeconds":300, + "lastRpoCalculatedTime":"2019-02-07T06:48:58.5707345Z", + "recoveryAvailabilityZone":null + }, + "recoveryContainerId":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud2/replicationProtectionContainers/cloud_81224fc6-f326-5d35-96de-fbf51efb3188", + "eventCorrelationId":"2ebf1c6d-e454-4dea-8b84-5f64b84909dd" + } + } + } + "202":{ + } + } +} \ No newline at end of file diff --git a/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/service.json b/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/service.json index d36879a80961..63852473abf9 100644 --- a/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/service.json +++ b/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/service.json @@ -2755,6 +2755,77 @@ } } }, + "/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/addDisks": { + "post": { + "tags": [ + "ReplicationProtectedItems" + ], + "summary": "Add disk(s) for protection.", + "description": "Operation to add disks(s) to the replication protected item.", + "operationId": "ReplicationProtectedItems_AddDisks", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/ResourceName" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "name": "fabricName", + "in": "path", + "description": "Unique fabric name.", + "required": true, + "type": "string" + }, + { + "name": "protectionContainerName", + "in": "path", + "description": "Protection container name.", + "required": true, + "type": "string" + }, + { + "name": "replicatedProtectedItemName", + "in": "path", + "description": "Replication protected item name.", + "required": true, + "type": "string" + }, + { + "name": "addDisksInput", + "in": "body", + "description": "Add disks input.", + "required": true, + "schema": { + "$ref": "#/definitions/AddDisksInput" + } + } + ], + "responses": { + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Add disk(s) for protection.": { + "$ref": "./examples/ReplicationProtectedItems_AddDisks.json" + } + } + } + }, "/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/applyRecoveryPoint": { "post": { "tags": [ @@ -3180,6 +3251,77 @@ } } }, + "/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/removeDisks": { + "post": { + "tags": [ + "ReplicationProtectedItems" + ], + "summary": "Removes disk(s).", + "description": "Operation to remove disk(s) from the replication protected item.", + "operationId": "ReplicationProtectedItems_RemoveDisks", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/ResourceName" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "name": "fabricName", + "in": "path", + "description": "Unique fabric name.", + "required": true, + "type": "string" + }, + { + "name": "protectionContainerName", + "in": "path", + "description": "Protection container name.", + "required": true, + "type": "string" + }, + { + "name": "replicatedProtectedItemName", + "in": "path", + "description": "Replication protected item name.", + "required": true, + "type": "string" + }, + { + "name": "removeDisksInput", + "in": "body", + "description": "Remove disks input.", + "required": true, + "schema": { + "$ref": "#/definitions/RemoveDisksInput" + } + } + ], + "responses": { + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Removes disk(s).": { + "$ref": "./examples/ReplicationProtectedItems_RemoveDisks.json" + } + } + } + }, "/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/repairReplication": { "post": { "tags": [ @@ -3322,6 +3464,77 @@ } } }, + "/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/ResolveHealthErrors": { + "post": { + "tags": [ + "ReplicationProtectedItems" + ], + "summary": "Resolve health errors.", + "description": "Operation to resolve health issues of the replication protected item.", + "operationId": "ReplicationProtectedItems_ResolveHealthErrors", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "$ref": "#/parameters/ResourceName" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "name": "fabricName", + "in": "path", + "description": "Unique fabric name.", + "required": true, + "type": "string" + }, + { + "name": "protectionContainerName", + "in": "path", + "description": "Protection container name.", + "required": true, + "type": "string" + }, + { + "name": "replicatedProtectedItemName", + "in": "path", + "description": "Replication protected item name.", + "required": true, + "type": "string" + }, + { + "name": "resolveHealthInput", + "in": "body", + "description": "Health issue input object.", + "required": true, + "schema": { + "$ref": "#/definitions/ResolveHealthInput" + } + } + ], + "responses": { + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Resolve health errors.": { + "$ref": "./examples/ReplicationProtectedItems_ResolveHealthErrors.json" + } + } + } + }, "/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}/targetComputeSizes": { "get": { "tags": [ From 9a41a2b2dcaf3d664b30cbef86b49c7547c8a882 Mon Sep 17 00:00:00 2001 From: ayfathim Date: Fri, 8 Feb 2019 15:38:27 +0530 Subject: [PATCH 2/5] updating example file for addDisks,removeDisks,resolveHealthErros API --- .../ReplicationProtectedItem_AddDisks.json | 136 +----------------- .../ReplicationProtectedItem_RemoveDisks.json | 136 +----------------- ...tionProtectedItem_ResolveHealthErrors.json | 136 +----------------- 3 files changed, 3 insertions(+), 405 deletions(-) diff --git a/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_AddDisks.json b/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_AddDisks.json index 56ee92c0e220..a5fbe03388b0 100644 --- a/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_AddDisks.json +++ b/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_AddDisks.json @@ -22,141 +22,7 @@ } } }, - "responses":{ - "body":{ - "id":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud1/replicationProtectionContainers/cloud_6d224fc6-f326-5d35-96de-fbf51efb3179/replicationProtectedItems/f8491e4f-817a-40dd-a90c-af773978c75b", - "name":"f8491e4f-817a-40dd-a90c-af773978c75b", - "type":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems", - "properties":{ - "friendlyName":"f8491e4f-817a-40dd-a90c-af773978c75b", - "protectedItemType":"", - "protectableItemId":null, - "recoveryServicesProviderId":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud1/replicationRecoveryServicesProviders/6d2940f9-4c34-5989-9f56-1243a6e76ecf", - "primaryFabricFriendlyName":"cloud1", - "primaryFabricProvider":"AzureFabric", - "recoveryFabricFriendlyName":"cloud2", - "recoveryFabricId":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud2", - "primaryProtectionContainerFriendlyName":"cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", - "recoveryProtectionContainerFriendlyName":"cloud_81224fc6-f326-5d35-96de-fbf51efb3188", - "protectionState":"Protected", - "protectionStateDescription":"Protected", - "activeLocation":"Primary", - "testFailoverState":"None", - "testFailoverStateDescription":"None", - "allowedOperations":[ - "RepairReplication", - "UnplannedFailover", - "DisableProtection", - "TestFailover" - ], - "replicationHealth":"Normal", - "failoverHealth":"Normal", - "healthErrors":[ - - ], - "policyId":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationPolicies/a2aPolicyTst80", - "policyFriendlyName":"a2aPolicyTst80", - "currentScenario":{ - "scenarioName":"None", - "jobId":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationJobs/None", - "startTime":"1752-12-31T19:31:01Z" - }, - "failoverRecoveryPointId":null, - "providerSpecificDetails":{ - "instanceType":"A2A", - "fabricObjectId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/primaryResource/providers/microsoft.compute/virtualmachines/f8491e4f-817a-40dd-a90c-af773978c75b", - "multiVmGroupId":"129ecd4f-e704-40c1-85d7-23b68a68d77e", - "multiVmGroupName":"", - "multiVmGroupCreateOption":"AutoCreated", - "managementId":"b2ec71ae-9de8-4610-892a-707d2a3c54ad", - "protectedDisks":[ - { - "diskUri":"https://vmstorage.blob.core.windows.net/vhds/f8491e4f-817a-40dd-a90c-af773978c75b.vhd", - "recoveryAzureStorageAccountId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/recoveryResource/providers/Microsoft.Storage/storageAccounts/recoverystorage", - "primaryDiskAzureStorageAccountId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/primaryResource/providers/Microsoft.Storage/storageAccounts/vmstorage", - "recoveryDiskUri":null, - "diskName":"f8491e4f-817a-40dd-a90c-af773978c75b", - "diskCapacityInBytes":136367308800, - "primaryStagingAzureStorageAccountId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/primaryResource/providers/Microsoft.Storage/storageAccounts/vmcachestorage", - "diskType":"OperatingSystem", - "resyncRequired":false, - "monitoringPercentageCompletion":null, - "monitoringJobType":null, - "dataPendingInStagingStorageAccountInMB":100.0, - "dataPendingAtSourceAgentInMB":10.0, - "diskState":"Protected", - "allowedDiskLevelOperation":[ - - ], - "isDiskEncrypted":false, - "secretIdentifier":null, - "dekKeyVaultArmId":null, - "isDiskKeyEncrypted":false, - "keyIdentifier":null, - "kekKeyVaultArmId":null - } - ], - "unprotectedDisks":[ - { - "diskLunId":58997 - } - ], - "protectedManagedDisks":null, - "recoveryBootDiagStorageAccountId":null, - "primaryFabricLocation":"eastus2", - "recoveryFabricLocation":"westus2", - "osType":"Windows", - "recoveryAzureVMSize":"Standard_DS1_v2", - "recoveryAzureVMName":"f8491e4f-817a-40dd-a90c-af773978c75b", - "recoveryAzureResourceGroupId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/recoveryResource", - "recoveryCloudService":null, - "recoveryAvailabilitySet":null, - "selectedRecoveryAzureNetworkId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/recoveryResource/providers/microsoft.network/virtualnetworks/recoverynet", - "vmNics":[ - { - "nicId":"cf74a3e9-19b2-5e99-8e67-d4466dc5bdc5", - "replicaNicId":null, - "sourceNicArmId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/primaryResource/providers/Microsoft.Network/networkInterfaces/vm-net", - "vMSubnetName":"default", - "vMNetworkName":"primarynet", - "recoveryVMNetworkId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/recoveryResource/providers/microsoft.network/virtualnetworks/recoverynet", - "recoveryVMSubnetName":"default", - "ipAddressType":"Dynamic", - "primaryNicStaticIPAddress":"172.16.35.5", - "replicaNicStaticIPAddress":"", - "selectionType":"SelectedByDefault", - "recoveryNicIpAddressType":"Dynamic", - "enableAcceleratedNetworkingOnRecovery":false - } - ], - "vmSyncedConfigDetails":{ - "tags":{ - - }, - "inputEndpoints":[ - - ] - }, - "monitoringPercentageCompletion":null, - "monitoringJobType":null, - "lastHeartbeat":"2019-02-07T06:48:57.7860052Z", - "agentVersion":"9.0.0.0", - "agentExpiryDate":"0001-01-01T00:00:00", - "isReplicationAgentUpdateRequired":true, - "recoveryFabricObjectId":null, - "vmProtectionState":"Protected", - "vmProtectionStateDescription":"Protected", - "lifecycleId":"5d26d371-6f4b-484a-bf57-e751310c8e6d", - "testFailoverRecoveryFabricObjectId":null, - "rpoInSeconds":300, - "lastRpoCalculatedTime":"2019-02-07T06:48:58.5707345Z", - "recoveryAvailabilityZone":null - }, - "recoveryContainerId":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud2/replicationProtectionContainers/cloud_81224fc6-f326-5d35-96de-fbf51efb3188", - "eventCorrelationId":"2ebf1c6d-e454-4dea-8b84-5f64b84909dd" - } - } - } + "responses":{ "202":{ } } diff --git a/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_RemoveDisks.json b/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_RemoveDisks.json index 78edefd4b060..a0b7a25a77e6 100644 --- a/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_RemoveDisks.json +++ b/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_RemoveDisks.json @@ -20,141 +20,7 @@ } } }, - "responses":{ - "body":{ - "id":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud1/replicationProtectionContainers/cloud_6d224fc6-f326-5d35-96de-fbf51efb3179/replicationProtectedItems/f8491e4f-817a-40dd-a90c-af773978c75b", - "name":"f8491e4f-817a-40dd-a90c-af773978c75b", - "type":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems", - "properties":{ - "friendlyName":"f8491e4f-817a-40dd-a90c-af773978c75b", - "protectedItemType":"", - "protectableItemId":null, - "recoveryServicesProviderId":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud1/replicationRecoveryServicesProviders/6d2940f9-4c34-5989-9f56-1243a6e76ecf", - "primaryFabricFriendlyName":"cloud1", - "primaryFabricProvider":"AzureFabric", - "recoveryFabricFriendlyName":"cloud2", - "recoveryFabricId":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud2", - "primaryProtectionContainerFriendlyName":"cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", - "recoveryProtectionContainerFriendlyName":"cloud_81224fc6-f326-5d35-96de-fbf51efb3188", - "protectionState":"Protected", - "protectionStateDescription":"Protected", - "activeLocation":"Primary", - "testFailoverState":"None", - "testFailoverStateDescription":"None", - "allowedOperations":[ - "RepairReplication", - "UnplannedFailover", - "DisableProtection", - "TestFailover" - ], - "replicationHealth":"Normal", - "failoverHealth":"Normal", - "healthErrors":[ - - ], - "policyId":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationPolicies/A2APolicy", - "policyFriendlyName":"A2APolicy", - "currentScenario":{ - "scenarioName":"None", - "jobId":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationJobs/None", - "startTime":"1752-12-31T19:31:01Z" - }, - "failoverRecoveryPointId":null, - "providerSpecificDetails":{ - "instanceType":"A2A", - "fabricObjectId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/primaryResource/providers/microsoft.compute/virtualmachines/f8491e4f-817a-40dd-a90c-af773978c75b", - "multiVmGroupId":"129ecd4f-e704-40c1-85d7-23b68a68d77e", - "multiVmGroupName":"", - "multiVmGroupCreateOption":"AutoCreated", - "managementId":"b2ec71ae-9de8-4610-892a-707d2a3c54ad", - "protectedDisks":[ - { - "diskUri":"https://vmstorage.blob.core.windows.net/vhds/f8491e4f-817a-40dd-a90c-af773978c75b.vhd", - "recoveryAzureStorageAccountId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/recoveryResource/providers/Microsoft.Storage/storageAccounts/recoverystorage", - "primaryDiskAzureStorageAccountId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/primaryResource/providers/Microsoft.Storage/storageAccounts/vmstorage", - "recoveryDiskUri":null, - "diskName":"f8491e4f-817a-40dd-a90c-af773978c75b", - "diskCapacityInBytes":136367308800, - "primaryStagingAzureStorageAccountId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/primaryResource/providers/Microsoft.Storage/storageAccounts/vmcachestorage", - "diskType":"OperatingSystem", - "resyncRequired":false, - "monitoringPercentageCompletion":null, - "monitoringJobType":null, - "dataPendingInStagingStorageAccountInMB":100.0, - "dataPendingAtSourceAgentInMB":10.0, - "diskState":"Protected", - "allowedDiskLevelOperation":[ - - ], - "isDiskEncrypted":false, - "secretIdentifier":null, - "dekKeyVaultArmId":null, - "isDiskKeyEncrypted":false, - "keyIdentifier":null, - "kekKeyVaultArmId":null - } - ], - "unprotectedDisks":[ - { - "diskLunId":58997 - } - ], - "protectedManagedDisks":null, - "recoveryBootDiagStorageAccountId":null, - "primaryFabricLocation":"eastus2", - "recoveryFabricLocation":"westus2", - "osType":"Windows", - "recoveryAzureVMSize":"Standard_DS1_v2", - "recoveryAzureVMName":"f8491e4f-817a-40dd-a90c-af773978c75b", - "recoveryAzureResourceGroupId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/recoveryResource", - "recoveryCloudService":null, - "recoveryAvailabilitySet":null, - "selectedRecoveryAzureNetworkId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/recoveryResource/providers/microsoft.network/virtualnetworks/recoverynet", - "vmNics":[ - { - "nicId":"cf74a3e9-19b2-5e99-8e67-d4466dc5bdc5", - "replicaNicId":null, - "sourceNicArmId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/primaryResource/providers/Microsoft.Network/networkInterfaces/vm-net", - "vMSubnetName":"default", - "vMNetworkName":"primarynet", - "recoveryVMNetworkId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/recoveryResource/providers/microsoft.network/virtualnetworks/recoverynet", - "recoveryVMSubnetName":"default", - "ipAddressType":"Dynamic", - "primaryNicStaticIPAddress":"172.16.35.5", - "replicaNicStaticIPAddress":"", - "selectionType":"SelectedByDefault", - "recoveryNicIpAddressType":"Dynamic", - "enableAcceleratedNetworkingOnRecovery":false - } - ], - "vmSyncedConfigDetails":{ - "tags":{ - - }, - "inputEndpoints":[ - - ] - }, - "monitoringPercentageCompletion":null, - "monitoringJobType":null, - "lastHeartbeat":"2019-02-07T06:48:57.7860052Z", - "agentVersion":"9.0.0.0", - "agentExpiryDate":"0001-01-01T00:00:00", - "isReplicationAgentUpdateRequired":true, - "recoveryFabricObjectId":null, - "vmProtectionState":"Protected", - "vmProtectionStateDescription":"Protected", - "lifecycleId":"5d26d371-6f4b-484a-bf57-e751310c8e6d", - "testFailoverRecoveryFabricObjectId":null, - "rpoInSeconds":300, - "lastRpoCalculatedTime":"2019-02-07T06:48:58.5707345Z", - "recoveryAvailabilityZone":null - }, - "recoveryContainerId":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud2/replicationProtectionContainers/cloud_81224fc6-f326-5d35-96de-fbf51efb3188", - "eventCorrelationId":"2ebf1c6d-e454-4dea-8b84-5f64b84909dd" - } - } - } + "responses":{ "202":{ } } diff --git a/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_ResolveHealthErrors.json b/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_ResolveHealthErrors.json index 4668e2be7dd6..424e0ed90857 100644 --- a/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_ResolveHealthErrors.json +++ b/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_ResolveHealthErrors.json @@ -17,141 +17,7 @@ } } }, - "responses":{ - "body":{ - "id":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud1/replicationProtectionContainers/cloud_6d224fc6-f326-5d35-96de-fbf51efb3179/replicationProtectedItems/f8491e4f-817a-40dd-a90c-af773978c75b", - "name":"f8491e4f-817a-40dd-a90c-af773978c75b", - "type":"Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers/replicationProtectedItems", - "properties":{ - "friendlyName":"f8491e4f-817a-40dd-a90c-af773978c75b", - "protectedItemType":"", - "protectableItemId":null, - "recoveryServicesProviderId":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud1/replicationRecoveryServicesProviders/6d2940f9-4c34-5989-9f56-1243a6e76ecf", - "primaryFabricFriendlyName":"cloud1", - "primaryFabricProvider":"AzureFabric", - "recoveryFabricFriendlyName":"cloud2", - "recoveryFabricId":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud2", - "primaryProtectionContainerFriendlyName":"cloud_6d224fc6-f326-5d35-96de-fbf51efb3179", - "recoveryProtectionContainerFriendlyName":"cloud_81224fc6-f326-5d35-96de-fbf51efb3188", - "protectionState":"Protected", - "protectionStateDescription":"Protected", - "activeLocation":"Primary", - "testFailoverState":"None", - "testFailoverStateDescription":"None", - "allowedOperations":[ - "RepairReplication", - "UnplannedFailover", - "DisableProtection", - "TestFailover" - ], - "replicationHealth":"Normal", - "failoverHealth":"Normal", - "healthErrors":[ - - ], - "policyId":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationPolicies/a2aPolicyTst80", - "policyFriendlyName":"a2aPolicyTst80", - "currentScenario":{ - "scenarioName":"None", - "jobId":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationJobs/None", - "startTime":"1752-12-31T19:31:01Z" - }, - "failoverRecoveryPointId":null, - "providerSpecificDetails":{ - "instanceType":"A2A", - "fabricObjectId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/primaryResource/providers/microsoft.compute/virtualmachines/f8491e4f-817a-40dd-a90c-af773978c75b", - "multiVmGroupId":"129ecd4f-e704-40c1-85d7-23b68a68d77e", - "multiVmGroupName":"", - "multiVmGroupCreateOption":"AutoCreated", - "managementId":"b2ec71ae-9de8-4610-892a-707d2a3c54ad", - "protectedDisks":[ - { - "diskUri":"https://vmstorage.blob.core.windows.net/vhds/f8491e4f-817a-40dd-a90c-af773978c75b.vhd", - "recoveryAzureStorageAccountId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/recoveryResource/providers/Microsoft.Storage/storageAccounts/recoverystorage", - "primaryDiskAzureStorageAccountId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/primaryResource/providers/Microsoft.Storage/storageAccounts/vmstorage", - "recoveryDiskUri":null, - "diskName":"f8491e4f-817a-40dd-a90c-af773978c75b", - "diskCapacityInBytes":136367308800, - "primaryStagingAzureStorageAccountId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/primaryResource/providers/Microsoft.Storage/storageAccounts/vmcachestorage", - "diskType":"OperatingSystem", - "resyncRequired":false, - "monitoringPercentageCompletion":null, - "monitoringJobType":null, - "dataPendingInStagingStorageAccountInMB":100.0, - "dataPendingAtSourceAgentInMB":10.0, - "diskState":"Protected", - "allowedDiskLevelOperation":[ - - ], - "isDiskEncrypted":false, - "secretIdentifier":null, - "dekKeyVaultArmId":null, - "isDiskKeyEncrypted":false, - "keyIdentifier":null, - "kekKeyVaultArmId":null - } - ], - "unprotectedDisks":[ - { - "diskLunId":58997 - } - ], - "protectedManagedDisks":null, - "recoveryBootDiagStorageAccountId":null, - "primaryFabricLocation":"eastus2", - "recoveryFabricLocation":"westus2", - "osType":"Windows", - "recoveryAzureVMSize":"Standard_DS1_v2", - "recoveryAzureVMName":"f8491e4f-817a-40dd-a90c-af773978c75b", - "recoveryAzureResourceGroupId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/recoveryResource", - "recoveryCloudService":null, - "recoveryAvailabilitySet":null, - "selectedRecoveryAzureNetworkId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/recoveryResource/providers/microsoft.network/virtualnetworks/recoverynet", - "vmNics":[ - { - "nicId":"cf74a3e9-19b2-5e99-8e67-d4466dc5bdc5", - "replicaNicId":null, - "sourceNicArmId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/primaryResource/providers/Microsoft.Network/networkInterfaces/vm-net", - "vMSubnetName":"default", - "vMNetworkName":"primarynet", - "recoveryVMNetworkId":"/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/recoveryResource/providers/microsoft.network/virtualnetworks/recoverynet", - "recoveryVMSubnetName":"default", - "ipAddressType":"Dynamic", - "primaryNicStaticIPAddress":"172.16.35.5", - "replicaNicStaticIPAddress":"", - "selectionType":"SelectedByDefault", - "recoveryNicIpAddressType":"Dynamic", - "enableAcceleratedNetworkingOnRecovery":false - } - ], - "vmSyncedConfigDetails":{ - "tags":{ - - }, - "inputEndpoints":[ - - ] - }, - "monitoringPercentageCompletion":null, - "monitoringJobType":null, - "lastHeartbeat":"2019-02-07T06:48:57.7860052Z", - "agentVersion":"9.0.0.0", - "agentExpiryDate":"0001-01-01T00:00:00", - "isReplicationAgentUpdateRequired":true, - "recoveryFabricObjectId":null, - "vmProtectionState":"Protected", - "vmProtectionStateDescription":"Protected", - "lifecycleId":"5d26d371-6f4b-484a-bf57-e751310c8e6d", - "testFailoverRecoveryFabricObjectId":null, - "rpoInSeconds":300, - "lastRpoCalculatedTime":"2019-02-07T06:48:58.5707345Z", - "recoveryAvailabilityZone":null - }, - "recoveryContainerId":"/Subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/resourceGroupPS1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationFabrics/cloud2/replicationProtectionContainers/cloud_81224fc6-f326-5d35-96de-fbf51efb3188", - "eventCorrelationId":"2ebf1c6d-e454-4dea-8b84-5f64b84909dd" - } - } - } + "responses":{ "202":{ } } From d6ec599361c80dfdb5bc87eb4c44af680eb47c53 Mon Sep 17 00:00:00 2001 From: ayfathim Date: Fri, 8 Feb 2019 15:49:39 +0530 Subject: [PATCH 3/5] updating example file for addDisks,removeDisks,resolveHealthErros API --- .../examples/ReplicationProtectedItem_AddDisks.json | 6 +++--- .../examples/ReplicationProtectedItem_RemoveDisks.json | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_AddDisks.json b/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_AddDisks.json index a5fbe03388b0..fa5dd32f6465 100644 --- a/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_AddDisks.json +++ b/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_AddDisks.json @@ -11,10 +11,10 @@ "properties"= { "providerSpecificDetails"= { "instanceType" = "A2A", - "vmDisksUris" = [ + "vmDisks" = [ { - "diskUri" = "https://vmstorage.blob.core.windows.net/vhds/datadisk1.vhd" - "recoveryAzureStorageAccountId" = "/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/recoveryResource/providers/Microsoft.Storage/storageAccounts/recoverystorage" + "diskUri" = "https://vmstorage.blob.core.windows.net/vhds/datadisk1.vhd", + "recoveryAzureStorageAccountId" = "/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/recoveryResource/providers/Microsoft.Storage/storageAccounts/recoverystorage", "primaryStagingAzureStorageAccountId" = "/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/primaryResource/providers/Microsoft.Storage/storageAccounts/vmcachestorage" } ] diff --git a/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_RemoveDisks.json b/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_RemoveDisks.json index a0b7a25a77e6..28122223e880 100644 --- a/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_RemoveDisks.json +++ b/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_RemoveDisks.json @@ -12,9 +12,7 @@ "providerSpecificDetails"= { "instanceType" = "A2A", "vmDisksUris" = [ - { "https://vmstorage.blob.core.windows.net/vhds/datadisk1.vhd" - } ] } } From c62f384f629600fc5a96719007ba97e62f5e263c Mon Sep 17 00:00:00 2001 From: ayfathim Date: Fri, 8 Feb 2019 16:51:30 +0530 Subject: [PATCH 4/5] correcting example file for addDisks,removeDisks,resolveHealthErros API --- .../ReplicationProtectedItem_AddDisks.json | 14 +++++++------- .../ReplicationProtectedItem_RemoveDisks.json | 8 ++++---- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_AddDisks.json b/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_AddDisks.json index fa5dd32f6465..8e0bc8e8feb8 100644 --- a/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_AddDisks.json +++ b/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_AddDisks.json @@ -8,14 +8,14 @@ "resourceGroupName":"resourceGroupPS1", "subscriptionId":"c183865e-6077-46f2-a3b1-deb0f4f4650a", "input":{ - "properties"= { - "providerSpecificDetails"= { - "instanceType" = "A2A", - "vmDisks" = [ + "properties":{ + "providerSpecificDetails": { + "instanceType":"A2A", + "vmDisks": [ { - "diskUri" = "https://vmstorage.blob.core.windows.net/vhds/datadisk1.vhd", - "recoveryAzureStorageAccountId" = "/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/recoveryResource/providers/Microsoft.Storage/storageAccounts/recoverystorage", - "primaryStagingAzureStorageAccountId" = "/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/primaryResource/providers/Microsoft.Storage/storageAccounts/vmcachestorage" + "diskUri" : "https://vmstorage.blob.core.windows.net/vhds/datadisk1.vhd", + "recoveryAureStorageAccountId" : "/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/recoveryResource/providers/Microsoft.Storage/storageAccounts/recoverystorage", + "primaryStagingAzureStorageAccountId" : "/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourcegroups/primaryResource/providers/Microsoft.Storage/storageAccounts/vmcachestorage" } ] } diff --git a/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_RemoveDisks.json b/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_RemoveDisks.json index 28122223e880..02d4523c47d6 100644 --- a/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_RemoveDisks.json +++ b/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/examples/ReplicationProtectedItem_RemoveDisks.json @@ -8,10 +8,10 @@ "resourceGroupName":"resourceGroupPS1", "subscriptionId":"c183865e-6077-46f2-a3b1-deb0f4f4650a", "input":{ - "properties"= { - "providerSpecificDetails"= { - "instanceType" = "A2A", - "vmDisksUris" = [ + "properties":{ + "providerSpecificDetails":{ + "instanceType": "A2A", + "vmDisksUris": [ "https://vmstorage.blob.core.windows.net/vhds/datadisk1.vhd" ] } From 9f006a8bfd943d91ff2decb87f0965a2becc8f8d Mon Sep 17 00:00:00 2001 From: ayfathim Date: Fri, 8 Feb 2019 17:09:22 +0530 Subject: [PATCH 5/5] updating replicationProtectedItem with diskstate and alloweDiskLevelOperation --- .../stable/2018-07-10/service.json | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/service.json b/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/service.json index 63852473abf9..0ad574c3311c 100644 --- a/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/service.json +++ b/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2018-07-10/service.json @@ -7402,6 +7402,17 @@ "description": "The data pending at source virtual machine in MB.", "type": "number" }, + "diskState": { + "description": "The disk state.", + "type": "string" + }, + "allowedDiskLevelOperation": { + "description": "The disk level operations list.", + "type": "array", + "items": { + "type": "string" + } + }, "isDiskEncrypted": { "description": "A value indicating whether vm has encrypted os disk or not.", "type": "boolean" @@ -7496,6 +7507,17 @@ "description": "The data pending at source virtual machine in MB.", "type": "number" }, + "diskState": { + "description": "The disk state.", + "type": "string" + }, + "allowedDiskLevelOperation": { + "description": "The disk level operations list.", + "type": "array", + "items": { + "type": "string" + } + }, "isDiskEncrypted": { "description": "A value indicating whether vm has encrypted os disk or not.", "type": "boolean"