cURL
curl --request PATCH \ --url https://controller.platform.simplecloud.app/v0/serverhosts/deactivate \ --header 'Content-Type: application/json' \ --header 'X-Network-ID: <x-network-id>' \ --header 'X-Network-Secret: <x-network-secret>' \ --data '{}'
{ "deactivated": true, "deactivated_at": "2023-01-01T12:00:00Z", "host_name": "ServerHost-1", "message": "Serverhost deactivated successfully", "serverhost_id": "123e4567-e89b-12d3-a456-426614174000" }
Deactivate or reactivate a serverhost to prevent/allow new server allocations
Network ID
Network Secret
Serverhost ID
Deactivation status
The body is of type object.
object
OK
Response for serverhost deactivation operation
true
"2023-01-01T12:00:00Z"
"ServerHost-1"
"Serverhost deactivated successfully"
"123e4567-e89b-12d3-a456-426614174000"
Was this page helpful?