forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compute Swagger changes to include cross-region Restore Points scenar…
…ios (Azure#16570) * RRP changes in swagger * Fix conflicts * fix validations * Fix instance view
- Loading branch information
Showing
4 changed files
with
307 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
83 changes: 83 additions & 0 deletions
83
.../Microsoft.Compute/stable/2021-11-01/examples/compute/CopyRestorePointBetweenRegions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"restorePointCollectionName": "rpcName", | ||
"restorePointName": "rpName", | ||
"api-version": "2021-11-01", | ||
"parameters": { | ||
"properties": { | ||
"sourceRestorePoint": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/sourceRpcName/restorePoints/sourceRpName" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"name": "rpName", | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/rpcName/restorePoints/rpName", | ||
"properties": { | ||
"sourceRestorePoint": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/sourceRpcName/restorePoints/sourceRpName" | ||
}, | ||
"sourceMetadata": { | ||
"vmId": "76d6541e-80bd-4dc1-932b-3cae4cfb80e7", | ||
"hardwareProfile": { | ||
"vmSize": "Standard_B1s" | ||
}, | ||
"storageProfile": { | ||
"osDisk": { | ||
"osType": "Windows", | ||
"name": "osDisk123", | ||
"caching": "ReadWrite", | ||
"managedDisk": { | ||
"storageAccountType": "Standard_LRS", | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/osDisk123" | ||
}, | ||
"diskRestorePoint": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/rpcName/restorePoints/rpName/diskRestorePoints/osDisk123_22b4bdfe-6c54-4f72-84d8-85d8860f0c57" | ||
} | ||
}, | ||
"dataDisks": [ | ||
{ | ||
"lun": 1, | ||
"name": "dataDisk123", | ||
"caching": "None", | ||
"managedDisk": { | ||
"storageAccountType": "Standard_LRS", | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/userdata/providers/Microsoft.Compute/disks/dataDisk123" | ||
}, | ||
"diskRestorePoint": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/userdata/providers/Microsoft.Compute/restorePointCollections/mynewrpc/restorePoints/restorepointtwo/diskRestorePoints/dataDisk123_68785190-1acb-4d5e-a8ae-705b45f3dca5" | ||
} | ||
} | ||
] | ||
}, | ||
"osProfile": { | ||
"computerName": "computerName", | ||
"adminUsername": "admin", | ||
"windowsConfiguration": { | ||
"provisionVMAgent": true, | ||
"enableAutomaticUpdates": true | ||
}, | ||
"secrets": [], | ||
"allowExtensionOperations": true, | ||
"requireGuestProvisionSignal": true | ||
}, | ||
"diagnosticsProfile": { | ||
"bootDiagnostics": { | ||
"enabled": true | ||
} | ||
}, | ||
"location": "westus" | ||
}, | ||
"provisioningState": "Creating", | ||
"consistencyMode": "ApplicationConsistent", | ||
"timeCreated": "2021-10-25T23:54:29.2796325+00:00" | ||
} | ||
} | ||
} | ||
} | ||
} |
59 changes: 59 additions & 0 deletions
59
.../2021-11-01/examples/compute/CreateOrUpdateARestorePointCollectionForCrossRegionCopy.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"restorePointCollectionName": "myRpc", | ||
"api-version": "2021-11-01", | ||
"parameters": { | ||
"location": "norwayeast", | ||
"properties": { | ||
"source": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/sourceRpcName" | ||
} | ||
}, | ||
"tags": { | ||
"myTag1": "tagValue1" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "myRpc", | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/myRpc", | ||
"type": "Microsoft.Compute/restorePointCollections", | ||
"location": "norwayeast", | ||
"tags": { | ||
"myTag1": "tagValue1" | ||
}, | ||
"properties": { | ||
"source": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", | ||
"location": "eastus" | ||
}, | ||
"restorePointCollectionId": "638f052b-a7c2-450c-89e7-6a3b8f1d6a7c", | ||
"provisioningState": "Successful" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"name": "myRpc", | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/myRpc", | ||
"type": "Microsoft.Compute/restorePointCollections", | ||
"location": "norwayeast", | ||
"tags": { | ||
"myTag1": "tagValue1" | ||
}, | ||
"properties": { | ||
"source": { | ||
"id": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/sourceRpcName", | ||
"location": "eastus" | ||
}, | ||
"restorePointCollectionId": "638f052b-a7c2-450c-89e7-6a3b8f1d6a7c", | ||
"provisioningState": "Successful" | ||
} | ||
} | ||
} | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
...ger/Microsoft.Compute/stable/2021-11-01/examples/compute/GetRestorePointInstanceView.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"restorePointCollectionName": "rpcName", | ||
"restorePointName": "rpName", | ||
"api-version": "2021-11-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"diskRestorePoints": [ | ||
{ | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/rpcName/restorePoints/rpName/diskRestorePoints/testingexcludedisk_OsDisk_1_74cdaedcea50483d9833c96adefa100f_22b4bdfe-6c54-4f72-84d8-85d8860f0c57", | ||
"replicationStatus": { | ||
"status": { | ||
"code": "ReplicationState/succeeded", | ||
"level": "Info", | ||
"displayStatus": "Succeeded" | ||
}, | ||
"completionPercent": 100 | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/userdata/providers/Microsoft.Compute/restorePointCollections/mynewrpc/restorePoints/restorepointtwo/diskRestorePoints/testingexcludedisk_DataDisk_1_68785190-1acb-4d5e-a8ae-705b45f3dca5", | ||
"replicationStatus": { | ||
"status": { | ||
"code": "ReplicationState/succeeded", | ||
"level": "Info", | ||
"displayStatus": "Succeeded" | ||
}, | ||
"completionPercent": 100 | ||
} | ||
} | ||
], | ||
"statuses": [ | ||
{ | ||
"code": "ReplicationState/succeeded", | ||
"level": "Info", | ||
"displayStatus": "Succeeded" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |