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

DiskRP Swagger changes for Remote Restore Point scenarios #16636

Merged
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
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.",
sukodava marked this conversation as resolved.
Show resolved Hide resolved
"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"
}
}
}
}
}