Domain name for API request: cbs.intl.tencentcloudapi.com.
This API is used to rollback a snapshot group and restore the instance to the state at the moment the snapshot group was created.
This API is used to roll back all or part of the disks in the snapshot group.
This API is used to roll back disks. If the disks to be rolled back contain mounted disks, they must be mounted to the same instance, and the instance must be shut down before rollback.
Rollback is an asynchronous operation. A successful API return does not indicate a successful rollback. You can call DescribeSnapshotGroups to check the snapshot group status.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: ApplySnapshotGroup. |
| Version | Yes | String | Common Params. The value used for this API: 2017-03-12. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| SnapshotGroupId | Yes | String | Specifies the snapshot group ID rolled back. |
| ApplyDisks.N | Yes | Array of ApplyDisk | Specifies the snapshot ID associated with the rollback snapshot group and the original cloud disk ID list of the corresponding snapshot. |
| AutoStopInstance | No | Boolean | Specifies whether to perform automatic shutdown before rollback. |
| AutoStartInstance | No | Boolean | Specifies whether to automatically start after completion. |
| Parameter Name | Type | Description |
|---|---|---|
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
This example shows you how to roll back the specified snapshot group: csnap-gv9naz6b.
https://cbs.intl.tencentcloudapi.com/?Action=ApplySnapshotGroup
&SnapshotGroupId=csnap-gv9naz6b
&ApplyDisks.0.SnapshotId=snap-cznei4gl
&ApplyDisks.0.DiskId=disk-1ly0wu8c
&ApplyDisks.1.SnapshotId=snap-0axttvv9
&ApplyDisks.1.DiskId=disk-lt8ajfvk
&<Common request parameters>
{
"Response": {
"RequestId": "2fe82060-d27c-4b0a-8c73-50db42586d9c"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| InvalidParameter | Incorrect parameter. |
| MissingParameter | Missing parameter. |
| UnsupportedOperation.SnapshotGroupDiskAttachMultiInstance | The original cloud disk of the snapshot in the snapshot group association is not mounted on the same instance. |
| UnsupportedOperation.StateError | The resource does not support this operation in this status. |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan