All Products
Search
Document Center

Cloud Backup:ListSnapshots

Last Updated:Oct 29, 2026

Queries backup points.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

hbr:ListSnapshots

list

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

NextToken

string

No

The pagination token. You do not need to specify this parameter for the first query. When you query the next page, set this parameter to the NextToken value returned from the previous page. If NextToken is empty, no more pages exist. This parameter cannot be used together with Skip.

eyJJbmRleCI6NjUwMX0=

MaxResults

integer

No

The maximum number of entries to return for a paged query. Default value: 10. The value must be greater than 1.

10

Skip

integer

No

The number of entries to skip. The value must be a non-negative integer and a multiple of MaxResults. This parameter cannot be used together with NextToken.

0

SourceType

string

Yes

The data source type. The value must be the same as the data source type of the protected resource specified by ProtectedResourceId. The supported data source types are described in the valid values.

Valid values:

  • NAS :

    Alibaba Cloud NAS backup.

  • COMMON_FILE_SYSTEM :

    Agent-based CPFS backup.

  • ECS_FILE :

    ECS file backup.

  • COMMON_NAS :

    On-premises NAS backup.

  • File :

    On-premises file backup.

  • OSS :

    OSS backup.

ECS_FILE

ProtectedResourceId

string

Yes

The ID of the protected resource. The protected resource must exist, and its data source type must be the same as the value of the SourceType parameter.

pr-123***7890

VaultId

string

No

The vault ID. This is an optional filter. If you specify this parameter, only the backup points in the specified vault are returned.

v-00030j3c******sn

CompleteTimeStart

integer

No

The start completion time. The value is a UNIX timestamp in seconds. Only backup points whose completion time is greater than or equal to this value are returned.

1776059082

CompleteTimeEnd

integer

No

The end completion time. The value is a UNIX timestamp in seconds. Only backup points whose completion time is less than this value are returned.

1776059382

PlanId

string

No

The plan ID. This is an optional filter. If you specify this parameter, only the backup points under the specified backup plan are returned.

po-0000****123

Response elements

Element

Type

Description

Example

object

Response.

Code

string

The return code. A value of 200 indicates success.

200

MaxResults

integer

The maximum number of returned results.

10

Message

string

The returned message. If the request is successful, "successful" is returned. If an error occurs, the corresponding error message is returned.

successful

NextToken

string

The token for the next page. If NextToken is empty, no more pages exist.

aWQj********MCMy

RequestId

string

The request ID.

17189276-****-****-****-0FF51B5A41A0

Snapshots

array<object>

The list of backup points.

object

The backup point information.

ActualBytes

integer

The actual amount of data written, in bytes.

600

ActualItems

integer

The actual number of items.

6

ArchiveTime

integer

The time when the data is archived.

1640334062

BackupType

string

The backup type. A value of COMPLETE indicates a full backup.

COMPLETE

BytesDone

integer

The amount of data backed up, in bytes.

800

BytesTotal

integer

The total amount of data to back up, in bytes.

1000

ClientId

string

The ID of the backup client when the value of SourceType is ECS_FILE or File. In other cases, this parameter indicates the ID of the backup data source.

c-*********************

CompleteTime

integer

The backup completion time. The value is a UNIX timestamp in seconds.

1642496679

CreateTime

integer

The time when the backup point was created, in seconds.

1607436917

CreatedTime

integer

The time when the backup was created.

1642496679

ErrorFile

string

The file that records backup failure information, including information about partially completed backups.

temp/report/123456789/job-xxxxxxxxx_failed.zip

Exclude

string

The source paths excluded from the backup job.

[\"/test/example_cn-hangzhou_7.txt\", \"/test/example_cn-hangzhou_1.txt\", \"/test/example_cn-hangzhou_3.txt\", \"/test/example_cn-hangzhou_9.txt\", \"/test/example_cn-hangzhou_6.txt\"]

ExpireTime

integer

The expiration time of the backup.

1771901707

Include

string

The source paths included in the backup job.

[\"/test/example_cn-huhehaote_3.txt\", \"/test/example_cn-huhehaote_9.txt\", \"/test/example_cn-huhehaote_5.txt\", \"/test/example_cn-huhehaote_1.txt\", \"/test/example_cn-huhehaote_7.txt\"]

InstanceId

string

The instance ID of the backup data source.

i-*********************

InstanceName

string

The name of the Tablestore instance.

instancename

ItemsDone

integer

The number of items backed up.

8

ItemsTotal

integer

The total number of items to back up.

10

JobId

string

The ID of the backup job.

job-00030j3chkt******2

Path

string

The backup path.

/home

Paths

array

The list of backup paths.

string

The backup path.

/home

PlanId

string

The ID of the backup plan.

po-123***7890

ProtectedDataSize

integer

The size of the protected source data, in bytes. When SourceType is set to ECS_FILE, this parameter indicates the capacity of the protected cloud disk.

42949672960

RangeEnd

integer

The end time of the Tablestore backup job. The value is a UNIX timestamp in milliseconds.

1642521709966

RangeStart

integer

The start time of the Tablestore backup job. The value is a UNIX timestamp in milliseconds.

1642492553038

Retention

integer

The retention period of the backup, in days.

7

SnapshotHash

string

The hash value of the backup point.

f2ac5fd243**********************bc4451777be019

SnapshotId

string

The ID of the backup point.

s-00047mxg17p26*****b

SourceType

string

The data source type. Valid values:

  • ECS_FILE: ECS file backup.

  • File: On-premises file backup.

  • OSS: OSS backup.

  • NAS: Alibaba Cloud NAS backup.

  • COMMON_NAS: On-premises NAS backup.

  • CONTAINER: Container backup.

  • OTS_TABLE: Tablestore backup.

  • COMMON_FILE_SYSTEM: Agent-based CPFS backup.

  • CPFS: Agentless CPFS backup.

ECS_FILE

Status

string

The status of the backup point.

Valid values:

  • COMPLETE :

    Backup completed.

  • ARCHIVING :

    Being archived in the background.

  • PARTIAL_COMPLETE :

    Backup partially completed.

COMPLETE

StorageClass

string

The storage class.

Valid values:

  • ARCHIVE :

    Archive storage.

  • STANDARD :

    Standard storage.

STANDARD

TableName

string

The name of the data table in the Tablestore instance.

table2

VaultId

string

The ID of the vault that stores the backup data.

v-00030j*******sn

Success

boolean

Indicates whether the request is successful. Valid values:

  • true: The request is successful.

  • false: The request fails.

true

TotalCount

integer

The total number of records.

3

Examples

Success response

JSON format

{
  "Code": "200",
  "MaxResults": 10,
  "Message": "successful",
  "NextToken": "aWQj********MCMy",
  "RequestId": "17189276-****-****-****-0FF51B5A41A0",
  "Snapshots": [
    {
      "ActualBytes": 600,
      "ActualItems": 6,
      "ArchiveTime": 1640334062,
      "BackupType": "COMPLETE",
      "BytesDone": 800,
      "BytesTotal": 1000,
      "ClientId": "c-*********************",
      "CompleteTime": 1642496679,
      "CreateTime": 1607436917,
      "CreatedTime": 1642496679,
      "ErrorFile": "temp/report/123456789/job-xxxxxxxxx_failed.zip",
      "Exclude": "[\\\"/test/example_cn-hangzhou_7.txt\\\", \\\"/test/example_cn-hangzhou_1.txt\\\", \\\"/test/example_cn-hangzhou_3.txt\\\", \\\"/test/example_cn-hangzhou_9.txt\\\", \\\"/test/example_cn-hangzhou_6.txt\\\"]",
      "ExpireTime": 1771901707,
      "Include": "[\\\"/test/example_cn-huhehaote_3.txt\\\", \\\"/test/example_cn-huhehaote_9.txt\\\", \\\"/test/example_cn-huhehaote_5.txt\\\", \\\"/test/example_cn-huhehaote_1.txt\\\", \\\"/test/example_cn-huhehaote_7.txt\\\"]",
      "InstanceId": "i-*********************",
      "InstanceName": "instancename",
      "ItemsDone": 8,
      "ItemsTotal": 10,
      "JobId": "job-00030j3chkt******2",
      "Path": "/home",
      "Paths": [
        "/home"
      ],
      "PlanId": "po-123***7890",
      "ProtectedDataSize": 42949672960,
      "RangeEnd": 1642521709966,
      "RangeStart": 1642492553038,
      "Retention": 7,
      "SnapshotHash": "f2ac5fd243**********************bc4451777be019",
      "SnapshotId": "s-00047mxg17p26*****b",
      "SourceType": "ECS_FILE",
      "Status": "COMPLETE",
      "StorageClass": "STANDARD",
      "TableName": "table2",
      "VaultId": "v-00030j*******sn"
    }
  ],
  "Success": true,
  "TotalCount": 3
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.