华为乾坤-查询Cpe命令下发任务详情:响应示例

时间:2025-02-17 11:37:33

响应示例

返回状态码为200:查询成功。

HTTPS 200 OK
Date: Thu,13 Sep 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json
{
  "errcode": "0",
  "errmsg": "",
  "data": [
    {
      "id": "7c37d9e8-9df6-31e8-646c-283fd488d001",
      "taskId": "5c37d9e8-cdf6-11e8-a4fc-286ed488d001",
      "commands": "reboot",
      "response": "success",
      "responseTime": '2022-05-12 15:30:00'
    }
  ]
}

返回状态码为400:查询失败。

HTTPS 400 Bad Requests
Date: Thu,13 Sep 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json
{
  "errcode": "0x00c8000d",
  "errmsg": "The parameter taskId is null."
}

返回状态码为500:内部错误。

HTTP/1.1 500 Internal Server Error
Date: Sun,16 Feb 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
support.huaweicloud.com/qiankuncmn-qiankuncs/toctopics/zh-cn_topic_0000001898242849.html