Image Data
Uploads and downloads raw image data
Downloads binary image data
OpenStack Keystone authentication token
The UUID of the image
The range of image data requested
Image data downloaded successfully
No image data exists
Partial content returned
Bad Request
Forbidden
Not Found
Range Not Satisfiable
GET /v2/images/{image_id}/file HTTP/1.1
Host: image.example.com
X-Auth-Token: YOUR_API_KEY
Accept: */*
binaryUploads binary image data
OpenStack Keystone authentication token
The UUID of the image
A store identifier to upload image data
Image data uploaded successfully
Bad Request
Unauthorized
Forbidden
Not Found
Conflict
Gone
Payload Too Large
Unsupported Media Type
Service Unavailable
PUT /v2/images/{image_id}/file HTTP/1.1
Host: image.example.com
X-Auth-Token: YOUR_API_KEY
Content-Type: application/octet-stream
Accept: */*
Content-Length: 8
"binary"No content
Places the binary image data in a staging area for interoperable image import
OpenStack Keystone authentication token
The UUID of the image
Image data staged successfully
Bad Request
Unauthorized
Forbidden
Not Found
Method Not Allowed
Conflict
Gone
Payload Too Large
Unsupported Media Type
Service Unavailable
PUT /v2/images/{image_id}/stage HTTP/1.1
Host: image.example.com
X-Auth-Token: YOUR_API_KEY
Content-Type: application/octet-stream
Accept: */*
Content-Length: 8
"binary"No content
Signals the Image Service to complete the image import workflow
OpenStack Keystone authentication token
The UUID of the image
A store identifier to import image data
List of store identifiers to import to
Import to all available stores
Whether all stores must succeed for the operation to succeed
Image import initiated successfully
Bad Request
Unauthorized
Forbidden
Not Found
Method Not Allowed
Conflict
Gone
Payload Too Large
Unsupported Media Type
Service Unavailable
POST /v2/images/{image_id}/import HTTP/1.1
Host: image.example.com
X-Auth-Token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 244
{
"method": {
"name": "glance-direct",
"uri": "https://example.com",
"glance_image_id": "123e4567-e89b-12d3-a456-426614174000",
"glance_region": "text",
"glance_service_interface": "text"
},
"stores": [
"text"
],
"all_stores": true,
"all_stores_must_succeed": true
}No content
Last updated
Was this helpful?
