All Products
Search
Document Center

Simple Application Server:ListSnapshots

Last Updated:Apr 17, 2024

Queries the information about snapshots that are created for a simple application server.

Operation description

You can specify multiple request parameters such as InstanceId, DiskId, and SnapshotIds to query snapshots. Specified parameters have logical AND relations. Only the specified parameters are included in the filter conditions.

QPS limit

You can call this API operation up to 10 times per minute per account. Requests that exceed this limit are dropped and you may experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see QPS limits.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the simple application server that corresponds to the snapshots.

cn-hangzhou
InstanceIdstringNo

The ID of the simple application server.

2ad1ae67295445f598017499dc****
DiskIdstringNo

The disk ID.

d-bp14wq0149cpp2xy****
SnapshotIdsstringNo

The snapshot IDs. The value can be a JSON array that consists of up to 100 snapshot IDs. Separate multiple snapshot IDs with commas (,).

["s-bp16oazlsold4dks****", "s-bp16oazlsold4abc****"]
PageSizeintegerNo

The number of entries per page. Maximum value: 100.

Default value: 10.

10
PageNumberintegerNo

The page number.

Default value: 1.

1
SourceDiskTypestringNo

The type of the source disk. Valid values:

  • system: system disk.
  • data: data disk.
System
Tagobject []No

The tags of the snapshot.

KeystringNo

The key of tag N to be added to the snapshot. Valid values of N: 1 to 20.

TestKey
ValuestringNo

The value of tag N to be added to the snapshot. Valid values of N: 1 to 20.

TestValue

Response parameters

ParameterTypeDescriptionExample
object
TotalCountinteger

The total number of entries returned.

1
RequestIdstring

The request ID.

20758A-585D-4A41-A9B2-28DA8F4F534F
PageSizeinteger

The number of entries per page.

10
PageNumberinteger

The page number.

1
Snapshotsobject []

The array of snapshots.

Statusstring

The status of the snapshot. Valid values:

  • Progressing: The snapshot is being created.
  • Accomplished: The snapshot is created.
  • Failed: The snapshot failed to be created.
Accomplished
CreationTimestring

The time when the snapshot was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is in UTC.

2021-03-09T07:12:49Z
SourceDiskIdstring

The ID of the source disk. This parameter has a value even if the source disk is released.

d-bp14wq0149cpp2xy****
SnapshotNamestring

The name of the snapshot.

test-SnapshotName
Progressstring

The progress of snapshot creation.

100%
Remarkstring

The remarks of the snapshot.

test-Remark
SnapshotIdstring

The snapshot ID.

s-bp16oazlsold4dks****
SourceDiskTypestring

The type of the source disk. Valid values:

  • system: system disk
  • data: data disk
System
RegionIdstring

The region ID.

cn-hangzhou
InstanceIdstring

The ID of the simple application server.

Note: This parameter has a value for system disk snapshots. This parameter is left empty for data disk snapshots.

2ad1ae67295445f598017499dc****
Tagsobject []

The tags of the snapshot.

Keystring

The key of tag N to be added to the snapshot. Valid values of N: 1 to 20.

TestKey
Valuestring

The value of tag N to be added to the snapshot. Valid values of N: 1 to 20.

TestValue
RollbackTimestring

The time when the last disk rollback was performed.

2021-03-09T07:12:49Z

Examples

Sample success responses

JSONformat

{
  "TotalCount": 1,
  "RequestId": "20758A-585D-4A41-A9B2-28DA8F4F534F",
  "PageSize": 10,
  "PageNumber": 1,
  "Snapshots": [
    {
      "Status": "Accomplished",
      "CreationTime": "2021-03-09T07:12:49Z",
      "SourceDiskId": "d-bp14wq0149cpp2xy****",
      "SnapshotName": "test-SnapshotName",
      "Progress": "100%",
      "Remark": "test-Remark",
      "SnapshotId": "s-bp16oazlsold4dks****",
      "SourceDiskType": "System",
      "RegionId": "cn-hangzhou",
      "InstanceId": "2ad1ae67295445f598017499dc****",
      "Tags": [
        {
          "Key": "TestKey",
          "Value": "TestValue"
        }
      ],
      "RollbackTime": "2021-03-09T07:12:49Z"
    }
  ]
}

Error codes

HTTP status codeError codeError message
400RegionIdNotMatchHostThe parameter regionId does not match the endpoint host.
403InvalidParamThe specified parameter value is invalid.
404InvalidInstanceId.NotFoundThe specified InstanceId does not exist.
404InvalidDiskId.NotFoundThe specified DiskId does not exist.
500InternalErrorAn error occurred while processing your request.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-02-20The Error code has changed. The request parameters of the API has changed. The response structure of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 403
    delete Error Codes: 404
    delete Error Codes: 500
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: Tag
Output ParametersThe response structure of the API has changed.
2023-09-20The Error code has changed. The request parameters of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 403
    delete Error Codes: 404
    delete Error Codes: 500
Input ParametersThe request parameters of the API has changed.
    delete Input Parameters: AcsProduct
2023-09-18The Error code has changed. The request parameters of the API has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 403
    delete Error Codes: 404
    delete Error Codes: 500
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: AcsProduct
2023-05-25API Description Update. The Error code has changed. The request parameters of the API has changed. The response structure of the API has changedsee changesets
Change itemChange content
API DescriptionAPI Description Update.
Error CodesThe Error code has changed.
    delete Error Codes: 400
    delete Error Codes: 403
    delete Error Codes: 404
    delete Error Codes: 500
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: SourceDiskType
Output ParametersThe response structure of the API has changed.