All Products
Search
Document Center

Cloud Backup:DescribeOtsTableSnapshots

Last Updated:Dec 24, 2024

Queries the details about Tablestore instances that are backed up.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
hbr:DescribeOtsTableSnapshotsget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
StartTimelongNo

The start time of the backup. The value must be a UNIX timestamp. Unit: milliseconds.

1611109271630
EndTimelongNo

The end time of the backup. The value must be a UNIX timestamp. Unit: milliseconds.

1652068250881
SnapshotIdsarrayNo

The snapshot IDs.

stringNo

The snapshot ID.

s-00047mxg17p26****3c
OtsInstancesarray<object>No

The Tablestore instances that are backed up.

objectNo

The list of Tablestore instances that are backed up.

InstanceNamestringNo

The name of the Tablestore instance.

instancename
TableNamesarrayNo

The names of the tables in the Tablestore instance.

stringNo

The name of the table in the Tablestore instance.

tablename
LimitintegerNo

The maximum number of rows that you want the current query to return.

100
NextTokenstringNo

The token that is required to obtain the next page of backup snapshots.

caeba0bbb2be03f84eb48b699f0a****
CrossAccountTypestringNo

Specifies whether data is backed up within the same Alibaba Cloud account or across Alibaba Cloud accounts. Valid values:

  • SELF_ACCOUNT: Data is backed up within the same Alibaba Cloud account.
  • CROSS_ACCOUNT: Data is backed up across Alibaba Cloud accounts.
CROSS_ACCOUNT
CrossAccountUserIdlongNo

The UID of the source account used for cross-account backup.

144015xxxxx98732
CrossAccountRoleNamestringNo

The name of the RAM role that is created within the source Alibaba Cloud account and assigned to the current Alibaba Cloud account to authorize the current Alibaba Cloud account to back up data across Alibaba Cloud accounts.

BackupRole

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

09376812-6290-5E36-B504-E8010D72D1F0
Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true
Codestring

The HTTP status code. The status code 200 indicates that the request was successful.

200
Messagestring

The returned message. If the request was successful, "successful" is returned. If the request failed, an error message is returned.

successful
Limitinteger

The number of backup snapshots that are displayed on the current page.

10
Snapshotsarray<object>

The backup snapshots.

Snapshotobject

The list of backup snapshots.

Statusstring

The status of the backup job. Valid values:

  • COMPLETE: The backup job is completed.
  • PARTIAL_COMPLETE: The backup job is partially completed.
  • FAILED: The backup job has failed.
COMPLETE
SnapshotHashstring

The hash value of the backup snapshot.

f2fe...
VaultIdstring

The ID of the backup vault that stores the backup snapshot.

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

The backup type. Valid value: COMPLETE, which indicates full backup.

COMPLETE
CreateTimelong

The time when the Tablestore instance was created. The value is a UNIX timestamp. Unit: seconds.

1607436917
ActualBytesstring

The actual data amount of backup snapshots after duplicates are removed. Unit: bytes.

0
SourceTypestring

The type of the data source. Valid values:

  • ECS_FILE: backup snapshots for Elastic Compute Service (ECS) files
  • OSS: backup snapshots for Object Storage Service (OSS) buckets
  • NAS: backup snapshots for Apsara File Storage NAS file systems
  • OTS_TABLE: backup snapshots for Tablestore instances
OTS_TABLE
BytesTotallong

The total amount of data. Unit: bytes.

0
CompleteTimelong

The time when the backup snapshot was completed. The value is a UNIX timestamp. Unit: seconds.

1642496679
Retentionlong

The retention period of the backup snapshot. Unit: days.

730
CreatedTimelong

The time when the backup snapshot was created. The value is a UNIX timestamp. Unit: seconds.

1642496679
ParentSnapshotHashstring

The hash value of the parent backup snapshot.

f2fe..
StartTimelong

The time when the backup snapshot started. The value is a UNIX timestamp. Unit: seconds.

1642496543
UpdatedTimelong

The time when the backup snapshot was updated. The value is a UNIX timestamp. Unit: seconds.

1642496679
SnapshotIdstring

The ID of the backup snapshot.

s-00047mxg17p26*****b
JobIdstring

The ID of the backup job.

job-00030j3chkt******2
InstanceNamestring

The name of the Tablestore instance.

instancename
TableNamestring

The name of the table in the Tablestore instance.

table2
RangeStartlong

The time when the backup job started. The value is a UNIX timestamp. Unit: milliseconds.

1642492553038
RangeEndlong

The time when the backup job ended. The value is a UNIX timestamp. Unit: milliseconds.

1642521709966
NextTokenstring

The token that is required to obtain the next page of backup snapshots.

caeba0bbb2be03f84eb48b699f0a

Examples

Sample success responses

JSONformat

{
  "RequestId": "09376812-6290-5E36-B504-E8010D72D1F0",
  "Success": true,
  "Code": "200",
  "Message": "successful",
  "Limit": 10,
  "Snapshots": [
    {
      "Status": "COMPLETE",
      "SnapshotHash": "f2fe...",
      "VaultId": "v-00030j*******sn",
      "BackupType": "COMPLETE",
      "CreateTime": 1607436917,
      "ActualBytes": "0",
      "SourceType": "OTS_TABLE",
      "BytesTotal": 0,
      "CompleteTime": 1642496679,
      "Retention": 730,
      "CreatedTime": 1642496679,
      "ParentSnapshotHash": "f2fe..",
      "StartTime": 1642496543,
      "UpdatedTime": 1642496679,
      "SnapshotId": "s-00047mxg17p26*****b",
      "JobId": "job-00030j3chkt******2",
      "InstanceName": "instancename",
      "TableName": "table2",
      "RangeStart": 1642492553038,
      "RangeEnd": 1642521709966
    }
  ],
  "NextToken": "caeba0bbb2be03f84eb48b699f0a"
}

Error codes

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

Change history

Change timeSummary of changesOperation
No change history