All Products
Search
Document Center

Security Center:DescribeRestoreJobs

Last Updated:Nov 13, 2024

Queries the details about restoration tasks.

Operation description

If the data on your servers is encrypted by ransomware, you can create a restoration task to restore the data on your servers by using backup data in Security Center.

Note After you enable an anti-ransomware policy, the data on your servers is backed up based on the policy. For more information about anti-ransomware policies, see Manage protection policies.

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
yundun-sas:DescribeRestoreJobsget
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
StatusstringNo

The status of the restoration task. Valid values:

  • RUNNING: The task is running.
  • COMPLETE: The task is complete.
  • FAILED: The task fails.
  • CANCELING: The task is being canceled.
  • CANCELED: The task is canceled.
  • PARTIAL_COMPLETE: The task is partially successful.
  • CREATED: The task is created but is not run.
  • EXPIRED: The task is not updated.
  • QUEUED: The task is waiting to be run.
  • CLIENT_DELETED: The task fails because the anti-ransomware agent is uninstalled.
RUNNING
MachineRemarkstringNo

The unique identifier of the server on which the restoration task is run. For example, you can use the IP address or the name of the server.

1.1.XX.XX
PageSizeintegerYes

The number of entries to return on each page. Default value: 10.

10
CurrentPageintegerYes

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

1

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

0ED92280-4363-57D3-A4D3-4D3FBC99B29F
PageInfoobject

The pagination information.

CurrentPageinteger

The page number of the returned page.

1
PageSizeinteger

The number of entries returned per page. Default value: 10.

10
TotalCountinteger

The total number of restoration tasks returned.

69
Countinteger

The number of restoration tasks returned on the current page.

2
RestoreJobsarray<object>

The details about the restoration tasks.

RestoreJobobject
Statusstring

The status of the restoration task. Valid values:

  • RUNNING: The task is running.
  • COMPLETE: The task is complete.
  • FAILED: The task fails.
  • CANCELING: The task is being canceled.
  • CANCELED: The task is canceled.
  • PARTIAL_COMPLETE: The task is partially successful.
  • CREATED: The task was created but is not run.
  • EXPIRED: The task is not updated.
  • QUEUED: The task is waiting to be run.
  • CLIENT_DELETED: The task fails because the anti-ransomware agent is uninstalled.
COMPLETE
SnapshotHashstring

The hash value of the snapshot that stores backup data when the data is backed up.

a3992de83f529b844135fe795d949181735a7d20e0ac8539485c61b7983e618f
SourceClientIdstring

The ID of the anti-ransomware agent that is used to back up data.

c-000gmcypy5dyf9ey3uv7
ErrorFileUrlstring

The URL to download the CSV file. The CSV file contains the files that fail to be restored.

["/home/user"]
Includesstring

The directory in which the restored file is stored. The value is the directory that you specify for protection when you create the anti-ransomware policy

["/root/disk-uuid-test","/root/install.sh"]
RestoreNamestring

The name of the restoration task.

Restore
InternetIpstring

The public IP address of the server whose data you want to restore.

1.1.XX.XX
VaultIdstring

The ID of the backup vault in which the backup data is stored.

v-000b0v0jqzmse2yz06zw
ActualByteslong

The size of backup data. Unit: bytes.

20
Messagestring

The error message.

successful
Percentageinteger

The progress of the restoration task in percentage.

100
GmtModifiedstring

The time when the restoration task is updated.

2021-04-25T19:11Z
RestoreTypestring

The type of the file that is restored. Valid values:

  • ECS_FILE: files on Elastic Compute Service (ECS) instances
  • FILE: files on servers in data centers
ECS_FILE
ExitCodestring

The return value of the restoration task.

0
ClientIdstring

The ID of the anti-ransomware agent that is used to perform the restoration task.

c-000frxwusjauhp9ajpu6
ItemsDonelong

The number of files that are restored.

0
BytesTotallong

The total size of data that you want to restore. Unit: bytes.

20
RequestIdstring

The request ID.

0ED92280-4363-57D3-A4D3-4D3FBC99B29F
InstanceNamestring

The name of the server whose data you want to restore.

win2012-01
CompleteTimelong

The timestamp when the restoration task is complete. Unit: milliseconds.

1583289054000
ErrorTypestring

The error code that is returned for the restoration task.

NONE
SnapshotVersionstring

The version of the backup data.

2020-03-03 18:00
Targetstring

The folder to which the backup data is restored. After you create the restoration task, the backup data is restored to the specified folder.

/home
CreatedTimelong

The timestamp when the restoration task is created. Unit: milliseconds.

1583289052000
InstanceIdstring

The ID of the server whose data you want to restore.

i-bp12xnvdax6307gw****
Sourcestring

The restored content.

["/home/admin","\\\\servername\\sharename"]
IntranetIpstring

The internal IP address of the server whose data you want to restore.

2.1.XX.XX
ErrorFilestring

The name of the CSV file. The CSV file contains the files that fail to be restored.

s-000f4wxm8f7gur6g2otm.csv
Uuidstring

The UUID of the server whose data you want to restore.

6E3DABB6-3F6A-40DB-9492-2C8B59C****
Excludesstring

The directory excluded from the anti-ransomware policy. The value is the directory that you specify to skip protection when you create the anti-ransomware policy.

["/home/user"]
Speedlong

The speed at which data is restored. Unit: byte/s.

25766558
SnapshotIdstring

The hash value ID of the snapshot that stores backup data when the data is backed up.

s-000gmcypy5dy54e39yny
UpdatedTimelong

The timestamp when the restoration task was last updated. Unit: milliseconds.

1583289054000
RestoreIdstring

The ID of the restoration task.

r-000gmcypy5dyf9ey3uv7
GmtCreatestring

The time when the restoration task is created.

2021-04-25T19:11Z
Etalong

The timestamp when the in-progress restoration task is expected to be complete. Unit: seconds.

1583299054
Durationlong

The duration of the restoration task. Unit: seconds.

100
ErrorCountlong

The number of the restoration tasks on which errors occur.

0
ItemsTotallong

The total number of files that need to be restored.

0
BytesDonelong

The total size of data that is restored. Unit: bytes.

20
VaultRegionIdstring

The ID of the region where the backup vault resides.

cn-hangzhou

Examples

Sample success responses

JSONformat

{
  "RequestId": "0ED92280-4363-57D3-A4D3-4D3FBC99B29F",
  "PageInfo": {
    "CurrentPage": 1,
    "PageSize": 10,
    "TotalCount": 69,
    "Count": 2
  },
  "RestoreJobs": [
    {
      "Status": "COMPLETE",
      "SnapshotHash": "a3992de83f529b844135fe795d949181735a7d20e0ac8539485c61b7983e618f",
      "SourceClientId": "c-000gmcypy5dyf9ey3uv7",
      "ErrorFileUrl": "[\"/home/user\"]",
      "Includes": "[\"/root/disk-uuid-test\",\"/root/install.sh\"]",
      "RestoreName": "Restore",
      "InternetIp": "1.1.XX.XX",
      "VaultId": "v-000b0v0jqzmse2yz06zw",
      "ActualBytes": 20,
      "Message": "successful",
      "Percentage": 100,
      "GmtModified": "2021-04-25T19:11Z",
      "RestoreType": "ECS_FILE",
      "ExitCode": "0",
      "ClientId": "c-000frxwusjauhp9ajpu6",
      "ItemsDone": 0,
      "BytesTotal": 20,
      "RequestId": "0ED92280-4363-57D3-A4D3-4D3FBC99B29F",
      "InstanceName": "win2012-01",
      "CompleteTime": 1583289054000,
      "ErrorType": "NONE",
      "SnapshotVersion": "2020-03-03 18:00",
      "Target": "/home",
      "CreatedTime": 1583289052000,
      "InstanceId": "i-bp12xnvdax6307gw****",
      "Source": "[\"/home/admin\",\"\\\\\\\\servername\\\\sharename\"]",
      "IntranetIp": "2.1.XX.XX",
      "ErrorFile": "s-000f4wxm8f7gur6g2otm.csv",
      "Uuid": "6E3DABB6-3F6A-40DB-9492-2C8B59C****",
      "Excludes": "[\"/home/user\"]",
      "Speed": 25766558,
      "SnapshotId": "s-000gmcypy5dy54e39yny",
      "UpdatedTime": 1583289054000,
      "RestoreId": "r-000gmcypy5dyf9ey3uv7",
      "GmtCreate": "2021-04-25T19:11Z",
      "Eta": 1583299054,
      "Duration": 100,
      "ErrorCount": 0,
      "ItemsTotal": 0,
      "BytesDone": 20,
      "VaultRegionId": "cn-hangzhou"
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

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

Change history

Change timeSummary of changesOperation
2023-12-06The response structure of the API has changedView Change Details