Domain name for API request: cbs.tencentcloudapi.com.
This API (ApplySnapshot) is used to roll back a snapshot to the original cloud disk.
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: ApplySnapshot. |
Version | Yes | String | Common Params. The value used for this API: 2017-03-12. |
Region | No | String | Common Params. This parameter is not required for this API. |
SnapshotId | Yes | String | Snapshot ID, which can be queried via DescribeSnapshots. |
DiskId | Yes | String | ID of the original cloud disk corresponding to the snapshot, which can be queried via the API DescribeDisks. |
AutoStopInstance | No | Boolean | Specifies whether to shut down a CVM automatically before a rollback |
AutoStartInstance | No | Boolean | Specifies whether to start up a CVM automatically after a rollback |
Parameter Name | Type | Description |
---|---|---|
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
This example shows you how to roll back a cloud disk to the specified snapshot point in time.
https://cbs.tencentcloudapi.com/?Action=ApplySnapshot
&DiskId=disk-lzrg2pwi
&SnapshotId=snap-gybrif0z
&<common request parameters>
{
"Response": {
"RequestId": "cc96242e-566c-ae6a-b74a-5a1f823683b2"
}
}
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 |
---|---|
InvalidDisk.Busy | The cloud disk is busy. Try again later. |
InvalidDisk.NotSupported | Indicates that the operation is not supported for the cloud disk. |
InvalidDisk.SnapshotCreating | A snapshot is being created for the cloud disk. Try again later. |
InvalidDiskId.NotFound | The ‘DiskId’ entered does not exist. |
InvalidInstance.NotSupported | Cloud Virtual Machine does not support mounting cloud disk. |
InvalidInstanceId.NotFound | The ‘InstanceId’ entered does not exist. |
InvalidParameter.DiskSizeNotMatch | The size of the cloud disk does not match the snapshot size. |
InvalidParameter.ShouldConvertSnapshotToImage | You need to convert the snapshot into an image first. |
InvalidParameterValue | Invalid parameter value. |
InvalidSnapshot.NotSupported | Indicates that the operation is not supported for the snapshot. |
InvalidSnapshotId.NotFound | The ‘SnapshotId’ entered does not exist. |
MissingParameter | Missing parameter. |
ResourceBusy | The resource is busy. Try again later. |
ResourceInUse.DiskRollbacking | The cloud disk is being rolled back. Please try again later. |
ResourceInsufficient | Insufficient resources. |
ResourceNotFound.NotFound | The resource is not found. |
ResourceUnavailable.NotSupported | The resource does not support this operation. |
ResourceUnavailable.SnapshotCreating | Unable to use: the snapshot is being created |
UnauthorizedOperation.MFAExpired | Multi-factor authentication (MFA) has expired. Please try again. |
本页内容是否解决了您的问题?