When this API is called, it must reserve the specified host and update the tag in the host information to indicate the 'reserved' status for the host.

A host might need to be reserved to ensure that it is not consumed by any other process, when the host is being imaged, for example.

If the reserved host needs to be released, the caller can call the release_host API and release the host back to the pool.

Procedure

The following POST API will be sent to the server and the host ID will be sent in the body of the request.
POST 'Content-Type: application/json' https://{{server_ip}}:9443/api/v1/reserve_host/
{
    "hostId": "c27f33ac-8507-46ab-bb8d-43d80dac3f6b"
 }
A successful call to the API must return a status of 201 OK and the isReserved tag is set to true.