openstack.image.v2.image

openstack.image.v2.image

The Image Class

The Image class inherits from Resource.

class openstack.image.v2.image.Image(attrs=None, loaded=False)

Construct a Resource to interact with a service’s REST API.

The Resource class offers two class methods to construct resource objects, which are preferrable to entering through this initializer. See Resource.new() and Resource.existing().

Parameters:
  • attrs (dict) – The attributes to set when constructing this Resource.
  • loaded (bool) – True if this Resource exists on the server, False if it does not.
checksum = None

Hash of the image data used. The Image service uses this value for verification.

container_format = None

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 just a blob of unstructured data.

created_at = None

The date and time when the image was created.

disk_format = None

Valid values are: aki, ari, ami, raw, iso, vhd, vdi, qcow2, or vmdk. 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.

min_disk = None

The minimum disk size in GB that is required to boot the image.

name = None

The name of the image.

owner_id = None

The ID of the owner, or project, of the image.

properties = None

Properties, if any, that are associated with the image.

protected = None

Defines whether the image can be deleted.

size = None

The size of the image data, in bytes.

store = None

When present, Glance will attempt to store the disk image data in the backing store indicated by the value of the header. When not present, Glance will store the disk image data in the backing store that is marked default. Valid values are: file, s3, rbd, swift, cinder, gridfs, sheepdog, or vsphere.

status = None

The image status.

tags = None

Tags, if any, that are associated with the image.

updated_at = None

The date and time when the image was updated.

virtual_size = None

The virtual size of the image.

visibility = None

The image visibility.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.