Queries information about one or more snapshot-consistent groups, such as the status, instance ID, and snapshot creation progress.
Operation description
InstanceId, SnapshotGroupId.N, and Status.N are not required request parameters, but you can use them to build filter logic. The parameters have a logical AND relationship.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:DescribeSnapshotGroups |
get |
SnapshotGroup
SnapshotGroup
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. You can call DescribeRegions to query the most recent region list. |
cn-hangzhou |
| InstanceId |
string |
No |
The instance ID. |
i-j6ca469urv8ei629**** |
| Name |
string |
No |
The name of the snapshot-consistent group. |
testName |
| NextToken |
string |
No |
The pagination token. Set this parameter to the NextToken value returned in the previous API call. |
caeba0bbb2be03f84eb48b699f0a4883 |
| MaxResults |
integer |
No |
The maximum number of entries per page in a paging query. Maximum value: 100. Default value: 10. |
10 |
| SnapshotGroupId |
array |
No |
The ID of the snapshot-consistent group. Valid values of N: 1 to 10. |
ssg-j6ciyh3k52qp7ovm**** |
|
string |
No |
The ID of the snapshot-consistent group. Valid values of N: 1 to 10. |
ssg-j6ciyh3k52qp7ovm**** |
|
| Status |
array |
No |
The status of the snapshot-consistent group. Valid values of N: 1 to 3. Valid values:
|
accomplished |
|
string |
No |
The status of the snapshot-consistent group. Valid values of N: 1 to 3. Valid values:
|
accomplished |
|
| AdditionalAttributes |
array |
No |
This parameter is not publicly available. |
hide |
|
string |
No |
Note
This parameter is not publicly available. |
null |
|
| Tag |
array<object> |
No |
The tag key-value pairs of the snapshot-consistent group. |
|
|
object |
No |
The tag key-value pairs of the snapshot-consistent group. |
||
| Key |
string |
No |
The tag key of the snapshot-consistent group. Valid values of N: 1 to 20. |
TestKey |
| Value |
string |
No |
The tag value of the snapshot-consistent group. Valid values of N: 1 to 20. |
TestValue |
| ResourceGroupId |
string |
No |
The ID of the resource group to which the snapshot-consistent group belongs. |
rg-bp67acfmxazb4p**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
The pagination token for the next query. Note
If this parameter is empty, no more results are available. |
caeba0bbb2be03f84eb48b699f0a4883 |
| RequestId |
string |
The request ID. |
3F9A4CC4-362F-469A-B9EF-B3204EF8AA3A |
| SnapshotGroups |
object |
||
| SnapshotGroup |
array<object> |
The information about the snapshot-consistent groups. |
|
|
array<object> |
The details of the snapshot-consistent group. |
||
| SnapshotGroupId |
string |
The ID of the snapshot-consistent group. |
ssg-j6ciyh3k52qp7ovm**** |
| InstanceId |
string |
The instance ID of the snapshot-consistent group. This parameter is returned only when all disk snapshots in the snapshot-consistent group belong to the same instance. If the disk snapshots in the snapshot-consistent group belong to different ECS instances, you can use the |
i-j6ca469urv8ei629**** |
| Status |
string |
The status of the snapshot-consistent group. Valid values:
|
accomplished |
| ProgressStatus |
string |
Note
This parameter is not publicly available. |
null |
| Name |
string |
The name of the snapshot-consistent group. |
testName |
| Description |
string |
The description. |
This is description. |
| CreationTime |
string |
The creation time. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2021-03-23T10:58:48Z |
| ResourceGroupId |
string |
The ID of the resource group to which the snapshot-consistent group belongs. |
rg-bp67acfmxazb4p**** |
| Tags |
object |
||
| Tag |
array<object> |
The tag key-value pairs of the snapshot-consistent group. |
|
|
object |
|||
| Key |
string |
The tag key of the snapshot-consistent group. |
TestKey |
| Value |
string |
The tag value of the snapshot-consistent group. |
TestValue |
| Snapshots |
object |
||
| Snapshot |
array<object> |
The information about the snapshots in the snapshot-consistent group. |
|
|
array<object> |
|||
| SnapshotId |
string |
The snapshot ID. |
s-j6cbzmrlbf09w72q**** |
| SourceDiskId |
string |
The ID of the source disk. This field is retained even if the source disk of the snapshot has been released. |
d-j6c3ogynmvpi6wy7**** |
| SourceDiskType |
string |
The type of the source disk. Valid values:
|
system |
| Available |
boolean |
Indicates whether the snapshot can be used to create disks, roll back disks, or share snapshots. Valid values:
|
false |
| Progress |
string |
The snapshot creation progress, in percentage. |
100% |
| InstantAccess |
boolean |
Indicates whether the snapshot instant access feature is enabled. Valid values:
Note
This parameter is deprecated. Standard snapshots of enterprise SSD disks have been upgraded to instant access enabled by default. No additional configuration or fees are required. |
true |
| InstantAccessRetentionDays |
integer |
The retention period of the snapshot instant access feature. After the retention period expires, the snapshot undergoes automatic release. Note
This parameter is deprecated. Standard snapshots of enterprise SSD disks have been upgraded to instant access enabled by default. No additional configuration or fees are required. |
3 |
| Tags |
object |
||
| Tag |
array<object> |
The tag key-value pairs of each snapshot in the snapshot-consistent group. By default, the source information of the snapshot is included. |
|
|
object |
|||
| Key |
string |
The tag key of each snapshot in the snapshot-consistent group. The default values of Key and Value contain the source information of the snapshot. |
acs:ecs:createFrom |
| Value |
string |
The tag value of each snapshot in the snapshot-consistent group. The default values of Key and Value contain the source information of the snapshot. |
i-bp11qm0o3dk4iuc**** |
Examples
Success response
JSON format
{
"NextToken": "caeba0bbb2be03f84eb48b699f0a4883",
"RequestId": "3F9A4CC4-362F-469A-B9EF-B3204EF8AA3A",
"SnapshotGroups": {
"SnapshotGroup": [
{
"SnapshotGroupId": "ssg-j6ciyh3k52qp7ovm****",
"InstanceId": "i-j6ca469urv8ei629****",
"Status": "accomplished",
"ProgressStatus": "null",
"Name": "testName",
"Description": "This is description.",
"CreationTime": "2021-03-23T10:58:48Z",
"ResourceGroupId": "rg-bp67acfmxazb4p****",
"Tags": {
"Tag": [
{
"Key": "TestKey",
"Value": "TestValue"
}
]
},
"Snapshots": {
"Snapshot": [
{
"SnapshotId": "s-j6cbzmrlbf09w72q****",
"SourceDiskId": "d-j6c3ogynmvpi6wy7****",
"SourceDiskType": "system",
"Available": false,
"Progress": "100%",
"InstantAccess": true,
"InstantAccessRetentionDays": 3,
"Tags": {
"Tag": [
{
"Key": "acs:ecs:createFrom",
"Value": "i-bp11qm0o3dk4iuc****"
}
]
}
}
]
}
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Duplicate.TagKey | The Tag.N.Key contain duplicate key. | The specified tag key already exists. Tag keys must be unique. |
| 403 | InvalidSnapshotGroupId.MustBeOne | The size of SnapshotGroupIds must be one when AdditionalAttributes has SNAPSHOT_GROUP_PROGRESS_STATUS. | |
| 403 | InvalidStatus.ValueNotSupported | The specified parameter status is not valid. The expected status is progressing; accomplished or failed. | |
| 404 | InvalidRegionId.NotFound | The RegionId provided does not exist in our records. | Region information error |
| 404 | InvalidInstanceId.NotFound | The InstanceId provided does not exist in our records. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.