Default
Lists information about all known API versions in the deployment. This endpoint does not require authentication.
OpenStack Keystone token authentication
Successful response
GET /compute/v2.1/ HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
{
"versions": [
{
"id": "text",
"status": "CURRENT",
"version": "text",
"min_version": "text",
"updated": "2025-11-28T20:23:32.263Z",
"links": [
{
"href": "https://example.com",
"rel": "self",
"type": "text"
}
]
}
]
}Lists IDs, names, and links for servers. By default, servers are filtered using the project ID associated with the authenticated request.
OpenStack Keystone token authentication
Filters the response by a date and time stamp when the server last changed status. Format: CCYY-MM-DDThh:mm:ss±hh:mm
Filters the response by a flavor UUID
Filters the response by an image UUID
An IPv4 address to filter results by
An IPv6 address to filter results by
Filters the response by a server name
A reservation id as returned by a servers multiple create call
Filters the response by a server status
A list of tags to filter the server list by. Servers that match all tags in this list will be returned. Tags must be separated by comma.
A list of tags to filter the server list by. Servers that match any tag in this list will be returned. Tags must be separated by comma.
A list of tags to filter the server list by. Servers that don't match all tags in this list will be returned. Tags must be separated by comma.
A list of tags to filter the server list by. Servers that don't match any tags in this list will be returned. Tags must be separated by comma.
Requests a page size of items
The ID of the last-seen item for pagination
Sorts by a server attribute
created_atPossible values: Sort direction
descPossible values: Filters the response by a date and time stamp when the server last changed. Format: CCYY-MM-DDThh:mm:ss±hh:mm
Specify the locked status to filter servers
Filter the server list result by server availability zone
Filter the server list result by the config drive setting
Filter the server list result by keypair name
Filter the server list result by a date and time stamp when server was created. Format: CCYY-MM-DDThh:mm:ss±hh:mm
Filter the server list result by a date and time stamp when the instance was launched. Format: CCYY-MM-DDThh:mm:ss±hh:mm
Filter the server list result by a date and time stamp when instance was terminated. Format: CCYY-MM-DDThh:mm:ss±hh:mm
Filter the list of servers by the given user ID
Filter the server list result by server power state
Filter the server list result by task state
Filter the server list result by vm state
Filter the server list result by the progress of the server (0-100)
Filter the server list result by the host name of server
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Successful response
Bad Request
Unauthorized
Forbidden
GET /compute/v2.1/servers HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"servers": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"links": [
{
"href": "https://example.com",
"rel": "self",
"type": "text"
}
]
}
],
"servers_links": [
{
"href": "https://example.com",
"rel": "self",
"type": "text"
}
]
}Creates a server. The progress of this operation depends on various factors including image location, network I/O, host load, and selected flavor.
OpenStack Keystone token authentication
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Server creation accepted
Bad Request
Unauthorized
Forbidden
Not Found
Conflict
POST /compute/v2.1/servers HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 1239
{
"server": {
"name": "text",
"imageRef": "123e4567-e89b-12d3-a456-426614174000",
"flavorRef": "text",
"adminPass": "text",
"networks": "auto",
"block_device_mapping_v2": [
{
"boot_index": 1,
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"source_type": "volume",
"destination_type": "volume",
"delete_on_termination": false,
"device_name": "text",
"device_type": "disk",
"disk_bus": "ide",
"guest_format": "text",
"no_device": true,
"volume_size": 1,
"tag": "text",
"volume_type": "text"
}
],
"availability_zone": "text",
"user_data": "Ynl0ZXM=",
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"personality": [
{
"path": "text",
"contents": "Ynl0ZXM="
}
],
"security_groups": [
{
"name": "text"
}
],
"key_name": "text",
"config_drive": true,
"OS-DCF:diskConfig": "AUTO",
"accessIPv4": "0.0.0.0",
"accessIPv6": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
"description": "text",
"hostname": "text",
"tags": [
"text"
],
"trusted_image_certificates": [
"123e4567-e89b-12d3-a456-426614174000"
],
"host": "text",
"hypervisor_hostname": "text"
},
"OS-SCH-HNT:scheduler_hints": {
"build_near_host_ip": "0.0.0.0",
"cidr": "text",
"different_cell": "text",
"different_host": "123e4567-e89b-12d3-a456-426614174000",
"group": "123e4567-e89b-12d3-a456-426614174000",
"query": "text",
"same_host": "123e4567-e89b-12d3-a456-426614174000",
"target_cell": "text"
}
}{
"server": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"links": [
{
"href": "https://example.com",
"rel": "self",
"type": "text"
}
],
"OS-DCF:diskConfig": "AUTO",
"adminPass": "text",
"security_groups": [
{
"name": "text"
}
]
}
}For each server, shows server details including config drive, extended status, and server usage information.
OpenStack Keystone token authentication
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Successful response
Bad Request
Unauthorized
Forbidden
GET /compute/v2.1/servers/detail HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"servers": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"links": [
{
"href": "https://example.com",
"rel": "self",
"type": "text"
}
],
"accessIPv4": "0.0.0.0",
"accessIPv6": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
"addresses": {
"ANY_ADDITIONAL_PROPERTY": [
{
"addr": "text",
"version": 4,
"OS-EXT-IPS:type": "fixed",
"OS-EXT-IPS-MAC:mac_addr": "text"
}
]
},
"config_drive": "text",
"created": "2025-11-28T20:23:32.263Z",
"flavor": {
"id": "text",
"links": [
{
"href": "https://example.com",
"rel": "self",
"type": "text"
}
]
},
"hostId": "text",
"image": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"links": [
{
"href": "https://example.com",
"rel": "self",
"type": "text"
}
],
"properties": {}
},
"key_name": "text",
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"status": "ACTIVE",
"tenant_id": "123e4567-e89b-12d3-a456-426614174000",
"user_id": "123e4567-e89b-12d3-a456-426614174000",
"updated": "2025-11-28T20:23:32.263Z",
"OS-DCF:diskConfig": "AUTO",
"OS-EXT-AZ:availability_zone": "text",
"OS-EXT-SRV-ATTR:host": "text",
"OS-EXT-SRV-ATTR:hostname": "text",
"OS-EXT-SRV-ATTR:hypervisor_hostname": "text",
"OS-EXT-SRV-ATTR:instance_name": "text",
"OS-EXT-SRV-ATTR:kernel_id": "text",
"OS-EXT-SRV-ATTR:launch_index": 1,
"OS-EXT-SRV-ATTR:ramdisk_id": "text",
"OS-EXT-SRV-ATTR:reservation_id": "text",
"OS-EXT-SRV-ATTR:root_device_name": "text",
"OS-EXT-SRV-ATTR:user_data": "text",
"OS-EXT-STS:power_state": 0,
"OS-EXT-STS:task_state": "text",
"OS-EXT-STS:vm_state": "text",
"os-extended-volumes:volumes_attached": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"delete_on_termination": true
}
],
"OS-SRV-USG:launched_at": "2025-11-28T20:23:32.263Z",
"OS-SRV-USG:terminated_at": "2025-11-28T20:23:32.263Z",
"fault": {
"code": 1,
"message": "text",
"details": "text",
"created": "2025-11-28T20:23:32.263Z"
},
"locked": true,
"locked_reason": "text",
"host_status": "UP",
"description": "text",
"tags": [
"text"
],
"trusted_image_certificates": [
"123e4567-e89b-12d3-a456-426614174000"
],
"progress": 1,
"security_groups": [
{
"name": "text"
}
],
"pinned_availability_zone": "text",
"scheduler_hints": {}
}
],
"servers_links": [
{
"href": "https://example.com",
"rel": "self",
"type": "text"
}
]
}Shows details for a server, including configuration drive, extended status, and server usage information.
OpenStack Keystone token authentication
The UUID of the server
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Successful response
Unauthorized
Forbidden
Not Found
GET /compute/v2.1/servers/{server_id} HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"server": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"links": [
{
"href": "https://example.com",
"rel": "self",
"type": "text"
}
],
"accessIPv4": "0.0.0.0",
"accessIPv6": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
"addresses": {
"ANY_ADDITIONAL_PROPERTY": [
{
"addr": "text",
"version": 4,
"OS-EXT-IPS:type": "fixed",
"OS-EXT-IPS-MAC:mac_addr": "text"
}
]
},
"config_drive": "text",
"created": "2025-11-28T20:23:32.263Z",
"flavor": {
"id": "text",
"links": [
{
"href": "https://example.com",
"rel": "self",
"type": "text"
}
]
},
"hostId": "text",
"image": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"links": [
{
"href": "https://example.com",
"rel": "self",
"type": "text"
}
],
"properties": {}
},
"key_name": "text",
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"status": "ACTIVE",
"tenant_id": "123e4567-e89b-12d3-a456-426614174000",
"user_id": "123e4567-e89b-12d3-a456-426614174000",
"updated": "2025-11-28T20:23:32.263Z",
"OS-DCF:diskConfig": "AUTO",
"OS-EXT-AZ:availability_zone": "text",
"OS-EXT-SRV-ATTR:host": "text",
"OS-EXT-SRV-ATTR:hostname": "text",
"OS-EXT-SRV-ATTR:hypervisor_hostname": "text",
"OS-EXT-SRV-ATTR:instance_name": "text",
"OS-EXT-SRV-ATTR:kernel_id": "text",
"OS-EXT-SRV-ATTR:launch_index": 1,
"OS-EXT-SRV-ATTR:ramdisk_id": "text",
"OS-EXT-SRV-ATTR:reservation_id": "text",
"OS-EXT-SRV-ATTR:root_device_name": "text",
"OS-EXT-SRV-ATTR:user_data": "text",
"OS-EXT-STS:power_state": 0,
"OS-EXT-STS:task_state": "text",
"OS-EXT-STS:vm_state": "text",
"os-extended-volumes:volumes_attached": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"delete_on_termination": true
}
],
"OS-SRV-USG:launched_at": "2025-11-28T20:23:32.263Z",
"OS-SRV-USG:terminated_at": "2025-11-28T20:23:32.263Z",
"fault": {
"code": 1,
"message": "text",
"details": "text",
"created": "2025-11-28T20:23:32.263Z"
},
"locked": true,
"locked_reason": "text",
"host_status": "UP",
"description": "text",
"tags": [
"text"
],
"trusted_image_certificates": [
"123e4567-e89b-12d3-a456-426614174000"
],
"progress": 1,
"security_groups": [
{
"name": "text"
}
],
"pinned_availability_zone": "text",
"scheduler_hints": {}
}
}Updates the editable attributes of a server
OpenStack Keystone token authentication
The UUID of the server
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Successful response
Bad Request
Unauthorized
Forbidden
Not Found
PUT /compute/v2.1/servers/{server_id} HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 143
{
"server": {
"name": "text",
"description": "text",
"hostname": "text",
"accessIPv4": "0.0.0.0",
"accessIPv6": "2001:0db8:85a3:0000:0000:8a2e:0370:7334"
}
}{
"server": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"links": [
{
"href": "https://example.com",
"rel": "self",
"type": "text"
}
],
"accessIPv4": "0.0.0.0",
"accessIPv6": "2001:0db8:85a3:0000:0000:8a2e:0370:7334",
"addresses": {
"ANY_ADDITIONAL_PROPERTY": [
{
"addr": "text",
"version": 4,
"OS-EXT-IPS:type": "fixed",
"OS-EXT-IPS-MAC:mac_addr": "text"
}
]
},
"config_drive": "text",
"created": "2025-11-28T20:23:32.263Z",
"flavor": {
"id": "text",
"links": [
{
"href": "https://example.com",
"rel": "self",
"type": "text"
}
]
},
"hostId": "text",
"image": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"links": [
{
"href": "https://example.com",
"rel": "self",
"type": "text"
}
],
"properties": {}
},
"key_name": "text",
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"status": "ACTIVE",
"tenant_id": "123e4567-e89b-12d3-a456-426614174000",
"user_id": "123e4567-e89b-12d3-a456-426614174000",
"updated": "2025-11-28T20:23:32.263Z",
"OS-DCF:diskConfig": "AUTO",
"OS-EXT-AZ:availability_zone": "text",
"OS-EXT-SRV-ATTR:host": "text",
"OS-EXT-SRV-ATTR:hostname": "text",
"OS-EXT-SRV-ATTR:hypervisor_hostname": "text",
"OS-EXT-SRV-ATTR:instance_name": "text",
"OS-EXT-SRV-ATTR:kernel_id": "text",
"OS-EXT-SRV-ATTR:launch_index": 1,
"OS-EXT-SRV-ATTR:ramdisk_id": "text",
"OS-EXT-SRV-ATTR:reservation_id": "text",
"OS-EXT-SRV-ATTR:root_device_name": "text",
"OS-EXT-SRV-ATTR:user_data": "text",
"OS-EXT-STS:power_state": 0,
"OS-EXT-STS:task_state": "text",
"OS-EXT-STS:vm_state": "text",
"os-extended-volumes:volumes_attached": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"delete_on_termination": true
}
],
"OS-SRV-USG:launched_at": "2025-11-28T20:23:32.263Z",
"OS-SRV-USG:terminated_at": "2025-11-28T20:23:32.263Z",
"fault": {
"code": 1,
"message": "text",
"details": "text",
"created": "2025-11-28T20:23:32.263Z"
},
"locked": true,
"locked_reason": "text",
"host_status": "UP",
"description": "text",
"tags": [
"text"
],
"trusted_image_certificates": [
"123e4567-e89b-12d3-a456-426614174000"
],
"progress": 1,
"security_groups": [
{
"name": "text"
}
],
"pinned_availability_zone": "text",
"scheduler_hints": {}
}
}Deletes a server
OpenStack Keystone token authentication
The UUID of the server
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Server deleted successfully
Unauthorized
Forbidden
Not Found
Conflict
DELETE /compute/v2.1/servers/{server_id} HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Lists all metadata for a server
OpenStack Keystone token authentication
The UUID of the server
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Successful response
GET /compute/v2.1/servers/{server_id}/metadata HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
{
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}Updates metadata for a server, merging with existing metadata
OpenStack Keystone token authentication
The UUID of the server
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Successful response
POST /compute/v2.1/servers/{server_id}/metadata HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 47
{
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}Successful response
{
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}Sets metadata for a server, replacing all existing metadata
OpenStack Keystone token authentication
The UUID of the server
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Successful response
PUT /compute/v2.1/servers/{server_id}/metadata HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 47
{
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}Successful response
{
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}Gets a specific metadata item for a server
OpenStack Keystone token authentication
The UUID of the server
The metadata key
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Successful response
GET /compute/v2.1/servers/{server_id}/metadata/{key} HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
{
"meta": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}Sets a specific metadata item for a server
OpenStack Keystone token authentication
The UUID of the server
The metadata key
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Successful response
PUT /compute/v2.1/servers/{server_id}/metadata/{key} HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 43
{
"meta": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}Successful response
{
"meta": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}Deletes a specific metadata item from a server
OpenStack Keystone token authentication
The UUID of the server
The metadata key
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Metadata item deleted successfully
DELETE /compute/v2.1/servers/{server_id}/metadata/{key} HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Metadata item deleted successfully
No content
Lists all tags for a server
OpenStack Keystone token authentication
The UUID of the server
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Successful response
GET /compute/v2.1/servers/{server_id}/tags HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
{
"tags": [
"text"
]
}Replaces all tags for a server
OpenStack Keystone token authentication
The UUID of the server
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Successful response
PUT /compute/v2.1/servers/{server_id}/tags HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 17
{
"tags": [
"text"
]
}Successful response
{
"tags": [
"text"
]
}Deletes all tags from a server
OpenStack Keystone token authentication
The UUID of the server
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+All tags deleted successfully
DELETE /compute/v2.1/servers/{server_id}/tags HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
All tags deleted successfully
No content
Checks if a tag exists on a server
OpenStack Keystone token authentication
The UUID of the server
The tag to add or remove
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Tag exists
Not Found
GET /compute/v2.1/servers/{server_id}/tags/{tag} HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Adds a single tag to a server
OpenStack Keystone token authentication
The UUID of the server
The tag to add or remove
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Tag added successfully
Tag already exists
PUT /compute/v2.1/servers/{server_id}/tags/{tag} HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Deletes a single tag from a server
OpenStack Keystone token authentication
The UUID of the server
The tag to add or remove
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Tag deleted successfully
DELETE /compute/v2.1/servers/{server_id}/tags/{tag} HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Tag deleted successfully
No content
Lists flavors with details
OpenStack Keystone token authentication
Requests a page size of items
The ID of the last-seen item for pagination
Sorts by a flavor attribute
created_atPossible values: Sort direction
ascPossible values: Filters the response by a minimum disk space in GiB
Filters the response by a minimum RAM in MiB
Filters the response by whether the flavor is public or private
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Successful response
GET /compute/v2.1/flavors HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
{
"flavors": [
{
"id": "text",
"name": "text",
"links": [
{
"href": "https://example.com",
"rel": "self",
"type": "text"
}
]
}
]
}Lists flavors with full details
OpenStack Keystone token authentication
created_atPossible values: ascPossible values: Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Successful response
GET /compute/v2.1/flavors/detail HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
{
"flavors": [
{
"id": "text",
"name": "text",
"links": [
{
"href": "https://example.com",
"rel": "self",
"type": "text"
}
],
"disk": 1,
"ephemeral": 1,
"ram": 1,
"swap": 1,
"vcpus": 1,
"original_name": "text",
"extra_specs": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"OS-FLV-DISABLED:disabled": true,
"OS-FLV-EXT-DATA:ephemeral": 1,
"os-flavor-access:is_public": true,
"rxtx_factor": 1
}
]
}Shows details for a flavor
OpenStack Keystone token authentication
The UUID or name of the flavor
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Successful response
Not Found
GET /compute/v2.1/flavors/{flavor_id} HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"flavor": {
"id": "text",
"name": "text",
"links": [
{
"href": "https://example.com",
"rel": "self",
"type": "text"
}
],
"disk": 1,
"ephemeral": 1,
"ram": 1,
"swap": 1,
"vcpus": 1,
"original_name": "text",
"extra_specs": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"OS-FLV-DISABLED:disabled": true,
"OS-FLV-EXT-DATA:ephemeral": 1,
"os-flavor-access:is_public": true,
"rxtx_factor": 1
}
}Lists keypairs that are associated with the project
OpenStack Keystone token authentication
Filter the list by user ID (admin only)
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Successful response
GET /compute/v2.1/os-keypairs HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
{
"keypairs": [
{
"keypair": {
"name": "text",
"type": "ssh",
"public_key": "text",
"fingerprint": "text"
}
}
]
}Creates or imports a keypair
OpenStack Keystone token authentication
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Keypair created successfully
POST /compute/v2.1/os-keypairs HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 109
{
"keypair": {
"name": "text",
"type": "ssh",
"public_key": "text",
"user_id": "123e4567-e89b-12d3-a456-426614174000"
}
}Keypair created successfully
{
"keypair": {
"keypair": {
"user_id": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2025-11-28T20:23:32.263Z",
"deleted": true,
"deleted_at": "2025-11-28T20:23:32.263Z",
"id": 1,
"is_deleted": true,
"updated_at": "2025-11-28T20:23:32.263Z"
}
}
}Shows details for a keypair
OpenStack Keystone token authentication
The name of the keypair
User ID for the keypair (admin only)
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Successful response
GET /compute/v2.1/os-keypairs/{keypair_name} HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
{
"keypair": {
"keypair": {
"user_id": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2025-11-28T20:23:32.263Z",
"deleted": true,
"deleted_at": "2025-11-28T20:23:32.263Z",
"id": 1,
"is_deleted": true,
"updated_at": "2025-11-28T20:23:32.263Z"
}
}
}Deletes a keypair
OpenStack Keystone token authentication
The name of the keypair
User ID for the keypair (admin only)
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Keypair deletion accepted (for backward compatibility)
Keypair deleted successfully
DELETE /compute/v2.1/os-keypairs/{keypair_name} HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Shows rate and absolute limits for the project
OpenStack Keystone token authentication
Project ID to get limits for (admin only)
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Successful response
GET /compute/v2.1/limits HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
{
"limits": {
"rate": [
{
"uri": "text",
"regex": "text",
"limit": [
{
"value": 1,
"verb": "text",
"remaining": 1,
"unit": "text",
"next-available": "2025-11-28T20:23:32.263Z"
}
]
}
],
"absolute": {
"maxServerMeta": 1,
"maxTotalInstances": 1,
"maxTotalCores": 1,
"maxTotalRAMSize": 1,
"maxTotalKeypairs": 1,
"maxServerGroups": 1,
"maxServerGroupMembers": 1,
"totalInstancesUsed": 1,
"totalCoresUsed": 1,
"totalRAMUsed": 1,
"totalServerGroupsUsed": 1
}
}
}Lists availability zones
OpenStack Keystone token authentication
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Successful response
GET /compute/v2.1/os-availability-zone HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
{
"availabilityZoneInfo": [
{
"zoneName": "text",
"zoneState": {
"available": true
}
}
]
}Lists availability zones with detailed information (admin only)
OpenStack Keystone token authentication
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Successful response
GET /compute/v2.1/os-availability-zone/detail HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
{
"availabilityZoneInfo": [
{
"zoneName": "text",
"zoneState": {
"available": true
},
"hosts": {
"ANY_ADDITIONAL_PROPERTY": {
"ANY_ADDITIONAL_PROPERTY": {
"available": true,
"active": true,
"updated_at": "2025-11-28T20:23:32.263Z"
}
}
}
}
]
}Lists hypervisors (admin only)
OpenStack Keystone token authentication
Filter hypervisors by hostname pattern
Include servers running on each hypervisor
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Successful response
GET /compute/v2.1/os-hypervisors HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
{
"hypervisors": [
{
"id": "text",
"hypervisor_hostname": "text",
"links": [
{
"href": "https://example.com",
"rel": "self",
"type": "text"
}
]
}
]
}Lists hypervisors with detailed information (admin only)
OpenStack Keystone token authentication
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Successful response
GET /compute/v2.1/os-hypervisors/detail HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
{
"hypervisors": [
{
"id": "text",
"hypervisor_hostname": "text",
"links": [
{
"href": "https://example.com",
"rel": "self",
"type": "text"
}
],
"status": "enabled",
"state": "up",
"host_ip": "0.0.0.0",
"free_disk_gb": 1,
"free_ram_mb": 1,
"hypervisor_type": "text",
"hypervisor_version": 1,
"local_gb": 1,
"local_gb_used": 1,
"memory_mb": 1,
"memory_mb_used": 1,
"running_vms": 1,
"vcpus": 1,
"vcpus_used": 1,
"cpu_info": {},
"disk_available_least": 1,
"service": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"binary": "text",
"host": "text",
"zone": "text",
"status": "enabled",
"state": "up",
"updated_at": "2025-11-28T20:23:32.263Z",
"disabled_reason": "text",
"forced_down": true
},
"servers": [
{
"name": "text",
"uuid": "123e4567-e89b-12d3-a456-426614174000"
}
]
}
]
}Shows details for a hypervisor (admin only)
OpenStack Keystone token authentication
The ID or UUID of the hypervisor
Include servers running on the hypervisor
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Successful response
GET /compute/v2.1/os-hypervisors/{hypervisor_id} HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
{
"hypervisor": {
"id": "text",
"hypervisor_hostname": "text",
"links": [
{
"href": "https://example.com",
"rel": "self",
"type": "text"
}
],
"status": "enabled",
"state": "up",
"host_ip": "0.0.0.0",
"free_disk_gb": 1,
"free_ram_mb": 1,
"hypervisor_type": "text",
"hypervisor_version": 1,
"local_gb": 1,
"local_gb_used": 1,
"memory_mb": 1,
"memory_mb_used": 1,
"running_vms": 1,
"vcpus": 1,
"vcpus_used": 1,
"cpu_info": {},
"disk_available_least": 1,
"service": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"binary": "text",
"host": "text",
"zone": "text",
"status": "enabled",
"state": "up",
"updated_at": "2025-11-28T20:23:32.263Z",
"disabled_reason": "text",
"forced_down": true
},
"servers": [
{
"name": "text",
"uuid": "123e4567-e89b-12d3-a456-426614174000"
}
]
}
}Shows uptime for a hypervisor (admin only)
OpenStack Keystone token authentication
The ID or UUID of the hypervisor
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Successful response
GET /compute/v2.1/os-hypervisors/{hypervisor_id}/uptime HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
{
"hypervisor": {
"id": "text",
"hypervisor_hostname": "text",
"uptime": "text"
}
}Lists services (admin only)
OpenStack Keystone token authentication
Filter services by host name
Filter services by binary name
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Successful response
GET /compute/v2.1/os-services HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
{
"services": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"binary": "text",
"host": "text",
"zone": "text",
"status": "enabled",
"state": "up",
"updated_at": "2025-11-28T20:23:32.263Z",
"disabled_reason": "text",
"forced_down": true
}
]
}Updates a service (admin only)
OpenStack Keystone token authentication
The UUID of the service
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Service updated successfully
PUT /compute/v2.1/os-services/{service_id} HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 45
{
"status": "enabled",
"disabled_reason": "text"
}Service updated successfully
{
"service": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"binary": "text",
"host": "text",
"zone": "text",
"status": "enabled",
"state": "up",
"updated_at": "2025-11-28T20:23:32.263Z",
"disabled_reason": "text",
"forced_down": true
}
}Deletes a service (admin only)
OpenStack Keystone token authentication
The UUID of the service
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Service deleted successfully
DELETE /compute/v2.1/os-services/{service_id} HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Service deleted successfully
No content
Lists host aggregates (admin only)
OpenStack Keystone token authentication
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Successful response
GET /compute/v2.1/os-aggregates HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
{
"aggregates": [
{
"id": "text",
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"availability_zone": "text",
"hosts": [
"text"
],
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"created_at": "2025-11-28T20:23:32.263Z",
"updated_at": "2025-11-28T20:23:32.263Z",
"deleted_at": "2025-11-28T20:23:32.263Z",
"deleted": true
}
]
}Creates a host aggregate (admin only)
OpenStack Keystone token authentication
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Aggregate created successfully
POST /compute/v2.1/os-aggregates HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 56
{
"aggregate": {
"name": "text",
"availability_zone": "text"
}
}Aggregate created successfully
{
"aggregate": {
"id": "text",
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"availability_zone": "text",
"hosts": [
"text"
],
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"created_at": "2025-11-28T20:23:32.263Z",
"updated_at": "2025-11-28T20:23:32.263Z",
"deleted_at": "2025-11-28T20:23:32.263Z",
"deleted": true
}
}Shows details for a host aggregate (admin only)
OpenStack Keystone token authentication
The ID of the aggregate
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Successful response
GET /compute/v2.1/os-aggregates/{aggregate_id} HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
{
"aggregate": {
"id": "text",
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"availability_zone": "text",
"hosts": [
"text"
],
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"created_at": "2025-11-28T20:23:32.263Z",
"updated_at": "2025-11-28T20:23:32.263Z",
"deleted_at": "2025-11-28T20:23:32.263Z",
"deleted": true
}
}Updates a host aggregate (admin only)
OpenStack Keystone token authentication
The ID of the aggregate
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Aggregate updated successfully
PUT /compute/v2.1/os-aggregates/{aggregate_id} HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 56
{
"aggregate": {
"name": "text",
"availability_zone": "text"
}
}Aggregate updated successfully
{
"aggregate": {
"id": "text",
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"availability_zone": "text",
"hosts": [
"text"
],
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"created_at": "2025-11-28T20:23:32.263Z",
"updated_at": "2025-11-28T20:23:32.263Z",
"deleted_at": "2025-11-28T20:23:32.263Z",
"deleted": true
}
}Deletes a host aggregate (admin only)
OpenStack Keystone token authentication
The ID of the aggregate
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Aggregate deleted successfully (for backward compatibility)
No content
DELETE /compute/v2.1/os-aggregates/{aggregate_id} HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Aggregate deleted successfully (for backward compatibility)
No content
Performs actions on a host aggregate (admin only)
OpenStack Keystone token authentication
The ID of the aggregate
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Action performed successfully
POST /compute/v2.1/os-aggregates/{aggregate_id}/action HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 28
{
"add_host": {
"host": "text"
}
}Action performed successfully
{
"aggregate": {
"id": "text",
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"availability_zone": "text",
"hosts": [
"text"
],
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"created_at": "2025-11-28T20:23:32.263Z",
"updated_at": "2025-11-28T20:23:32.263Z",
"deleted_at": "2025-11-28T20:23:32.263Z",
"deleted": true
}
}Lists server groups
OpenStack Keystone token authentication
Shows server groups for all projects (admin only)
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Successful response
GET /compute/v2.1/os-server-groups HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
{
"server_groups": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"policies": [
"anti-affinity"
],
"policy": "anti-affinity",
"rules": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"members": [
"123e4567-e89b-12d3-a456-426614174000"
],
"project_id": "123e4567-e89b-12d3-a456-426614174000",
"user_id": "123e4567-e89b-12d3-a456-426614174000"
}
]
}Creates a server group
OpenStack Keystone token authentication
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Server group created successfully
POST /compute/v2.1/os-server-groups HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 129
{
"server_group": {
"name": "text",
"policies": [
"anti-affinity"
],
"policy": "anti-affinity",
"rules": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}
}Server group created successfully
{
"server_group": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"policies": [
"anti-affinity"
],
"policy": "anti-affinity",
"rules": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"members": [
"123e4567-e89b-12d3-a456-426614174000"
],
"project_id": "123e4567-e89b-12d3-a456-426614174000",
"user_id": "123e4567-e89b-12d3-a456-426614174000"
}
}Shows details for a server group
OpenStack Keystone token authentication
The UUID of the server group
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Successful response
GET /compute/v2.1/os-server-groups/{server_group_id} HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
{
"server_group": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"policies": [
"anti-affinity"
],
"policy": "anti-affinity",
"rules": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"members": [
"123e4567-e89b-12d3-a456-426614174000"
],
"project_id": "123e4567-e89b-12d3-a456-426614174000",
"user_id": "123e4567-e89b-12d3-a456-426614174000"
}
}Deletes a server group
OpenStack Keystone token authentication
The UUID of the server group
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Server group deleted successfully
DELETE /compute/v2.1/os-server-groups/{server_group_id} HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Server group deleted successfully
No content
Shows quotas for a project
OpenStack Keystone token authentication
The UUID of the project
User ID to get quotas for (admin only)
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Successful response
GET /compute/v2.1/os-quota-sets/{project_id} HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
{
"quota_set": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"cores": 1,
"instances": 1,
"key_pairs": 1,
"metadata_items": 1,
"ram": 1,
"server_groups": 1,
"server_group_members": 1
}
}Updates quotas for a project (admin only)
OpenStack Keystone token authentication
The UUID of the project
User ID to update quotas for
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Quotas updated successfully
PUT /compute/v2.1/os-quota-sets/{project_id} HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 137
{
"quota_set": {
"cores": 1,
"instances": 1,
"key_pairs": 1,
"metadata_items": 1,
"ram": 1,
"server_groups": 1,
"server_group_members": 1,
"force": false
}
}Quotas updated successfully
{
"quota_set": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"cores": 1,
"instances": 1,
"key_pairs": 1,
"metadata_items": 1,
"ram": 1,
"server_groups": 1,
"server_group_members": 1
}
}Reverts quotas for a project to default values (admin only)
OpenStack Keystone token authentication
The UUID of the project
User ID to revert quotas for
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Quotas reverted successfully
DELETE /compute/v2.1/os-quota-sets/{project_id} HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Quotas reverted successfully
No content
Shows default quotas for a project
OpenStack Keystone token authentication
The UUID of the project
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Successful response
GET /compute/v2.1/os-quota-sets/{project_id}/defaults HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
{
"quota_set": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"cores": 1,
"instances": 1,
"key_pairs": 1,
"metadata_items": 1,
"ram": 1,
"server_groups": 1,
"server_group_members": 1
}
}Shows quotas for a project with usage information
OpenStack Keystone token authentication
The UUID of the project
User ID to get quotas for (admin only)
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Successful response
GET /compute/v2.1/os-quota-sets/{project_id}/detail HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Successful response
{
"quota_set": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"cores": {
"limit": 1,
"in_use": 1,
"reserved": 1
},
"instances": {
"limit": 1,
"in_use": 1,
"reserved": 1
},
"key_pairs": {
"limit": 1,
"in_use": 1,
"reserved": 1
},
"metadata_items": {
"limit": 1,
"in_use": 1,
"reserved": 1
},
"ram": {
"limit": 1,
"in_use": 1,
"reserved": 1
},
"server_groups": {
"limit": 1,
"in_use": 1,
"reserved": 1
},
"server_group_members": {
"limit": 1,
"in_use": 1,
"reserved": 1
}
}
}Performs various actions on a server such as reboot, rebuild, resize, etc.
OpenStack Keystone token authentication
The UUID of the server
Specifies the API microversion. Format: "compute X.Y" where X.Y is the microversion. If not specified, the minimum supported version (2.1) is used.
compute 2.96Pattern: ^compute \d+\.\d+Action performed successfully (may contain response data)
No content
Action accepted
Action performed successfully (no content)
Bad Request
Unauthorized
Forbidden
Not Found
Conflict
POST /compute/v2.1/servers/{server_id}/action HTTP/1.1
Host: pcd.example.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 26
{
"reboot": {
"type": "HARD"
}
}No content
Last updated
Was this helpful?
