Python
Instances
Execute instance action
The action can be one of: start, stop, reboot, reboot_hard, suspend or resume.
Suspend and resume are not available for bare metal instances.
POST
Python
Authorizations
API key for authentication. Make sure to include the word apikey, followed by a single space and then your token.
Example: apikey 1234_abcdef
Path Parameters
Project ID
Example:
1
Region ID
Example:
1
Instance ID
Example:
"b5b4d65d-945f-4b98-ab6f-332319c724ef"
Body
application/json
Response
200 - application/json
List of created tasks
List of task IDs representing asynchronous operations. Use these IDs to monitor operation progress:
GET /v1/tasks/{task_id}- Check individual task status and details Poll task status until completion (FINISHED/ERROR) before proceeding with dependent operations.
Example: