Images
Creates, lists, shows, updates, deletes, and performs other operations on images
Lists public virtual machine (VM) images with pagination and filtering support
PCD Identity Service token authentication
Requests a page size of items
The ID of the last-seen item
Filters the response by a name
Filters the response by a project ID
Filters the response by the 'protected' image property
Filters the response by an image status
Filters the response by the specified tag value
Filters the response by an image visibility value
When true, filters the response to include only hidden images
Filters the response by a member status
Filters the response by a maximum image size, in bytes
Filters the response by a minimum image size, in bytes
Specify a comparison filter based on the date and time when the resource was created
Specify a comparison filter based on the date and time when the resource was most recently modified
Sorts the response by direction
Sorts the response by an attribute
Sorts the response by one or more attribute and sort direction combinations
Images retrieved successfully
URI for the first page of response
URI for the next page of response
URL for the schema describing a list of images
Bad Request
Unauthorized
Forbidden
GET /glance/v2/images HTTP/1.1
Host: example.platform9.com
X-Auth-Token: YOUR_API_KEY
Accept: */*
{
"images": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"status": "queued",
"visibility": "public",
"protected": true,
"tags": [
"text"
],
"container_format": "ami",
"disk_format": "ami",
"min_disk": 1,
"min_ram": 1,
"size": 1,
"virtual_size": 1,
"checksum": "text",
"os_hash_algo": "text",
"os_hash_value": "text",
"os_hidden": true,
"owner": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"self": "https://example.com",
"file": "https://example.com",
"schema": "https://example.com",
"direct_url": "https://example.com",
"locations": [
{
"url": "https://example.com",
"metadata": {}
}
],
"ANY_ADDITIONAL_PROPERTY": "text"
}
],
"first": "https://example.com",
"next": "https://example.com",
"schema": "https://example.com"
}Creates a catalog record for an operating system disk image
PCD Identity Service token authentication
A unique, user-defined image UUID
The name of the image
Format of the image container
The format of the disk
Amount of disk space in GB that is required to boot the image
Amount of RAM in MB that is required to boot the image
Image protection for deletion
List of tags for this image
Visibility for this image
Additional custom properties
Image created successfully
Bad Request
Unauthorized
Forbidden
Conflict
Payload Too Large
Unsupported Media Type
POST /glance/v2/images HTTP/1.1
Host: example.platform9.com
X-Auth-Token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 107
{
"container_format": "bare",
"disk_format": "raw",
"name": "Ubuntu",
"id": "b2173dd3-7ad6-4362-baa6-a68bce3565cb"
}{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"status": "queued",
"visibility": "public",
"protected": true,
"tags": [
"text"
],
"container_format": "ami",
"disk_format": "ami",
"min_disk": 1,
"min_ram": 1,
"size": 1,
"virtual_size": 1,
"checksum": "text",
"os_hash_algo": "text",
"os_hash_value": "text",
"os_hidden": true,
"owner": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"self": "https://example.com",
"file": "https://example.com",
"schema": "https://example.com",
"direct_url": "https://example.com",
"locations": [
{
"url": "https://example.com",
"metadata": {}
}
],
"ANY_ADDITIONAL_PROPERTY": "text"
}Shows details for an image
PCD Identity Service token authentication
The UUID of the image
Image details retrieved successfully
A unique identifier for the image
The name of the image
The image status
Image visibility
Image protection for deletion
List of tags for this image
Format of the image container
The format of the disk
Amount of disk space in GB required to boot the image
Amount of RAM in MB required to boot the image
The size of the image data, in bytes
The virtual size of the image
MD5 hash of image contents
Algorithm used to compute secure hash
Hexdigest of the secure hash
Controls whether image is displayed in default image list
An identifier for the owner of the image
Date and time when the image was created
Date and time when the image was last updated
URL for the image
URL for the image file
URL for the schema describing the image
URL to access the image file kept in external store
Additional custom properties
Bad Request
Unauthorized
Forbidden
Not Found
GET /glance/v2/images/{image_id} HTTP/1.1
Host: example.platform9.com
X-Auth-Token: YOUR_API_KEY
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"status": "queued",
"visibility": "public",
"protected": true,
"tags": [
"text"
],
"container_format": "ami",
"disk_format": "ami",
"min_disk": 1,
"min_ram": 1,
"size": 1,
"virtual_size": 1,
"checksum": "text",
"os_hash_algo": "text",
"os_hash_value": "text",
"os_hidden": true,
"owner": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"self": "https://example.com",
"file": "https://example.com",
"schema": "https://example.com",
"direct_url": "https://example.com",
"locations": [
{
"url": "https://example.com",
"metadata": {}
}
],
"ANY_ADDITIONAL_PROPERTY": "text"
}Deletes an image
PCD Identity Service token authentication
The UUID of the image
Image deleted successfully
No content
Bad Request
Unauthorized
Forbidden
Not Found
Conflict
DELETE /glance/v2/images/{image_id} HTTP/1.1
Host: example.platform9.com
X-Auth-Token: YOUR_API_KEY
Accept: */*
No content
Updates an image using JSON Patch operations
PCD Identity Service token authentication
The UUID of the image
The operation to perform
JSON pointer to the location in the target document
The value to use for the operation
Image updated successfully
A unique identifier for the image
The name of the image
The image status
Image visibility
Image protection for deletion
List of tags for this image
Format of the image container
The format of the disk
Amount of disk space in GB required to boot the image
Amount of RAM in MB required to boot the image
The size of the image data, in bytes
The virtual size of the image
MD5 hash of image contents
Algorithm used to compute secure hash
Hexdigest of the secure hash
Controls whether image is displayed in default image list
An identifier for the owner of the image
Date and time when the image was created
Date and time when the image was last updated
URL for the image
URL for the image file
URL for the schema describing the image
URL to access the image file kept in external store
Additional custom properties
Bad Request
Unauthorized
Forbidden
Not Found
Conflict
Payload Too Large
Unsupported Media Type
PATCH /glance/v2/images/{image_id} HTTP/1.1
Host: example.platform9.com
X-Auth-Token: YOUR_API_KEY
Content-Type: application/openstack-images-v2.1-json-patch
Accept: */*
Content-Length: 112
[
{
"op": "replace",
"path": "/name",
"value": "Fedora 17"
},
{
"op": "replace",
"path": "/tags",
"value": [
"fedora",
"beefy"
]
}
]{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"status": "queued",
"visibility": "public",
"protected": true,
"tags": [
"text"
],
"container_format": "ami",
"disk_format": "ami",
"min_disk": 1,
"min_ram": 1,
"size": 1,
"virtual_size": 1,
"checksum": "text",
"os_hash_algo": "text",
"os_hash_value": "text",
"os_hidden": true,
"owner": "text",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"self": "https://example.com",
"file": "https://example.com",
"schema": "https://example.com",
"direct_url": "https://example.com",
"locations": [
{
"url": "https://example.com",
"metadata": {}
}
],
"ANY_ADDITIONAL_PROPERTY": "text"
}Deactivates an image (admin only)
PCD Identity Service token authentication
The UUID of the image
Image deactivated successfully
No content
Bad Request
Forbidden
Not Found
POST /glance/v2/images/{image_id}/actions/deactivate HTTP/1.1
Host: example.platform9.com
X-Auth-Token: YOUR_API_KEY
Accept: */*
No content
Reactivates an image (admin only)
PCD Identity Service token authentication
The UUID of the image
Image reactivated successfully
No content
Bad Request
Forbidden
Not Found
POST /glance/v2/images/{image_id}/actions/reactivate HTTP/1.1
Host: example.platform9.com
X-Auth-Token: YOUR_API_KEY
Accept: */*
No content
Last updated
Was this helpful?
