Loads images for use at launch time by the Compute API. Also, assigns metadata to images.
Some cloud implementations do not expose this API and offer pretested images only.
Cloud providers can configure property protections that
prevent non-administrative users from updating and deleting
protected properties. For more information, see Image property protection in the
{ "versions": [ { "status": "CURRENT", "id": "v2.2", "links": [ { "href": "http://23.253.228.211:9292/v2/", "rel": "self" } ] }, { "status": "SUPPORTED", "id": "v2.1", "links": [ { "href": "http://23.253.228.211:9292/v2/", "rel": "self" } ] }, { "status": "SUPPORTED", "id": "v2.0", "links": [ { "href": "http://23.253.228.211:9292/v2/", "rel": "self" } ] }, { "status": "SUPPORTED", "id": "v1.1", "links": [ { "href": "http://23.253.228.211:9292/v1/", "rel": "self" } ] }, { "status": "SUPPORTED", "id": "v1.0", "links": [ { "href": "http://23.253.228.211:9292/v1/", "rel": "self" } ] } ] }
This operation does not accept a request body.
Parameter | Style | Type | Description |
---|---|---|---|
name (Optional) | query | xsd:string |
Filters the image list by a specified image name, in string format. |
container_format (Optional) | query | xsd:string |
Filters the image list by a specified container
format, such as |
disk_format (Optional) | query | xsd:string |
Filters the image list by a specified disk format. A valid value
is |
status (Optional) | query | xsd:string |
Filters the image list by a specified status. A
valid value is |
size_min (Optional) | query | xsd:string |
Filters the image list by a specified minimum image size, in bytes. |
size_max (Optional) | query | xsd:string |
Filters the image list by a specified maximum image size, in bytes. |
changes-since (Optional) | query | xsd:dateTime |
Filters the image list to those images that have changed since a specified time stamp value. |
{ "images": [ { "uri": "http://glance.example.com/images/71c675ab-d94f-49cd-a114-e12490b328d9", "name": "Ubuntu 10.04 Plain", "disk_format": "vhd", "container_format": "ovf", "size": "5368709120" }, { "...": "..." } ] }
Parameter | Style | Type | Description |
---|---|---|---|
name | plain | xsd:string |
Name for the image. Note that the name of an image is not unique to a Glance node. The API cannot expect users to know the names of images owned by others. |
disk_format | plain | xsd:string |
A valid value is The disk format of a VM image is the format of the underlying disk image. Virtual appliance vendors have different formats for laying out the information contained in a VM disk image. You can set the container format for your image to one of the following values:
|
container_format | plain | xsd:string |
The container format refers to whether the VM image is in a file format that also contains metadata about the actual VM. Container formats include OVF and Amazon AMI. In addition, a VM image might not have a container format. Instead, the image is a blob of unstructured data. You can set the container format to one of the following formats:
|
createImage (Optional) | ImageForCreate |
Parameter | Style | Type | Description |
---|---|---|---|
location | plain | xsd:anyURI |
A location for the image identified by a URI. |
Parameter | Style | Type | Description |
---|---|---|---|
name (Optional) | query | xsd:string |
Filters the image list by a specified image name, in string format. |
container_format (Optional) | query | xsd:string |
Filters the image list by a specified container
format, such as |
disk_format (Optional) | query | xsd:string |
Filters the image list by a specified disk format. A valid value
is |
status (Optional) | query | xsd:string |
Filters the image list by a specified status. A
valid value is |
size_min (Optional) | query | xsd:string |
Filters the image list by a specified minimum image size, in bytes. |
size_max (Optional) | query | xsd:string |
Filters the image list by a specified maximum image size, in bytes. |
changes-since (Optional) | query | xsd:dateTime |
Filters the image list to those images that have changed since a specified time stamp value. |
Parameter | Style | Type | Description |
---|---|---|---|
next (Optional) | plain | xsd:anyURI |
Show the next item in the list. |
previous (Optional) | plain | xsd:anyURI |
Show the previous item in the list. |
{ "images": [ { "uri": "http://glance.example.com/images/71c675ab-d94f-49cd-a114-e12490b328d9", "name": "Ubuntu 10.04 Plain 5GB", "disk_format": "vhd", "container_format": "ovf", "size": "5368709120", "checksum": "c2e5db72bd7fd153f53ede5da5a06de3", "created_at": "2010-02-03 09:34:01", "updated_at": "2010-02-03 09:34:01", "deleted_at": "", "status": "active", "is_public": true, "min_ram": 256, "min_disk": 5, "owner": null, "properties": { "distro": "Ubuntu 10.04 LTS" } }, { "...": "..." } ] }
Shows the image details as headers and the image binary in the body of the response.
Parameter | Style | Type | Description |
---|---|---|---|
image_id | URI | xsd:string |
Image ID stored through the image API. Typically a UUID. |
{ "images": [ { "uri": "http://glance.example.com/images/71c675ab-d94f-49cd-a114-e12490b328d9", "name": "Ubuntu 10.04 Plain 5GB", "disk_format": "vhd", "container_format": "ovf", "size": "5368709120", "checksum": "c2e5db72bd7fd153f53ede5da5a06de3", "created_at": "2010-02-03 09:34:01", "updated_at": "2010-02-03 09:34:01", "deleted_at": "", "status": "active", "is_public": true, "min_ram": 256, "min_disk": 5, "owner": null, "properties": { "distro": "Ubuntu 10.04 LTS" } }, { "...": "..." } ] }
This operation does not accept a request body.
Updates an image, uploads an image file, or updates metadata for an image.
Parameter | Style | Type | Description |
---|---|---|---|
image_id | URI | xsd:string |
Image ID stored through the image API. Typically a UUID. |
Parameter | Style | Type | Description |
---|---|---|---|
location | plain | xsd:anyURI |
This operation does not accept a request body.
Parameter | Style | Type | Description |
---|---|---|---|
image_id | URI | xsd:string |
Image ID stored through the image API. Typically a UUID. |
This operation does not accept a request body and does not return a response body.
Parameter | Style | Type | Description |
---|---|---|---|
image_id | URI | xsd:string |
Image ID stored through the image API. Typically a UUID. |
memberships | plain | String | |
can_share | plain | xsd:boolean |
Indicates whether the specified owner is authorized to share the specified image.
If the owner can share the image, this value is
The owner ID, which is the tenant ID, is specified in the request URI. |
This operation does not return a response body.
If you omit the request body, this call adds the membership to
the image, leaves the existing memberships unmodified, and
sets the can_share
attribute to
false
for new memberships.
Parameter | Style | Type | Description |
---|---|---|---|
image_id | URI | xsd:string |
Image ID stored through the image API. Typically a UUID. |
owner_id | URI | xsd:string |
Owner ID, which is the tenant ID. |
can_share | plain | xsd:boolean |
Indicates whether the specified owner is authorized to share the specified image.
If the owner can share the image, this value is
The owner ID, which is the tenant ID, is specified in the request URI. |
{ "members": [ { "member_id": "tenant1", "can_share": false }, { "member_id": "tenant2", "can_share": false } ] }
This operation does not return a response body.
Parameter | Style | Type | Description |
---|---|---|---|
image_id | URI | xsd:string |
Image ID stored through the image API. Typically a UUID. |
owner_id | URI | xsd:string |
Owner ID, which is the tenant ID. |
member_id | plain | csapi:uuid |
ID of member with which an image is shared. |
This operation does not return a response body.