ByCloud Docs
GuidesCLIAPISDK
post/v1/instances/{instance_id}/reboot

Reboot instance

Reboot an instance (soft or hard)

Path Parameters

instance_id

string<uuid>required

path

Instance ID

Example: "550e8400-e29b-41d4-a716-446655440000"

Request Body

optional

Content-Type: application/json

type

stringoptional

Reboot type

Enum: "SOFT", "HARD"

Default: "SOFT"

Responses

202

Request accepted, processing asynchronously

Content-Type: application/json

message

stringoptional
401

Authentication required or token invalid

Content-Type: application/json

error

objectrequired
404

Resource not found

Content-Type: application/json

error

objectrequired
409

Instance is not in a rebootable state

Content-Type: application/json

error

objectrequired
500

Internal server error

Content-Type: application/json

error

objectrequired
curl -X POST "https://api.spo1.mycloud.com/v1/instances/550e8400-e29b-41d4-a716-446655440000/reboot" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"type": "SOFT"
}'