Image v1, v2
Image v1, v2
Create/upload an image
os image create
[--id <id>]
[--store <store>]
[--container-format <container-format>]
[--disk-format <disk-format>]
[--owner <project>]
[--size <size>]
[--min-disk <disk-gb>]
[--min-ram <ram-mb>]
[--location <image-url>]
[--copy-from <image-url>]
[--file <file>]
[--volume <volume>]
[--force]
[--checksum <checksum>]
[--protected | --unprotected]
[--public | --private]
[--property <key=value> [...] ]
[--tag <tag> [...] ]
<image-name>
Image ID to reserve
Upload image to this store
Image version 1 only.
Image container format (default: bare)
Image disk format (default: raw)
Image owner project name or ID
Image version 1 only.
Image size, in bytes (only used with –location and –copy-from)
Image version 1 only.
Minimum disk size needed to boot image, in gigabytes
Minimum RAM size needed to boot image, in megabytes
Download image from an existing URL
Image version 1 only.
Copy image from the data store (similar to –location)
Image version 1 only.
Upload image from local file
Create image from a volume
Force image creation if volume is in use (only meaningful with –volume)
Image hash used for verification
Image version 1 only.
Prevent image from being deleted
Allow image to be deleted (default)
Image is accessible to the public
Image is inaccessible to the public (default)
Set a property on this image (repeat for multiple values)
Set a tag on this image (repeat for multiple values)
New in version 2.
New image name
List available images
os image list
[--public | --private | --shared]
[--property <key=value>]
[--long]
[--sort <key>[:<direction>]]
List only public images
List only private images
List only shared images
Image version 2 only.
Filter output based on property
List additional fields in output
Sort output by selected keys and directions(asc or desc) (default: asc), multiple keys and directions can be specified separated by comma
Save an image locally
os image save
--file <filename>
<image>
Downloaded image save filename (default: stdout)
Image to save (name or ID)
Image v1, v2
Set image properties
os image set
[--name <name>]
[--owner <project>]
[--min-disk <disk-gb>]
[--min-ram <disk-ram>]
[--container-format <container-format>]
[--disk-format <disk-format>]
[--size <size>]
[--protected | --unprotected]
[--public | --private]
[--store <store>]
[--location <image-url>]
[--copy-from <image-url>]
[--file <file>]
[--volume <volume>]
[--force]
[--checksum <checksum>]
[--stdin]
[--property <key=value> [...] ]
<image>
New image name
New image owner project (name or ID)
Minimum disk size needed to boot image, in gigabytes
Minimum RAM size needed to boot image, in megabytes
Container format of image. Acceptable formats: [‘ami’, ‘ari’, ‘aki’, ‘bare’, ‘ovf’]
Disk format of image. Acceptable formats: [‘ami’, ‘ari’, ‘aki’, ‘vhd’, ‘vmdk’, ‘raw’, ‘qcow2’, ‘vdi’, ‘iso’]
Size of image data (in bytes)
Image version 1 only.
Prevent image from being deleted
Allow image to be deleted (default)
Image is accessible to the public
Image is inaccessible to the public (default)
Upload image to this store
Image version 1 only.
Download image from an existing URL
Image version 1 only.
Copy image from the data store (similar to –location)
Image version 1 only.
Upload image from local file
Image version 1 only.
Update image with a volume
Image version 1 only.
Force image update if volume is in use (only meaningful with –volume)
Image version 1 only.
Image hash used for verification
Image version 1 only.
Allow to read image data from standard input
Image version 1 only.
Set a property on this image (repeat for multiple values)
Image version 1 only.
Operating system Architecture
New in version 2.
ID of image stored in Glance that should be used as the ramdisk when booting an AMI-style image
New in version 2.
Common name of operating system distribution
New in version 2.
Operating system version as specified by the distributor
New in version 2.
ID of image in Glance that should be used as the kernel when booting an AMI-style image
New in version 2.
ID of instance used to create this image
New in version 2.
Image to modify (name or ID)
Only supported for Image v2
Associate project with image
os image add project
[--project-domain <project-domain>]
<image> <project>
Domain the project belongs to (name or ID). This can be used in case collisions between project names exist.
Image to share (name or ID).
Project to associate with image (name or ID)
Only supported for Image v2
Disassociate project with image
os image remove remove
[--project-domain <project-domain>]
<image> <project>
Domain the project belongs to (name or ID). This can be used in case collisions between project names exist.
Image to unshare (name or ID).
Project to disassociate with image (name or ID)