DescribeBackupPlans

Updated at:

Queries one or more backup plans that meet the specified conditions.

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:DescribeBackupPlans

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

PageNumber

integer

No

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

1

PageSize

integer

No

The number of entries to return on each page. Minimum value: 1. Maximum value: 99. Default value: 10.

10

SourceType

string

No

The data source type. Valid values:

  • ECS_FILE: ECS files.

  • OSS: Alibaba Cloud OSS.

  • NAS: Alibaba Cloud NAS.

  • OTS: Alibaba Cloud Tablestore.

  • UDM_ECS: Alibaba Cloud ECS instances.

  • SYNC: Data synchronization.

ECS_FILE

Filters

array<object>

No

The query filters.

object

No

Key

string

No

The key of the query filter. Valid values:

  • regionId: The region ID.

  • planId: The plan ID.

  • sourceType: The backup source type.

  • vaultId: The vault ID.

  • instanceName: The instance name.

  • instanceId: The instance ID.

  • planName: The plan name.

vaultId

Values

array

No

The values to match in the query filter.

["v-*********************"]

string

No

The values to match in the query filter.

v-*********************

Edition

string

No

The edition type. Valid values: BASIC and STANDARD. Default value: STANDARD.

STANDARD

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

Success

boolean

Indicates whether the request is successful. Valid values:

  • true: The request is successful.

  • false: The request failed.

true

Code

string

The response code. A value of 200 indicates success.

200

Message

string

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

successful

PageNumber

integer

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

1

PageSize

integer

The number of entries to return on each page. Minimum value: 1. Maximum value: 99. Default value: 10.

10

TotalCount

integer

The total number of backup plans that meet the query conditions.

8

BackupPlans

object

BackupPlan

array<object>

The list of backup plans that meet the query conditions.

array<object>

VaultId

string

The ID of the backup vault.

v-*********************

BackupType

string

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

COMPLETE

CreateTime

integer

The creation time of the file system. This parameter is valid only when SourceType is set to NAS. The time is a UNIX timestamp in seconds.

1554347313

DataSourceId

string

The ID of the data source.

ds-000ht6o9*****w61

SourceType

string

The data source type. Valid values:

  • ECS_FILE: ECS files.

  • OSS: Alibaba Cloud OSS.

  • NAS: Alibaba Cloud NAS.

  • OTS: Alibaba Cloud Tablestore.

  • UDM_ECS: Alibaba Cloud ECS instances.

  • SYNC: Data synchronization.

ECS_FILE

Disabled

boolean

Indicates whether the backup plan is paused. Valid values:

  • true: The backup plan is paused.

  • false: The backup plan is not paused.

false

Prefix

string

The backup prefix. This parameter is valid only when SourceType is set to OSS.

oss-prefix

Options

string

Specifies whether to use Windows Volume Shadow Copy Service (VSS) to define the backup path. This parameter is valid only when SourceType is set to ECS_FILE.

{"UseVSS":false}

ClientId

string

The ID of the client.

c-000ge4w*****1qb

Exclude

string

The paths that do not need to be backed up. All files in these paths are excluded from the backup. This parameter is valid only when SourceType is set to ECS_FILE.

["/var", "/proc"]

Retention

integer

The retention period of the backup, in days.

7

CreatedTime

integer

The creation time of the backup plan. The time is a UNIX timestamp in seconds.

1554347313

ClusterId

string

The ID of the client group.

cl-000ht6o9******h

Bucket

string

The name of the OSS bucket. This parameter is valid only when SourceType is set to OSS.

hbr-backup-oss

Detail

string

The details of the full-system backup.

{\"doCopy\":true,\"doBackup\":false,\"instanceName\":\"instance example\",\"appConsistent\":false,\"destinationRegionId\":\"cn-shanghai\",\"enableFsFreeze\":true,\"osNameEn\":\"Windows Server 2019 Data Center Edition 64bit Chinese Edition\",\"osName\":\"Windows Server 2019 Data Center Edition 64bit Chinese Edition\",\"diskIdList\":[],\"backupVaultId\":\"\",\"snapshotGroup\":true,\"destinationRetention\":35,\"platform\":\"Windows Server 2012\",\"timeoutInSeconds\":60,\"backupRetention\":1,\"osType\":\"windows\",\"preScriptPath\":\"\",\"postScriptPath\":\"\",\"enableWriters\":true,\"ecsDeleted\":false}

Schedule

string

The backup policy. Format: I|{startTime}|{interval}. This indicates that a backup job is executed at an interval of {interval} starting from {startTime}. Backup jobs for past times are not executed. If the previous backup job is not completed, the next backup job is not triggered. For example, I|1631685600|P1D indicates that a backup is performed every day starting from 14:00:00 on September 15, 2021.

  • startTime: The start time of the backup. The time is a UNIX timestamp in seconds.

  • interval: The ISO 8601 time interval. For example, PT1H indicates an interval of one hour, and P1D indicates an interval of one day.

I|1602673264|P1D

SpeedLimit

string

The throttling for backup traffic. Format: {start}|{end}|{bandwidth}. Multiple throttling configurations are separated by vertical bars (|), and the configured time periods cannot overlap. This parameter is valid only when SourceType is set to ECS_FILE.

  • start: The start hour.

  • end: The end hour.

  • bandwidth: The bandwidth limit, in KB/s.

0:24:5120

InstanceId

string

The ECS instance ID. This parameter is valid only when SourceType is set to ECS_FILE.

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

PlanId

string

The ID of the backup plan.

plan-*********************

BackupSourceGroupId

string

The ID of the backup data source group.

System-Database

FileSystemId

string

The ID of the file system. This parameter is valid only when SourceType is set to NAS.

00594

OtsDetail

object

The details of Tablestore.

TableNames

object

TableName

array

The Tablestore information.

string

The name of the Tablestore table.

test2_HBR_RESTORED

InstanceName

string

The name of the Tablestore instance.

instancename

UpdatedTime

integer

The update time of the backup plan. The time is a UNIX timestamp in seconds.

1554347313

PlanName

string

The name of the backup plan.

planname

Include

string

The paths to be backed up. All files in these paths are backed up. This parameter is valid only when SourceType is set to ECS_FILE.

["/home/alice/*.pdf", "/home/bob/*.txt"]

Rules

object

Rule

array<object>

The list of backup policies. This parameter is valid only for cloud disk backups.

object

DestinationRetention

integer

The retention period of cross-region backups, in days.

90

Schedule

string

The backup policy. Format: I|{startTime}|{interval}. This indicates that a backup job is executed at an interval of {interval} starting from {startTime}. Backup jobs for past times are not executed. If the previous backup job is not completed, the next backup job is not triggered. For example, I|1631685600|P1D indicates that a backup is performed every day starting from 14:00:00 on September 15, 2021.

  • startTime: The start time of the backup. The time is a UNIX timestamp in seconds.

  • interval: The ISO 8601 time interval. For example, PT1H indicates an interval of one hour, and P1D indicates an interval of one day.

I|1631685600|P1D

Retention

integer

The retention period of the backup, in days.

90

Disabled

boolean

Indicates whether the policy is disabled.

true

DoCopy

boolean

Specifies whether to copy backup snapshot data to the backup vault.

false

DestinationRegionId

string

The ID of the destination region for cross-region backups.

cn-shanghai

RuleId

string

The ID of the policy.

rule-0008i52rf0ulpni6kn6m

RuleName

string

The policy name.

Disk Golden Rule

BackupType

string

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

COMPLETE

Resources

object

Resource

array<object>

The list of backup resources. This parameter is valid only for cloud disk backups.

object

SourceType

string

The type of the data source. Valid values:

  • UDM_DISK

UDM_DISK

ResourceId

string

The ID of the data source.

d-j6cgioir6m******lu4

Extra

string

The additional information about the data source.

{\"doBackup\":false,\"diskName\":\"data_disk\",\"size\":100,\"type\":\"data\",\"category\":\"cloud_essd\",\"imageId\":\"\",\"device\":\"/dev/xvdb\",\"encrypted\":false}

Paths

object

Path

array

The list of backup paths. This parameter is valid only when SourceType is set to ECS_FILE.

string

The backup path.

["/home"]

TrialInfo

object

The free trial attributes.

TrialStartTime

integer

The start time of the free trial. The time is a UNIX timestamp in seconds.

1579413159

TrialVaultReleaseTime

integer

The release time of the free trial vault. The time is a UNIX timestamp in seconds.

1594965600

TrialExpireTime

integer

The expiration time of the free trial. The time is a UNIX timestamp in seconds.

1584597600

KeepAfterTrialExpiration

boolean

Specifies whether to switch to the pay-as-you-go billing method after the free trial ends.

true

InstanceGroupId

string

The ID of the instance group.

i-**

CrossAccountType

string

The cross-account backup type. Valid values:

  • SELF_ACCOUNT

  • CROSS_ACCOUNT

CROSS_ACCOUNT

CrossAccountUserId

integer

The ID of the original account for the cross-account backup managed by the current account.

1841642xxxxx9795

CrossAccountRoleName

string

The name of the role created in the RAM of the original account for the cross-account backup managed by the current account.

BackupRole

KeepLatestSnapshots

integer

Specifies whether to retain at least one backup version. Valid values:

  • 0: Do not retain.

  • 1: Retain.

0

DestSourceType

string

The type of the destination data source. This parameter is required only for synchronization.

OSS

DestDataSourceId

string

The ID of the destination data source. This parameter is required only for synchronization.

ds-*********************

DestDataSourceDetail

string

The details of the destination data source. This parameter is required only for synchronization.

{\"prefix\":\"/\"}

ChangeListPath

string

The configuration of the incremental file synchronization list. This parameter is required only for synchronization.

{"dataSourceId": "ds-123456789", "path": "/changelist"}

LatestExecuteJobId

string

The ID of the most recently executed job for the plan.

job-12345678

LatestFinishJobId

string

The ID of the last completed backup job.

job-00**************9khz

CreatedByTag

boolean

Indicates whether the backup plan is created through automatic creation based on labels.

false

HitTags

object

HitTag

array<object>

The matched tag rules.

object

The matched tag rules.

Key

string

The tag key.

type

Value

string

The tag value.

0

Operator

string

The tag matching rule. Valid values:

  • EQUAL: Matches both the tag key and the tag value.

  • NOT: Matches the tag key but not the tag value.

EQUAL

BusinessStatus

string

The business status.

ACTIVE

Examples

Success response

JSON format

{
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
  "Success": true,
  "Code": "200",
  "Message": "successful",
  "PageNumber": 1,
  "PageSize": 10,
  "TotalCount": 8,
  "BackupPlans": {
    "BackupPlan": [
      {
        "VaultId": "v-*********************",
        "BackupType": "COMPLETE",
        "CreateTime": 1554347313,
        "DataSourceId": "ds-000ht6o9*****w61",
        "SourceType": "ECS_FILE",
        "Disabled": false,
        "Prefix": "oss-prefix",
        "Options": "{\"UseVSS\":false}",
        "ClientId": "c-000ge4w*****1qb",
        "Exclude": "[\"/var\", \"/proc\"]\t",
        "Retention": 7,
        "CreatedTime": 1554347313,
        "ClusterId": "cl-000ht6o9******h",
        "Bucket": "hbr-backup-oss",
        "Detail": "{\\\"doCopy\\\":true,\\\"doBackup\\\":false,\\\"instanceName\\\":\\\"instance example\\\",\\\"appConsistent\\\":false,\\\"destinationRegionId\\\":\\\"cn-shanghai\\\",\\\"enableFsFreeze\\\":true,\\\"osNameEn\\\":\\\"Windows Server  2019 Data Center Edition 64bit Chinese Edition\\\",\\\"osName\\\":\\\"Windows Server  2019 Data Center Edition 64bit Chinese Edition\\\",\\\"diskIdList\\\":[],\\\"backupVaultId\\\":\\\"\\\",\\\"snapshotGroup\\\":true,\\\"destinationRetention\\\":35,\\\"platform\\\":\\\"Windows Server 2012\\\",\\\"timeoutInSeconds\\\":60,\\\"backupRetention\\\":1,\\\"osType\\\":\\\"windows\\\",\\\"preScriptPath\\\":\\\"\\\",\\\"postScriptPath\\\":\\\"\\\",\\\"enableWriters\\\":true,\\\"ecsDeleted\\\":false}",
        "Schedule": "I|1602673264|P1D",
        "SpeedLimit": "0:24:5120",
        "InstanceId": "i-*********************",
        "PlanId": "plan-*********************",
        "BackupSourceGroupId": "System-Database",
        "FileSystemId": "00594",
        "OtsDetail": {
          "TableNames": {
            "TableName": [
              "test2_HBR_RESTORED"
            ]
          }
        },
        "InstanceName": "instancename",
        "UpdatedTime": 1554347313,
        "PlanName": "planname",
        "Include": "[\"/home/alice/*.pdf\", \"/home/bob/*.txt\"]",
        "Rules": {
          "Rule": [
            {
              "DestinationRetention": 90,
              "Schedule": "I|1631685600|P1D",
              "Retention": 90,
              "Disabled": true,
              "DoCopy": false,
              "DestinationRegionId": "cn-shanghai",
              "RuleId": "rule-0008i52rf0ulpni6kn6m",
              "RuleName": "Disk Golden Rule",
              "BackupType": "COMPLETE"
            }
          ]
        },
        "Resources": {
          "Resource": [
            {
              "SourceType": "UDM_DISK",
              "ResourceId": "d-j6cgioir6m******lu4",
              "Extra": "{\\\"doBackup\\\":false,\\\"diskName\\\":\\\"data_disk\\\",\\\"size\\\":100,\\\"type\\\":\\\"data\\\",\\\"category\\\":\\\"cloud_essd\\\",\\\"imageId\\\":\\\"\\\",\\\"device\\\":\\\"/dev/xvdb\\\",\\\"encrypted\\\":false}"
            }
          ]
        },
        "Paths": {
          "Path": [
            "[\"/home\"]"
          ]
        },
        "TrialInfo": {
          "TrialStartTime": 1579413159,
          "TrialVaultReleaseTime": 1594965600,
          "TrialExpireTime": 1584597600,
          "KeepAfterTrialExpiration": true
        },
        "InstanceGroupId": "i-**",
        "CrossAccountType": "CROSS_ACCOUNT",
        "CrossAccountUserId": 0,
        "CrossAccountRoleName": "BackupRole",
        "KeepLatestSnapshots": 0,
        "DestSourceType": "OSS",
        "DestDataSourceId": "ds-*********************",
        "DestDataSourceDetail": "{\\\"prefix\\\":\\\"/\\\"}",
        "ChangeListPath": "{\"dataSourceId\": \"ds-123456789\", \"path\": \"/changelist\"}",
        "LatestExecuteJobId": "job-12345678",
        "LatestFinishJobId": "job-00**************9khz",
        "CreatedByTag": false,
        "HitTags": {
          "HitTag": [
            {
              "Key": "type",
              "Value": "0",
              "Operator": "EQUAL"
            }
          ]
        },
        "BusinessStatus": "ACTIVE"
      }
    ]
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.