All Products
Search
Document Center

Data Management:DescribeBackupPlanList

Last Updated:Feb 26, 2025
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Query the list of backup plans

Operation description

Before using this interface, please activate the OSS service in advance. For more information, see Object Storage Service (OSS).

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:
    • For mandatory resource types, indicate with a prefix of * .
    • 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
dbs:DescribeBackupPlanListget
*BackupPlan
acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
BackupPlanIdstringNo

The ID of the backup schedule. You can query multiple backup schedule IDs. Separate multiple IDs with commas (,).

dbstooi01exXXXX
RegionstringNo

DBS region, you can view the supported DBS regions by calling the DescribeRegions interface.

cn-hangzhou
PageSizeintegerNo

Number of records per page, the value should be between 1 and 100.

Note The default is 30.
30
PageNumintegerNo

Page number, must be greater than or equal to 0 and not exceed the maximum value of Integer. The default value is 0.

1
BackupPlanNamestringNo

Backup plan name.

test123
BackupPlanStatusstringNo

Backup plan status, the values are as follows:

  • wait: Not configured
  • init: Not started (pre-check failed)
  • running: Running
  • stop: Failed
  • pause: Paused
  • locked: Locked
  • check_pass: Pre-check passed
wait
ClientTokenstringNo

Used to ensure the idempotence of the request, preventing duplicate submissions.

ASDASDASDSADASFCZXVZ
ResourceGroupIdstringNo

Resource group ID.

rg-aekzecovzti****

Response parameters

ParameterTypeDescriptionExample
object

The details of the returned parameters are as follows.

HttpStatusCodeinteger

HTTP status code.

200
PageNuminteger

Page number.

1
RequestIdstring

Request ID.

4F1888AC-1138-4995-B9FE-D2734F61C058
ErrCodestring

Error code.

InvalidParameterValid
Successboolean

Whether the operation was successful.

true
ErrMessagestring

Error message.

The specified parameter %s value is not valid.
TotalPagesinteger

Total number of pages.

4
TotalElementsinteger

Total number of backup plans.

100
PageSizeinteger

Number of records per page.

30
Itemsarray<object>

Details of the backup plans.

BackupPlanDetailobject

Return values.

CrossRoleNamestring

RAM role name for cross-Aliyun account backup.

test123
SourceEndpointInstanceTypestring

Location of the database, the return values are as follows:

  • rds
  • ecs
  • express: Database connected via dedicated line/VPN gateway/smart gateway
  • agent: Database connected via backup gateway
  • dds: Cloud MongoDB
  • other: Database connected directly via IP:Port
rds
BackupSetDownloadDirstring

Download server directory of the backup set

*/test/test123
SourceEndpointIpPortstring

Database connection address.

100.*.*.10:33204
CrossAliyunIdstring

UID for cross-Aliyun account backup.

2xxx7778xxxxxxxxxx
DuplicationArchivePeriodinteger

Time (in days) to convert to archive cold backup storage.

365
BackupPlanIdstring

Backup plan ID.

dbstooi01eXXXX
EndTimestampForRestorelong

End time of the database restorable period, in timestamp format.

1554560477000
BackupPlanStatusstring

Backup plan status. The return values are as follows:

  • wait: Not configured
  • init: Not started (pre-check failed)
  • running: Running
  • stop: Failed
  • pause: Paused
  • locked: Locked
  • check_pass: Pre-check passed
init
BackupSetDownloadFullDataFormatstring

Full data format for backup set download:

  • Native
  • SQL
  • CSV
  • JSON
SQL
BackupRetentionPeriodinteger

Backup data retention period, with a value range of 0 to 1825 days.

365
OSSBucketRegionstring

OSS Bucket region.

cn-hangzhou
SourceEndpointOracleSIDstring

Oracle SID name.

test
BackupStorageTypestring

Built-in storage type. The return values are as follows:

  • Empty (default): Backup data is stored on the user's OSS.
  • system: Backup data is stored on the built-in OSS of DBS.
system
BackupMethodstring

Backup method. The return values are as follows:

  • logical: Logical backup
  • physical: Physical backup
  • duplication: Replication backup
logical
SourceEndpointRegionstring

Database region.

cn-hangzhou
BackupPeriodstring

Full backup cycle. The return values are as follows:

  • Monday: Monday
  • Tuesday: Tuesday
  • Wednesday: Wednesday
  • Thursday: Thursday
  • Friday: Friday
  • Saturday: Saturday
  • Sunday: Sunday
Monday
SourceEndpointDatabaseNamestring

Database name.

test
BackupSetDownloadGatewayIdlong

Backup set download backup gateway ID.

123123
BackupPlanCreateTimelong

Timestamp of the backup plan creation.

1582527713000
InstanceClassstring

Instance class, with return values as follows:

  • micro: Entry-level
  • small: Low-spec
  • medium: Medium-spec
  • large: High-spec
  • xlarge: High-spec (no traffic limit)
micro
BackupSetDownloadTargetTypestring

Backup set download target type.

Note The only value is: agent, indicating that the backup gateway is installed.
agent
DuplicationInfrequentAccessPeriodinteger

Time (in days) to convert to infrequent access storage.

180
BackupStartTimestring

Full backup start time, in the format HH:mm.

14:22
ErrMessagestring

Pre-check task error message.

can not connect to oracle instance orcl with user dbs
BackupObjectsstring

Backup objects.

BeginTimestampForRestorelong

Start time for the database restore period, with a return value of 1554560477000.

1554560477000
SourceEndpointInstanceIDstring

Database instance ID.

test
OpenBackupSetAutoDownloadboolean

Indicates whether the automatic backup set download feature is enabled.

true
BackupPlanNamestring

Backup plan name.

dbstooi01e****
OSSBucketNamestring

OSS Bucket name.

dbs-backup-1857XXXXX489
BackupGatewayIdlong

Backup gateway ID.

827362187368736
SourceEndpointUserNamestring

Database username.

test
BackupSetDownloadIncrementDataFormatstring

Backup set download full data format:

  • Native
  • SQL
  • CSV
  • JSON
SQL
EnableBackupLogboolean

Indicates whether incremental log backup is enabled, with return values as follows:

  • true: Enabled
  • false: Disabled
true
ResourceGroupIdstring

Resource group ID.

rg-aekzecovzti****
DatabaseTypestring

Database type.

MySQL

Examples

Sample success responses

JSONformat

{
  "HttpStatusCode": 200,
  "PageNum": 1,
  "RequestId": "4F1888AC-1138-4995-B9FE-D2734F61C058",
  "ErrCode": "InvalidParameterValid",
  "Success": true,
  "ErrMessage": "The specified parameter %s value is not valid.     ",
  "TotalPages": 4,
  "TotalElements": 100,
  "PageSize": 30,
  "Items": {
    "BackupPlanDetail": [
      {
        "CrossRoleName": "test123",
        "SourceEndpointInstanceType": "rds",
        "BackupSetDownloadDir": "*/test/test123",
        "SourceEndpointIpPort": "100.*.*.10:33204",
        "CrossAliyunId": "2xxx7778xxxxxxxxxx",
        "DuplicationArchivePeriod": 365,
        "BackupPlanId": "dbstooi01eXXXX",
        "EndTimestampForRestore": 1554560477000,
        "BackupPlanStatus": "init",
        "BackupSetDownloadFullDataFormat": "SQL",
        "BackupRetentionPeriod": 365,
        "OSSBucketRegion": "cn-hangzhou",
        "SourceEndpointOracleSID": "test",
        "BackupStorageType": "system",
        "BackupMethod": "logical",
        "SourceEndpointRegion": "cn-hangzhou",
        "BackupPeriod": "Monday",
        "SourceEndpointDatabaseName": "test",
        "BackupSetDownloadGatewayId": 123123,
        "BackupPlanCreateTime": 1582527713000,
        "InstanceClass": "micro",
        "BackupSetDownloadTargetType": "agent",
        "DuplicationInfrequentAccessPeriod": 180,
        "BackupStartTime": "14:22",
        "ErrMessage": "  can not connect to oracle instance orcl with user dbs",
        "BackupObjects": "",
        "BeginTimestampForRestore": 1554560477000,
        "SourceEndpointInstanceID": "test",
        "OpenBackupSetAutoDownload": true,
        "BackupPlanName": "dbstooi01e****",
        "OSSBucketName": "dbs-backup-1857XXXXX489",
        "BackupGatewayId": 827362187368736,
        "SourceEndpointUserName": "test",
        "BackupSetDownloadIncrementDataFormat": "SQL",
        "EnableBackupLog": true,
        "ResourceGroupId": "rg-aekzecovzti****",
        "DatabaseType": "MySQL"
      }
    ]
  }
}

Error codes

HTTP status codeError codeError message
403Request.ForbiddenHave no Permissions

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

Change history

Change timeSummary of changesOperation
2023-03-28The internal configuration of the API is changed, but the call is not affectedView Change Details