DeleteInstance【删除云主机】

删除云主机:可根据云主机ID来删除云主机。

Request Parameters

Parameter name Type Description Required
action String API 标识符 Yes
obj_id Array 云主机 ID Yes

Response Elements

Name Type Description
message String 执行结果信息
code Integer HTTP Resonpe响应状态码

Example

Example Request:

Request Headers:

POST /api/ HTTP/1.1
Origin: https://console.plcloud.com
X-CSRFToken: 6An6xEuOJqW6dVDtlgzZr6FqgkSbJmqp
Content-Type: application/json

JSON Data:

{
  "action": "DeleteInstance",
  "obj_id": [
    "568c45bf-bed9-424f-a68a-4fe475fde363"
  ]
}

Example Response:

{
  "message": "成功",
  "code": 200
}