跳至主内容

createReleaseQuarantineExchangeItemTask

此方法用于创建新任务,将隔离区中的项目释放至目标收件人。

服务

使用此方法需将 {服务} 名称置于API URL中。允许的服务包括:

  • 计算机 ,对应“计算机与虚拟机”

例如, computers 服务的请求URL为:

https://YOUR-HOSTNAME/api/v1.0/jsonrpc/quarantine/computers

参数

参数名

类型

是否可选

说明

quarantineItemsIds

数组

待解除隔离项的ID列表。单次最多可恢复100个项目。

返回值

该方法返回布尔值,任务成功创建时返回True。

示例

请求 :

{
"params": {
          "quarantineItemsIds": [
              "650185288f8e38e0dec2c623" 
           ]
       },
      "jsonrpc": "2.0",
      "method": "createReleaseQuarantineExchangeItemTask",
       "id": "5399c9b5-0b46-45e4-81aa-889952433d86"
}

响应 :

{
    "id": "5399c9b5-0b46-45e4-81aa-889952433d86",
    "jsonrpc": "2.0",
    "result": true
}