Chapter 2. API operations

MethodURIDescription
Servers
Server addresses
GET/v2/{tenant_id}/servers/{server_id}/ips

Lists networks and addresses for a specified tenant and server.

GET/v2/{tenant_id}/servers/{server_id}/ips/{network_label}

Lists addresses for a specified tenant, server, and network.

Server actions
POST/v2/{tenant_id}/servers/{server_id}/action

Changes the password for a server. Specify the changePassword action in the request body.

POST/v2/{tenant_id}/servers/{server_id}/action

Reboots the specified server. Specify the reboot action in the request body.

POST/v2/{tenant_id}/servers/{server_id}/action

Rebuilds the specified server. Specify the rebuild action in the request body.

POST/v2/{tenant_id}/servers/{server_id}/action

Resizes the specified server. Specify the resize action in the request body.

POST/v2/{tenant_id}/servers/{server_id}/action

Confirms a pending resize action. Specify the confirmResize action in the request body.

POST/v2/{tenant_id}/servers/{server_id}/action

Cancels and reverts a pending resize action. Specify the revertResize action in the request body.

POST/v2/{tenant_id}/servers/{server_id}/action

Creates a new image. Specify the createImage action in the request body.

Flavors
GET/v2/flavors/detail​{?changes-since,​minDisk,​minRam,​marker,​limit}

Lists all details for available flavors.

GET/v2/flavors/{flavor_id}

Gets details for a specified flavor.

Images
GET/v2/images/detail​{?changes-since,​server,​name,​status,​marker,​limit,​type}

Lists all details for available images.

GET/v2/images/{image_id}

Gets details for a specified image.

DELETE/v2/images/{image_id}

Deletes a specified image.

Metadata
GET/v2/{tenant_id}/servers/{server_id}/metadata

Shows metadata for a specified server.

PUT/v2/{tenant_id}/servers/{server_id}/metadata

Creates or replaces metadata for a specified server.

POST/v2/{tenant_id}/servers/{server_id}/metadata

Updates metadata items by key for a specified server.

GET/v2/{tenant_id}/servers/{server_id}/metadata/{key}

Shows details for a metadata item by key for a specified server.

PUT/v2/{tenant_id}/servers/{server_id}/metadata/{key}

Sets a metadata item by key for a specified server.

DELETE/v2/{tenant_id}/servers/{server_id}/metadata/{key}

Deletes a metadata item by key for a specified server.

GET/v2/images/{image_id}/metadata

Shows metadata for a specified image.

PUT/v2/images/{image_id}/metadata

Creates or replaces metadata for a specified image.

POST/v2/images/{image_id}/metadata

Updates metadata items by key for a specified image.

GET/v2/images/{image_id}/metadata/{key}

Shows details for a metadata item by key for a specified image.

PUT/v2/images/{image_id}/metadata/{key}

Creates or updates a metadata item by key for a specified image.

DELETE/v2/images/{image_id}/metadata/{key}

Deletes a metadata item by key for a specified image.

Networks
Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page


loading table of contents...