Updated on 2026-04-03 GMT+08:00

Restoring Isolated Files

Function

This API is used to restore isolated files.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, no identity policy-based permission required for calling this API.

URI

PUT /v5/{project_id}/event/isolated-file

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

enterprise_project_id

No

String

ID of the enterprise project that a server belongs.

An enterprise project can be configured only after the enterprise project function is enabled.

Enterprise project ID. The value 0 indicates the default enterprise project. To query servers in all enterprise projects, set this parameter to all_granted_eps. If you have only the permission on an enterprise project, you need to transfer the enterprise project ID to query the server in the enterprise project. Otherwise, an error is reported due to insufficient permission.

Request Parameters

Table 3 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token.

It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is a token.

region

No

String

Region ID

Table 4 Request body parameters

Parameter

Mandatory

Type

Description

data_list

No

Array of IsolatedFileRequestInfo objects

List of files to be restored

Table 5 IsolatedFileRequestInfo

Parameter

Mandatory

Type

Description

host_id

No

String

Definition

Unique ID of a server (host).

Range

The value can contain 1 to 64 characters.

file_hash

No

String

Definition

File hash.

Range

The value can contain 1 to 256 characters.

file_path

No

String

Definition

File path.

Range

The value can contain 1 to 256 characters.

file_attr

No

String

Definition

System attributes of a file (such as read and write permissions, hidden attributes, and execution permissions).

Range

The value can contain 1 to 256 characters.

Response Parameters

Status code: 200

Request succeeded.

None

Example Requests

Restore the isolated file C:\Users\Public\test.exe of server 5a41ca47-8ea7-4a65-a8fb-950d03d8638e from the isolated file.

PUT https://{endpoint}/v5/{project_id}/event/isolated-file

{
  "data_list" : [ {
    "file_attr" : "0",
    "file_hash" : "58693382bc0c9f60ef86e5b37cf3c2f3a9c9ec46936901eaa9131f7ee4a09bde",
    "file_path" : "C:\\\\Users\\\\Public\\\\test.exe",
    "host_id" : "5a41ca47-8ea7-4a65-a8fb-950d03d8638e"
  } ]
}

Example Responses

None

Status Codes

Status Code

Description

200

Request succeeded.

Error Codes

See Error Codes.