Instances API reference¶
See https://docs.openstack.org/api-ref/compute/.
In these methods, {server_id}
is the ID of the instance, {attachment_id}
is the ID of the volume attachment, and the request bodies contain the necessary information for the specific actions, such as starting, stopping, resizing, and managing snapshots and volumes for instances.
List instances¶
Show instance details¶
Create an instance¶
Request body
JSON
{
"server": {
"name": "Instance Name",
"flavorRef": "Flavor ID or Name",
"imageRef": "Image ID or Name",
"networks": [{"uuid": "Network ID or Name"}]
}
}
Delete an instance¶
Start an instance¶
Request body
Stop an instance¶
Request body
Reboot an instance¶
Request body
Resize an instance¶
Request body
Confirm resize¶
Request body
Revert resize¶
Request body
Create an image snapshot of an instance¶
Request body
Attach a volume to an instance¶
Request body:
Detach a volume from an instance¶
Associate a floating IP with an instance¶
Request body
Disassociate a floating IP from an instance¶
Request body