DescribeBackupPlanList

Updated at:

Queries a Database Backup (DBS) backup plan.

Operation description

Activate Object Storage Service (OSS) before you call this operation. For more information, see Object Storage Service.

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

dbs:DescribeBackupPlanList

get

*BackupPlan

acs:dbs:{#regionId}:{#accountId}:backupplan/{#BackupPlanId}

None None

Request parameters

Parameter

Type

Required

Description

Example

BackupPlanId

string

No

The ID of the backup plan. You can specify multiple IDs separated by commas (,).

dbstooi01exXXXX

Region

string

No

The DBS region. You can call the DescribeRegions operation to query the regions supported by DBS.

cn-hangzhou

PageSize

integer

No

The number of entries per page. Valid values: 1 to 100.

Note

Default value: 30.

30

PageNum

integer

No

The page number. The value must be greater than or equal to 0 and not exceed the maximum value of the Integer data type. Default value: 0.

1

BackupPlanName

string

No

The name of the backup plan.

test123

BackupPlanStatus

string

No

The status of the backup plan. Valid values:

  • wait: Not configured.

  • init: Not started (precheck failed).

  • running: Running.

  • stop: Failed.

  • pause: Paused.

  • locked: Locked.

  • check_pass: Precheck passed.

wait

ClientToken

string

No

The client token that is used to ensure the idempotence of the request and prevent duplicate submissions.

ASDASDASDSADASFCZXVZ

ResourceGroupId

string

No

The ID of the resource group.

rg-aekzecovzti****

ShowStorageStrategyInfo

boolean

No

Specifies whether to display the storage strategy information.

false

ShowBackupStrategyInfo

boolean

No

Specifies whether to display the backup strategy information.

false

ShowRecoverTimeRange

boolean

No

Specifies whether to display the recovery time range.

false

BackupMethod

string

No

The backup method.

logical

Response elements

Element

Type

Description

Example

object

The response parameters.

HttpStatusCode

integer

The HTTP status code.

200

PageNum

integer

The page number.

1

RequestId

string

The request ID.

4F1888AC-1138-4995-B9FE-D2734F61C058

ErrCode

string

The error code.

InvalidParameterValid

Success

boolean

Indicates whether the request is successful.

true

ErrMessage

string

The error message.

The specified parameter %s value is not valid.

TotalPages

integer

The total number of pages.

4

TotalElements

integer

The total number of backup plans.

100

PageSize

integer

The number of entries per page.

30

Items

object

BackupPlanDetail

array<object>

The backup plan details.

object

The item.

CrossRoleName

string

The name of the Resource Access Management (RAM) role used for cross-account backup.

test123

SourceEndpointInstanceType

string

The location of the database. Valid values:

  • rds

  • ecs

  • express: The database connected over Express Connect, VPN Gateway, or Smart Access Gateway.

  • agent: The database connected through a backup gateway.

  • dds: ApsaraDB for MongoDB.

  • other: The database connected by using an IP address and a port number.

rds

BackupSetDownloadDir

string

The server directory for downloading backup sets.

*/test/test123

SourceEndpointIpPort

string

The database connection address.

100.*.*.10:33204

CrossAliyunId

string

The ID of the Alibaba Cloud account for cross-account backup.

2xxx7778xxxxxxxxxx

DuplicationArchivePeriod

integer

The number of days after which backup data is transitioned to Archive storage.

365

BackupPlanId

string

The ID of the backup plan.

dbstooi01eXXXX

EndTimestampForRestore

integer

The end time of the time range to which the database can be restored. The time is in the timestamp format.

1554560477000

BackupPlanStatus

string

The status of the backup plan. Valid values:

  • wait: Unconfigured.

  • init: Not started due to a precheck failure.

  • running: Running.

  • stop: Failed.

  • pause: Paused.

  • locked: Locked.

  • check_pass: Precheck passed.

init

BackupSetDownloadFullDataFormat

string

The format of the full data downloaded from the backup set. Valid values:

  • Native

  • SQL

  • CSV

  • JSON

SQL

BackupRetentionPeriod

integer

The retention period of backup data. Valid values: 0 to 1825. Unit: days.

365

OSSBucketRegion

string

The region of the OSS bucket.

cn-hangzhou

SourceEndpointOracleSID

string

The Oracle SID.

test

BackupStorageType

string

The built-in storage type. Valid values:

  • Empty (default): Backup data is stored in your OSS bucket.

  • system: Backup data is stored in the built-in OSS bucket of Database Backup (DBS).

system

BackupMethod

string

The backup method. Valid values:

  • logical: Logical backup.

  • physical: Physical backup.

  • duplication: Dump backup.

logical

SourceEndpointRegion

string

The region of the database.

cn-hangzhou

BackupPeriod

string

The full backup cycle. Valid values:

  • Monday: Monday.

  • Tuesday: Tuesday.

  • Wednesday: Wednesday.

  • Thursday: Thursday.

  • Friday: Friday.

  • Saturday: Saturday.

  • Sunday: Sunday.

Monday

SourceEndpointDatabaseName

string

The name of the database.

test

BackupSetDownloadGatewayId

integer

The ID of the backup gateway used to download backup sets.

123123

BackupPlanCreateTime

integer

The timestamp when the backup plan was created.

1582527713000

InstanceClass

string

The instance specifications. Valid values:

  • micro: Starter.

  • small: Low-end.

  • medium: Medium-end.

  • large: High-end.

  • xlarge: High-end with no traffic limit.

micro

BackupSetDownloadTargetType

string

The target type for downloading backup sets.

Note

Valid value: agent, which indicates that a backup gateway is installed.

agent

DuplicationInfrequentAccessPeriod

integer

The number of days after which backup data is transitioned to Infrequent Access (IA) storage.

180

BackupStartTime

string

The start time of the full backup. The time is in the HH:mm format.

14:22

ErrMessage

string

The error message of the precheck task.

can not connect to oracle instance orcl with user dbs

BackupObjects

string

The backup objects.

[ { "DBName":"Name of the database to be backed up", "SchemaName":"Name of the schema to be backed up", "TableIncludes":[{ "TableName":"Name of the table to be backed up" }], "TableExcludes":[{ "TableName":"Name of the table to be excluded from backup" }] } ]

BeginTimestampForRestore

integer

The start time of the time range to which the database can be restored. Example: 1554560477000.

1554560477000

SourceEndpointInstanceID

string

The instance ID of the database.

test

OpenBackupSetAutoDownload

boolean

Specifies whether the automatic backup set download feature is enabled.

true

BackupPlanName

string

The name of the backup plan.

dbstooi01e****

OSSBucketName

string

The name of the OSS bucket.

dbs-backup-1857XXXXX489

BackupGatewayId

integer

The ID of the backup gateway.

827362187368736

SourceEndpointUserName

string

The database account.

test

BackupSetDownloadIncrementDataFormat

string

The format of the full data downloaded from the backup set. Valid values:

  • Native

  • SQL

  • CSV

  • JSON

SQL

EnableBackupLog

boolean

Specifies whether to enable incremental log backup. Valid values:

  • true: Enabled.

  • false: Disabled.

true

ResourceGroupId

string

The ID of the resource group.

rg-aekzecovzti****

DatabaseType

string

The database type.

MySQL

BackupPlanRegion

string

The region of the backup plan.

cn-beijing

SourceEndpointHost

string

The endpoint of the backup source.

127.0.0.1

InstanceChargeType

string

The billing method of the backup plan instance.

PREPAY

InstanceExpiredTimestamp

integer

The time when the backup plan instance expires.

1764051253000

SourceEndpointEnableSsl

string

Specifies whether to enable SSL secure connections for the backup source database.

true

StorageEncryptMethod

string

The storage encryption method of the backup plan.

encrypted

SourceEndpointPort

string

The port of the backup source database.

3306

IncrementBackupRetentionPeriod

string

The retention period of incremental backup data.

365

IncrementDuplicationInfrequentAccessPeriod

string

The number of days after which incremental backup data is transitioned to Infrequent Access (IA) storage.

365

IncrementDuplicationArchivePeriod

string

The number of days after which incremental backup data is transitioned to Archive storage.

365

LogBackupRetentionPeriod

string

The retention period of log backup data.

365

LogDuplicationInfrequentAccessPeriod

string

The number of days after which log backup data is transitioned to Infrequent Access (IA) storage.

365

LogDuplicationArchivePeriod

string

The number of days after which log backup data is transitioned to Archive storage.

365

BackupGatewayIdentifier

string

The unique identifier of the backup gateway.

TESTGATEWAY

EnableMysqlPhysicalBackupBinLog

boolean

Specifies whether to enable log backup for MySQL physical backups.

false

Examples

Success response

JSON format

{
  "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": "[     {         \\\"DBName\\\":\\\"待备份库名\\\",         \\\"SchemaName\\\":\\\"待备份 Schema 名\\\",         \\\"TableIncludes\\\":[{             \\\"TableName\\\":\\\"待备份表表名\\\"         }],         \\\"TableExcludes\\\":[{             \\\"TableName\\\":\\\"待备份库名不需要备份表的表名\\\"         }]     } ]",
        "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",
        "BackupPlanRegion": "cn-beijing",
        "SourceEndpointHost": "127.0.0.1",
        "InstanceChargeType": "PREPAY",
        "InstanceExpiredTimestamp": 1764051253000,
        "SourceEndpointEnableSsl": "true",
        "StorageEncryptMethod": "encrypted",
        "SourceEndpointPort": "3306",
        "IncrementBackupRetentionPeriod": "365",
        "IncrementDuplicationInfrequentAccessPeriod": "365",
        "IncrementDuplicationArchivePeriod": "365",
        "LogBackupRetentionPeriod": "365",
        "LogDuplicationInfrequentAccessPeriod": "365",
        "LogDuplicationArchivePeriod": "365",
        "BackupGatewayIdentifier": "TESTGATEWAY",
        "EnableMysqlPhysicalBackupBinLog": false
      }
    ]
  }
}

Error codes

HTTP status code

Error code

Error message

Description

403 Request.Forbidden Have no Permissions You are not authorized to perform the current operation. Contact the Alibaba Cloud account to grant permissions in the Resource Access Management (RAM) console before you perform this operation.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.