All Products
Search
Document Center

Cloud Backup:DescribeRestoreJobs2

Last Updated:Dec 19, 2024

Queries one or more restore jobs that meet the specified conditions.

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:
    • The required resource types are displayed in bold characters.
    • 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
hbr:DescribeRestoreJobs2get
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
PageNumberintegerNo

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

1
PageSizeintegerNo

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

10
RestoreTypestringYes

The type of the data source. Valid values:

  • ECS_FILE: Elastic Compute Service (ECS) files
  • OSS: Object Storage Service (OSS) buckets
  • NAS: Apsara File Storage NAS file systems
  • OTS_TABLE: Tablestore instances
  • UDM_ECS_ROLLBACK: ECS instances
ECS_FILE
Filtersarray<object>No

The keys in the filter.

objectNo

The key in the filter.

KeystringNo

The key in the filter. Valid values:

  • RegionId: the region ID
  • PlanId: the ID of a backup plan
  • JobId: the ID of a backup job
  • VaultId: the ID of a backup vault
  • InstanceId: the ID of an ECS instance
  • Bucket: the name of an OSS bucket
  • FileSystemId: the ID of a file system
  • Status: the status of a backup job
  • CompleteTime: the end time of a backup job
VaultId
ValuesarrayNo

The values that you want to match in the filter.

stringNo

The value that you want to match in the filter.

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

The matching method. Default value: IN. This parameter specifies the operator that you want to use to match a key and a 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: specifies a JSON array as a range. The results must fall within the range in the [Minimum value,Maximum value] format.
  • IN: specifies an array as a collection. The results must fall within the collection.
Note If you specify the CompleteTime parameter as a key to query backup jobs, you cannot use the IN operator to perform a match.
IN

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E
Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true
Codestring

The response status code. The status code 200 indicates that the request was successful.

200
Messagestring

The response message. If the request was successful, "successful" is returned. If the request failed, an error message is returned.

successful
PageNumberinteger

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

1
PageSizeinteger

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

1
TotalCountinteger

The total number of entries returned.

1
RestoreJobsarray<object>

The queried restore jobs.

{'RestoreJob': []}
RestoreJobobject

The details about the restore job.

SnapshotHashstring

The hash value of the backup snapshot.

f2fe...
Statusstring

The status of the restore job. Valid values:

  • COMPLETE: The job is completed.
  • PARTIAL_COMPLETE: The job is partially completed.
  • FAILED: The job failed.
COMPLETE
ErrorMessagestring

The error message that is returned for the restore job.

PARTIAL_COMPLETE
ActualItemslong

This parameter is valid only if the SourceType parameter is set to ECS_FILE. This parameter indicates the actual number of objects that are restored by the restore job.

6
VaultIdstring

The ID of the backup vault.

v-0006******q
ActualByteslong

The actual amount of data that is restored after duplicates are removed. Unit: bytes.

600
UdmDetailstring

The details about Elastic Compute Service (ECS) instance 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}
SourceTypestring

The type of the data source. Valid values:

  • ECS_FILE: ECS files
  • OSS: Object Storage Service (OSS) buckets
  • NAS: Apsara File Storage NAS (NAS) file systems
  • OTS_TABLE: Tablestore instances
  • UDM_ECS: ECS instances
ECS_FILE
Optionsstring

This parameter is valid only if the SourceType parameter is set to ECS_FILE. This parameter indicates whether Windows Volume Shadow Copy Service (VSS) is used to define a restoration path.

  • This parameter is available only for Windows ECS instances.
  • If data changes occur in the backup source, the source data must be the same as the data to be backed up before you can set this parameter to ["UseVSS":true].
  • If you use VSS, you cannot restore data from multiple directories.
{"UseVSS":false}
TargetInstanceIdstring

The ID of the destination instance for the restore job.

i-2ze3m7ktcgw******cs
RestoreTypestring

The type of the restore job.

ECS_FILE
TargetCreateTimelong

The time when the file system was created. This parameter is returned only for NAS file systems.

1634714531
ItemsDonelong

This parameter is valid only if the SourceType parameter is set to ECS_FILE. This parameter indicates the number of restored objects.

8
BytesTotallong

The total amount of data that was backed up from the data source. Unit: bytes.

1000
Excludestring

This parameter is valid only if the SourceType parameter is set to ECS_FILE. This parameter indicates the paths to the files that are excluded from the restore job. The value can be up to 255 characters in length.

["/var", "/proc"]
ParentIdstring

The ID of the parent job.

r-0003hd2an3x4dyv0l18b
CompleteTimelong

The time when the restore job was completed. This value is a UNIX timestamp. Unit: seconds.

1554347313
CreatedTimelong

The time when the restore job was created. This value is a UNIX timestamp. Unit: seconds.

1554347313
TargetBucketstring

The name of the destination OSS bucket. This parameter is returned only for OSS buckets.

target-bucket
ClusterIdstring

The ID of the client group used for restoration.

cl-000******hp6
TargetFileSystemIdstring

The ID of the destination NAS file system. This parameter is returned only for NAS file systems.

0be9****9c9
Progressinteger

The progress of the restore job. Valid values: [0,10000]. For example, 10000 indicates that the progress is 100%.

10000
ExpireTimelong

The time when the restore job expires.

1634714531
TargetDataSourceIdstring

The ID of the destination data source.

ds-000*****997
TargetPrefixstring

The prefix of the objects that are restored. This parameter is returned only for OSS buckets.

"/target"
TargetPathstring

The destination file path of the restore job.

"D:\\rebk"
ErrorFilestring

The files that failed to be restored.

"test.csv"
StartTimelong

The time when the restore job started. This value is a UNIX timestamp. Unit: seconds.

1554347313
UpdatedTimelong

The time when the restore job was updated. This value is a UNIX timestamp. Unit: seconds.

1554347313
SnapshotIdstring

The ID of the snapshot used for restoration.

s-0002******ga88
RestoreIdstring

The ID of the restore job.

r-0003*****8a
TargetClientIdstring

The ID of the destination client.

c-000e*****397
ItemsTotallong

This parameter is valid only if the SourceType parameter is set to ECS_FILE. This parameter indicates the total number of objects in the data source.

10
Includestring

The paths to the files that are included in the restore job.

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

The amount of data that was restored. Unit: bytes.

800
TargetInstanceNamestring

The name of the destination Tablestore instance.

instancename
TargetTableNamestring

The name of the destination table in the Tablestore instance.

tablename
Speedlong

The average speed at which data is backed up. Unit: KB/s.

500
TargetTimelong

The time when the Tablestore instance was backed up. This value is a UNIX timestamp. Unit: seconds.

1642560261
OtsDetailobject

The details about the Tablestore instance.

BatchChannelCountinteger

The number of channels processed by each Tablestore restore job.

2
OverwriteExistingboolean

Indicates whether the existing Tablestore restore job was overwritten.

false
CrossAccountTypestring

Indicates whether data is backed up within the same Alibaba Cloud account or across Alibaba Cloud accounts. Valid values:

  • SELF_ACCOUNT: Data is backed up within the same Alibaba Cloud account.
  • CROSS_ACCOUNT: Data is backed up across Alibaba Cloud accounts.
SELF_ACCOUNT
CrossAccountUserIdlong

The ID of the source Alibaba Cloud account that authorizes the current Alibaba Cloud account to back up data across Alibaba Cloud accounts.

158975xxxxxx4625
CrossAccountRoleNamestring

The name of the Resource Access Management (RAM) role that is created within the source Alibaba Cloud account and assigned to the current Alibaba Cloud account to authorize the current Alibaba Cloud account to back up data across Alibaba Cloud accounts.

BackupRole
Reportobject

The report of the restore job.

TotalFilesstring

The full files that are restored based on the file list.

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

The files that are successfully executed.

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

The files that failed to be executed.

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

The skipped files.

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

The status of the report generation.

COMPLETE
MeteringBytesDonelong

The amount of data that was restored. Unit: bytes. This parameter is valid only if the StorageClass parameter is set to ARCHIVE. The minimum billable size of the data stored at the Archive tier is 1 MB.

1048576
MeteringBytesTotallong

The total amount of data that was backed up from the data source. Unit: bytes. This parameter is valid only if the StorageClass parameter is set to ARCHIVE. The minimum billable size of the data stored at the Archive tier is 1 MB.

1048576
StorageClassstring

The storage class of the backup data. Valid values:

  • STANDARD
  • ARCHIVE
STANDARD
FailbackDetailstring

The details about the VMware failback task.

{"cpu":4,"extra":"{\"restoreVMNamePrefix\":\"627-\",\"dataCenterName\":\"SDDC-Datacenter\",\"dataStoreId\":\"datastore-50\",\"folderId\":\"group-v49\",\"resourcePoolId\":\"resgroup-46\",\"locationName\":\"vcenter.pc-uf600arcwi9td3eyj641.acvs.aliyuncs.com/SDDC-Datacenter/Workloads\",\"computeResourceName\":\"SDDC-Datacenter/Default_c-uf600arcwi9td3eyj640\",\"dataStoreName\":\"Default_c-uf600arcwi9td3eyj640/WorkloadDatastore\",\"networkMoReference\":\"DistributedVirtualPortgroup:dvportgroup-1001\",\"useHotAdd\":false}","instanceId":"i-2vc357i2eannmmotcagz","memoryInMB":8192,"serverId":"0fdc0c86-eb92-4e05-91ab-eeaf9fb6ad01","uefiBoot":false}

Examples

Sample success responses

JSONformat

{
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
  "Success": true,
  "Code": "200",
  "Message": "successful",
  "PageNumber": 1,
  "PageSize": 1,
  "TotalCount": 1,
  "RestoreJobs": {
    "RestoreJob": [
      {
        "SnapshotHash": "f2fe...",
        "Status": "COMPLETE",
        "ErrorMessage": "PARTIAL_COMPLETE",
        "ActualItems": 6,
        "VaultId": "v-0006******q",
        "ActualBytes": 600,
        "UdmDetail": "{\\\"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}",
        "SourceType": "ECS_FILE",
        "Options": "{\"UseVSS\":false}",
        "TargetInstanceId": "i-2ze3m7ktcgw******cs",
        "RestoreType": "ECS_FILE",
        "TargetCreateTime": 1634714531,
        "ItemsDone": 8,
        "BytesTotal": 1000,
        "Exclude": "[\"/var\", \"/proc\"]",
        "ParentId": "r-0003hd2an3x4dyv0l18b",
        "CompleteTime": 1554347313,
        "CreatedTime": 1554347313,
        "TargetBucket": "target-bucket",
        "ClusterId": "cl-000******hp6",
        "TargetFileSystemId": "0be9****9c9",
        "Progress": 10000,
        "ExpireTime": 1634714531,
        "TargetDataSourceId": "ds-000*****997",
        "TargetPrefix": "\"/target\"",
        "TargetPath": "\"D:\\\\rebk\"",
        "ErrorFile": "\"test.csv\"",
        "StartTime": 1554347313,
        "UpdatedTime": 1554347313,
        "SnapshotId": "s-0002******ga88",
        "RestoreId": "r-0003*****8a",
        "TargetClientId": "c-000e*****397",
        "ItemsTotal": 10,
        "Include": "[\"/home/alice/*.pdf\", \"/home/bob/*.txt\"]",
        "BytesDone": 800,
        "TargetInstanceName": "instancename",
        "TargetTableName": "tablename",
        "Speed": 500,
        "TargetTime": 1642560261,
        "OtsDetail": {
          "BatchChannelCount": 2,
          "OverwriteExisting": false
        },
        "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\n",
          "FailedFiles": "/temp/report/158975xxxxxx4625/r-0001hfxxxxxymsspjjtl/job-0001hfxxxxxymsspjjtl_failed.zip",
          "SkippedFiles": "/temp/report/158975xxxxxx4625/r-0001hfxxxxxymsspjjtl/job-0001hfxxxxxymsspjjtl_skipped.zip",
          "ReportTaskStatus": "COMPLETE"
        },
        "MeteringBytesDone": 1048576,
        "MeteringBytesTotal": 1048576,
        "StorageClass": "STANDARD",
        "FailbackDetail": "{\"cpu\":4,\"extra\":\"{\\\"restoreVMNamePrefix\\\":\\\"627-\\\",\\\"dataCenterName\\\":\\\"SDDC-Datacenter\\\",\\\"dataStoreId\\\":\\\"datastore-50\\\",\\\"folderId\\\":\\\"group-v49\\\",\\\"resourcePoolId\\\":\\\"resgroup-46\\\",\\\"locationName\\\":\\\"vcenter.pc-uf600arcwi9td3eyj641.acvs.aliyuncs.com/SDDC-Datacenter/Workloads\\\",\\\"computeResourceName\\\":\\\"SDDC-Datacenter/Default_c-uf600arcwi9td3eyj640\\\",\\\"dataStoreName\\\":\\\"Default_c-uf600arcwi9td3eyj640/WorkloadDatastore\\\",\\\"networkMoReference\\\":\\\"DistributedVirtualPortgroup:dvportgroup-1001\\\",\\\"useHotAdd\\\":false}\",\"instanceId\":\"i-2vc357i2eannmmotcagz\",\"memoryInMB\":8192,\"serverId\":\"0fdc0c86-eb92-4e05-91ab-eeaf9fb6ad01\",\"uefiBoot\":false}"
      }
    ]
  }
}

Error codes

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

Change history

Change timeSummary of changesOperation
No change history