Compute service API reference¶
See https://docs.openstack.org/api-ref/compute/.
These methods allow you to perform various operations on compute resources, such as managing flavors, images, and instances (servers), as well as controlling the lifecycle and configuration of instances. The {server_id}
, {flavor_id}
, {image_id}
, and {snapshot_name}
in the URLs and request bodies are placeholders that should be replaced with the actual IDs or names of the resources.
List flavors¶
Show flavor details¶
List images¶
Show image details¶
List servers (instances)¶
Show server details¶
Create a server¶
Delete a server¶
Start a server¶
Stop a server¶
Reboot a server¶
Bash
POST /servers/{server_id}/action with {"reboot": {"type": "SOFT" or "HARD"}} in the request body
Resize a server¶
Bash
POST /servers/{server_id}/action with {"resize": {"flavorRef": "{flavor_id}"}} in the request body
Confirm resize¶
Revert resize¶
List server addresses¶
Show server console output¶
Bash
POST /servers/{server_id}/action with {"os-getConsoleOutput": {"length": "{num_lines}"}} in the request body