Skip to content

Commit

Permalink
DiskRP Swagger changes for Remote Restore Point scenarios (#16636)
Browse files Browse the repository at this point in the history
* RRP changes

* Fix prettier
  • Loading branch information
sukodava authored and haagha committed Dec 16, 2021
1 parent 4630097 commit 2f954e5
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1676,6 +1676,9 @@
"x-ms-examples": {
"Get an incremental disk restorePoint resource.": {
"$ref": "./examples/GetDiskRestorePointResources.json"
},
"Get an incremental disk restorePoint when source resource is from a different region": {
"$ref": "./examples/GetDiskRestorePointWhenSourceResourceIsFromDifferentRegion.json"
}
}
}
Expand Down Expand Up @@ -3485,7 +3488,7 @@
},
"sourceResourceId": {
"type": "string",
"description": "arm id of source disk",
"description": "arm id of source disk or source disk restore point.",
"readOnly": true
},
"osType": {
Expand Down Expand Up @@ -3552,7 +3555,17 @@
},
"completionPercent": {
"type": "number",
"description": "Percentage complete for the background copy when a resource is created via the CopyStart operation."
"description": "Percentage complete for the background copy of disk restore point when source resource is from a different region."
},
"replicationState": {
"type": "string",
"description": "Replication state of disk restore point when source resource is from a different region.",
"readOnly": true
},
"sourceResourceLocation": {
"type": "string",
"description": "Location of source disk or source disk restore point when source resource is from a different region.",
"readOnly": true
}
},
"description": "Properties of an incremental disk restore point"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"restorePointCollectionName": "rpc",
"vmRestorePointName": "vmrp",
"diskRestorePointName": "TestDisk45ceb03433006d1baee0_b70cd924-3362-4a80-93c2-9415eaa12745",
"api-version": "2021-08-01"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/rpc/restorePoints/vmrp/diskRestorePoints/TestDisk45ceb03433006d1baee0_b70cd924-3362-4a80-93c2-9415eaa12745",
"name": "TestDisk45ceb03433006d1baee0_b70cd924-3362-4a80-93c2-9415eaa12745",
"properties": {
"timeCreated": "2020-09-16T04:41:35.079872+00:00",
"sourceResourceId": "/subscriptions/d2260d06-e00d-422f-8b63-93df551a59ae/resourceGroups/rg0680fb0c-89f1-41b4-96c0-35733a181558/providers/Microsoft.Compute/disks/TestDisk45ceb03433006d1baee0",
"osType": "Windows",
"hyperVGeneration": "V1",
"familyId": "996bf3ce-b6ff-4e86-9db6-dc27ea06cea5",
"sourceUniqueId": "48e058b1-7eea-4968-b532-10a8a1130c13",
"networkAccessPolicy": "AllowAll",
"publicNetworkAccess": "Disabled",
"replicationState": "Succeeded",
"completionPercent": 100,
"sourceResourceLocation": "eastus2"
}
}
}
}
}

0 comments on commit 2f954e5

Please sign in to comment.