All Products
Search
Document Center

Cloud Backup:DescribeBackupJobs2

Last Updated:Oct 26, 2026

Queries one or more backup jobs 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:DescribeBackupJobs2

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

PageNumber

integer

No

The page number. Pages start from 1. Default value: 1.

1

PageSize

integer

No

The number of entries per page. Valid values: 1 to 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: ECS instances

  • UDM_ECS_DISK: cloud disk backup child nodes for ECS instance backup

  • COMMON_NAS: general NAS data sources, including archive NAS data sources and on-premises NAS data sources. You must use the Values parameter of Filters to specify the data source type.

  • File: on-premises File Backup

  • SYNC: data synchronization

ECS_FILE

SortDirection

string

No

The sort order. Valid values:

  • ASCEND: ascending order

  • DESCEND (default): descending order

DESCEND

Filters

array<object>

No

The key-value pairs in the query filter.

object

No

The query filter.

Key

string

No

The key in the query filter. Valid values:

  • RegionId: the region ID

  • PlanId: the backup plan ID

  • JobId: the backup job ID

  • VaultId: the vault ID

  • InstanceId: the ECS instance ID

  • Bucket: the OSS bucket name

  • FileSystemId: the file system ID

  • Status: the job status

  • CreatedTime: the job start time

  • CompleteTime: the job end time

  • InstanceName: the Tablestore instance name

  • BackupType: the backup job type. This parameter is required only when SourceType is set to COMMON_NAS.

  • ParentId: the ID of the parent job. This parameter is required when you query subtasks. For example, if SourceType is set to UDM_ECS_DISK, you must specify the ID of a UDM_ECS job.

VaultId

Values

array

No

The values of the filter variable.

string

No

The values of the filter variable.

  • COMPLETE: on-premises NAS backup

  • 0: ARCHIVE: archive NAS data source

  • 1: ARCHIVE_BY_SEARCH: archive NAS data source

COMPLETE

Operator

string

No

The matching mode. Default value: IN. The matching mode specifies the operator used to match the key and value in the filter. Valid values:

  • EQUAL: equal to

  • NOT_EQUAL: not equal to

  • GREATER_THAN: greater than

  • GREATER_THAN_OR_EQUAL: greater than or equal to

  • LESS_THAN: less than

  • LESS_THAN_OR_EQUAL: less than or equal to

  • BETWEEN: between. The value is a JSON array in the format of [lower bound, upper bound].

  • IN: in. The value is an array.

Note

When you use CompleteTime as the key, the IN operator is not supported.

IN

Edition

string

No

The edition. 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 fails.

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 page number. Pages start from 1. Default value: 1.

1

PageSize

integer

The number of entries per page. Valid values: 1 to 99. Default value: 10.

10

TotalCount

integer

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

8

BackupJobs

object

BackupJob

array<object>

The list of backup jobs that meet the query conditions.

array<object>

The details of the backup job.

Status

string

The status of the backup job. Valid values:

  • COMPLETE: The backup job is successful.

  • PARTIAL_COMPLETE: The backup job is partially successful.

  • FAILED: The backup job fails.

COMPLETE

ErrorMessage

string

The error message of the backup job.

PARTIAL_COMPLETE

ActualItems

integer

The actual number of items in the backup job. This parameter is valid only when SourceType is set to ECS_FILE.

6

VaultId

string

The ID of the backup vault.

v-0006******q

ActualBytes

integer

The actual amount of data in the backup job after deduplication. Unit: bytes.

600

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. Unit: seconds.

1607436917

BackupType

string

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

COMPLETE

Prefix

string

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

example/

SourceType

string

The type of the data source. Valid values:

  • ECS_FILE: ECS files.

  • OSS: Alibaba Cloud OSS.

  • NAS: Alibaba Cloud NAS.

ECS_FILE

Options

string

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

  • This feature is supported only for Windows ECS instances.

  • If data in the backup source changes and you need to ensure data consistency between the backup data and the source data, set this parameter to ["UseVSS":true].

  • After you enable VSS, you cannot back up multiple folders at the same time.

{"UseVSS":false}

ClientId

string

The ID of the backup client. This parameter is valid only when SourceType is set to ECS_FILE.

c-*********************

ItemsDone

integer

The number of backed-up items. This parameter is valid only when SourceType is set to ECS_FILE.

8

BytesTotal

integer

The total amount of data in the data source. Unit: bytes.

1000

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 required only when SourceType is set to ECS_FILE. The value can be up to 255 characters in length.

["/var", "/proc"]

JobName

string

The name of the backup job.

jobname

CompleteTime

integer

The completion time of the backup job. The time is a UNIX timestamp. Unit: seconds.

1554347313

CreatedTime

integer

The creation time of the backup job. The time is a UNIX timestamp. Unit: seconds.

1554347313

Bucket

string

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

hbr-backup-oss

Progress

integer

The backup progress. The value is the percentage multiplied by 100.

10000

SpeedLimit

string

The backup traffic throttling. This parameter is required only when SourceType is set to ECS_FILE. The format is {start}|{end}|{bandwidth}. Separate multiple throttling configurations with vertical bars (|). The time periods in the configurations cannot overlap.

  • start: the start hour.

  • end: the end hour.

  • bandwidth: the bandwidth limit. Unit: KB/s.

0:24:5120

InstanceId

string

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

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

PlanId

string

The ID of the backup plan.

plan-20********35

FileSystemId

string

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

005494

StartTime

integer

The start time of the backup job. The time is a UNIX timestamp. Unit: seconds.

1554347313

UpdatedTime

integer

The update time of the backup job. The time is a UNIX timestamp. Unit: seconds.

1554347313

JobId

string

The ID of the backup job.

job-000g********w7

ItemsTotal

integer

The total number of items in the data source. This parameter is valid only when SourceType is set to ECS_FILE.

10

Include

string

The backup paths included in the backup job.

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

BytesDone

integer

The amount of data in the incremental backup. Unit: bytes.

800

Paths

object

Path

array

The backup path.

string

The backup path.

"/home"

Detail

object

The details of the ECS instance backup job.

DoCopy

boolean

Specifies whether cross-region replication is performed.

true

DestinationNativeSnapshotId

string

The ID of the cross-region replication snapshot.

s-******************

DestinationNativeSnapshotProgress

integer

The progress of cross-region replication.

85

DestinationNativeSnapshotStatus

string

The status of cross-region replication.

COMPLETE

DestinationRetention

integer

The retention period of the cross-region replication backup.

30

DestinationSnapshotId

string

The ID of the cross-region replication backup.

s-******************

DestinationNativeSnapshotErrorMessage

string

The error message for cross-region replication failure.

ECS.CreatingSnapshot

NativeSnapshotId

string

The snapshot ID.

s-******************

DiskNativeSnapshotIdList

object

DiskNativeSnapshotId

array

The mapping between snapshots and cloud disks.

string

The snapshot ID.

s-******************

InstanceInfos

object

The ECS instance information, including the instance name and instance type.

{ "i-xxxxxxxx": { "hostName": "test", "instanceName": "test", "instanceType": "ecs.c7.xlarge", "osType": "linux", "diskIds": [ "d-xxxxxxxx01", "d-xxxxxxxx02" ], "osNameEn": "Rocky Linux 8.8 64 bit", "osName": "Rocky Linux 8.8 64-bit", "platform": "Rocky Linux" } }

InstanceName

string

The name of the Tablestore instance.

instancename

OtsDetail

object

The details of the Tablestore instance.

TableNames

object

TableName

array

The list of data table names in the Tablestore instance.

string

The name of the data table in the Tablestore instance.

["table1", "table2", "table3"]

Speed

integer

The actual average backup speed. Unit: KB/s.

500

TableName

string

The name of the data table in the Tablestore instance.

table1

CrossAccountType

string

The cross-account backup type. Valid values:

  • SELF_ACCOUNT: Backups within the current account.

  • CROSS_ACCOUNT: Cross-account backups.

SELF_ACCOUNT

CrossAccountUserId

integer

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

158975xxxxx4625

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

Report

object

The job report.

TotalFiles

string

The list of all files. This field is not returned for data synchronization.

/temp/report/158975xxxxxx4625/job-0001hfxxxxxymsspjjtl/job-0001hfxxxxxymsspjjtl_total.csv

SuccessFiles

string

The list of successful files.

/temp/report/158975xxxxxx4625/r-0001hfxxxxxymsspjjtl/job-0001hfxxxxxymsspjjtl_success.zip

FailedFiles

string

The list of failed files.

/temp/report/158975xxxxxx4625/r-0001hfxxxxxymsspjjtl/job-0001hfxxxxxymsspjjtl_failed.zip

SkippedFiles

string

The list of skipped files.

/temp/report/158975xxxxxx4625/r-0001hfxxxxxymsspjjtl/job-0001hfxxxxxymsspjjtl_skipped.zip

ReportTaskStatus

string

The generation status of the report.

COMPLETE

Identifier

string

The cluster identifier for the container backup job. This field is returned only when SourceType is set to CONTAINER. If the cluster type is an Alibaba Cloud Container Service for Kubernetes cluster, the value is the Kubernetes cluster ID.

c83**************************b76

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-000cov4ufudxklj24zdk

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"}

FilesTotal

integer

The total number of files to be processed.

10

FilesDone

integer

The number of files that have been processed.

9

ActualFiles

integer

The actual number of files processed.

8

TriggerMode

string

The trigger mode of the backup job.

MANUAL

Examples

Success response

JSON format

{
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
  "Success": true,
  "Code": "200",
  "Message": "successful",
  "PageNumber": 1,
  "PageSize": 10,
  "TotalCount": 8,
  "BackupJobs": {
    "BackupJob": [
      {
        "Status": "COMPLETE",
        "ErrorMessage": "PARTIAL_COMPLETE",
        "ActualItems": 6,
        "VaultId": "v-0006******q",
        "ActualBytes": 600,
        "CreateTime": 1607436917,
        "BackupType": "COMPLETE",
        "Prefix": "example/",
        "SourceType": "ECS_FILE",
        "Options": "{\"UseVSS\":false}",
        "ClientId": "c-*********************",
        "ItemsDone": 8,
        "BytesTotal": 1000,
        "Exclude": "[\"/var\", \"/proc\"]",
        "JobName": "jobname",
        "CompleteTime": 1554347313,
        "CreatedTime": 1554347313,
        "Bucket": "hbr-backup-oss",
        "Progress": 10000,
        "SpeedLimit": "0:24:5120",
        "InstanceId": "i-*********************",
        "PlanId": "plan-20********35",
        "FileSystemId": "005494",
        "StartTime": 1554347313,
        "UpdatedTime": 1554347313,
        "JobId": "job-000g********w7",
        "ItemsTotal": 10,
        "Include": "[\"/home/alice/*.pdf\", \"/home/bob/*.txt\"]",
        "BytesDone": 800,
        "Paths": {
          "Path": [
            "\"/home\""
          ]
        },
        "Detail": {
          "DoCopy": true,
          "DestinationNativeSnapshotId": "s-******************",
          "DestinationNativeSnapshotProgress": 85,
          "DestinationNativeSnapshotStatus": "COMPLETE",
          "DestinationRetention": 30,
          "DestinationSnapshotId": "s-******************",
          "DestinationNativeSnapshotErrorMessage": "ECS.CreatingSnapshot",
          "NativeSnapshotId": "s-******************",
          "DiskNativeSnapshotIdList": {
            "DiskNativeSnapshotId": [
              "s-******************"
            ]
          },
          "InstanceInfos": {
            "test": "test",
            "test2": 1
          }
        },
        "InstanceName": "instancename",
        "OtsDetail": {
          "TableNames": {
            "TableName": [
              "[\"table1\", \"table2\", \"table3\"]"
            ]
          }
        },
        "Speed": 500,
        "TableName": "table1",
        "CrossAccountType": "SELF_ACCOUNT",
        "CrossAccountUserId": 0,
        "CrossAccountRoleName": "BackupRole",
        "Report": {
          "TotalFiles": "/temp/report/158975xxxxxx4625/job-0001hfxxxxxymsspjjtl/job-0001hfxxxxxymsspjjtl_total.csv",
          "SuccessFiles": "/temp/report/158975xxxxxx4625/r-0001hfxxxxxymsspjjtl/job-0001hfxxxxxymsspjjtl_success.zip",
          "FailedFiles": "/temp/report/158975xxxxxx4625/r-0001hfxxxxxymsspjjtl/job-0001hfxxxxxymsspjjtl_failed.zip",
          "SkippedFiles": "/temp/report/158975xxxxxx4625/r-0001hfxxxxxymsspjjtl/job-0001hfxxxxxymsspjjtl_skipped.zip",
          "ReportTaskStatus": "COMPLETE"
        },
        "Identifier": "c83**************************b76",
        "DestSourceType": "OSS",
        "DestDataSourceId": "ds-000cov4ufudxklj24zdk",
        "DestDataSourceDetail": "{\\\"prefix\\\":\\\"/\\\"}",
        "ChangeListPath": "{\"dataSourceId\": \"ds-123456789\", \"path\": \"/changelist\"}",
        "FilesTotal": 10,
        "FilesDone": 9,
        "ActualFiles": 8,
        "TriggerMode": "MANUAL"
      }
    ]
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.