Delete a host

2023-08-15 11:20:54  Updated

Description

You can call this operation to delete a host.

Call description

Prerequisite

You have the HOST_MANAGER permissions.

Request path

DELETE /api/v2/compute/hosts/{hostId}

Request parameters

Parameter Type Required Example value Description
hostId Long Yes 100 The ID of the host.

Response parameters

Parameter Type Description
successful Boolean Indicates whether the request was successful.
timestamp Datetime The timestamp when the server completed the request.
duration Integer The time taken by the server to process the request, in milliseconds.
status Integer An HTTP status code.
traceId String The trace ID of the request. This trace ID is used for troubleshooting.
server String The address of the application server that responded to the request.

Examples

Sample request

DELETE /api/v2/compute/hosts/100

Sample response

{
  "duration": 41,
  "server": "192.168.0.1",
  "status": 200,
  "successful": true,
  "timestamp": "2021-08-25T16:00:19.895+08:00",
  "traceId": "c8e610e3b33a4b17"
}

Contact Us