-
Notifications
You must be signed in to change notification settings - Fork 3
delete_hosts
Alberto Gonzalez edited this page Jun 19, 2017
·
1 revision
Deletes an entry from /etc/hosts by name.
DELETE /api/hosts/{hostName}/?sid={sid}
Host: <server host name>
Accept: application/json
AuthToken: <authentication token returned from authenticate>
| Name | Description | Required |
|---|---|---|
| name | name of the host to remove | Yes |
| sid | System ID | Optional |
Status code, Status string
DELETE /api/hosts/my-win-server/?sid=2
Host: <server host name>
Accept: application/json
AuthToken: 8a00sjerhterqerjlqkjlk443l4j56869h4f_)(fjdkasHHHHHkdal324
200 Success
Failed host deletion from /etc/hosts will return HTTP Status 500 with a result object with an error message and KB link.