All Products
Search
Document Center

Database Backup:DescribeSandboxBackupSets

Last Updated:May 23, 2024

Queries the snapshots of an instance.

Operation description

Before you call this operation, you must enable the sandbox feature for the database instance. For more information, see Use the emergency recovery feature of an ApsaraDB RDS for MySQL instance or Create a sandbox instance for emergency disaster recovery of a self-managed MySQL database. This operation is available only for the Database Backup (DBS) API of the 2021-01-01 version.

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
BackupPlanIdstringYes

The ID of the backup schedule. You can call the DescribeBackupPlanList operation to query the ID of the backup schedule.

Note If your instance is an ApsaraDB RDS for MySQL instance, you can configure automatic access to a data source to automatically add the instance to DBS and obtain the ID of the backup schedule.
1hxxxx8xxxxxa
BackupSetIdstringNo

The ID of the backup set. If this parameter is specified, only the snapshot of the specified backup set is returned. If this parameter is not specified, all the snapshots of the backup schedule are returned.

1xxxx2xxxxx1e
PageSizestringNo

The number of entries to return on each page. Valid values:

  • 30: This is the default value.
  • 50.
  • 100.
30
PageNumberstringNo

The number of the page to return. Pages start from page 1. Default value: 1.

1

Response parameters

ParameterTypeDescriptionExample
object
Datastring

The returned data. The following parameters are contained:

  • backupSetTime: the point in time when the snapshot was created. The time follows the ISO 8601 standard in the yyyy-MM-ddThh:mm:ssZ format. The time is displayed in UTC.
  • backupSetId: the ID of the backup set.
  • backupSetType: the type of the snapshot. A value of Full indicates that the snapshot is a full backup snapshot. A value of Inc indicates that the snapshot is an incremental backup snapshot.
  • backupPlanId: the ID of the backup schedule.
"Data": { "number": 2, "size": 2, "content": [ { "backupSetTime": "2021-08-28T23:12:31Z", "backupSetId": "Inc_1hxxxx8xxxxxa_20210801064200_mysql-bin.000134", "backupSetType": "Inc", "backupPlanId": "1hxxxx8xxxxxa" }, { "backupSetTime": "2021-08-28T22:42:28Z", "backupSetId": "1hxxxx8xxxxxa_20210829064228", "backupSetType": "FULL", "backupPlanId": "1hxxxx8xxxxxa" } ], "totalElements": 2 },
RequestIdstring

The ID of the request.

4F1888AC-1138-4995-B9FE-D2734F61C058
ErrCodestring

The error code returned if the request failed.

Param.NotFound
Successstring

Indicates whether the request was successful.

true
ErrMessagestring

The error message returned if the request failed.

The specified parameter %s value is not valid.
Codestring

The error code returned if the request failed.

Param.NotFound
Messagestring

The error message returned if the request failed.

The specified parameter %s value is not valid.

Examples

Sample success responses

JSONformat

{
  "Data": "  \"Data\": {     \"number\": 2,     \"size\": 2,     \"content\": [       {         \"backupSetTime\": \"2021-08-28T23:12:31Z\",         \"backupSetId\": \"Inc_1hxxxx8xxxxxa_20210801064200_mysql-bin.000134\",         \"backupSetType\": \"Inc\",         \"backupPlanId\": \"1hxxxx8xxxxxa\"       },       {         \"backupSetTime\": \"2021-08-28T22:42:28Z\",         \"backupSetId\": \"1hxxxx8xxxxxa_20210829064228\",         \"backupSetType\": \"FULL\",         \"backupPlanId\": \"1hxxxx8xxxxxa\"       }     ],     \"totalElements\": 2   },",
  "RequestId": "4F1888AC-1138-4995-B9FE-D2734F61C058",
  "ErrCode": "Param.NotFound",
  "Success": "true",
  "ErrMessage": "The specified parameter %s value is not valid.",
  "Code": "Param.NotFound",
  "Message": "The specified parameter %s value is not valid."
}

Error codes

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

Change history

Change timeSummary of changesOperation
No change history