tencent cloud

APIs

ApplySnapshotGroup

Download
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-05-12 19:37:40

1. API Description

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.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

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.

3. Output Parameters

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.

4. Example

Example1 Rollback Snapshot Group

This example shows you how to roll back the specified snapshot group: csnap-gv9naz6b.

Input Example

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>

Output Example

{
    "Response": {
        "RequestId": "2fe82060-d27c-4b0a-8c73-50db42586d9c"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

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.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan