Package org.openstack4j.model.image.v2
Interface Image
-
- All Superinterfaces:
BasicResource,Buildable<ImageBuilder>,IdEntity,ModelEntity,Serializable
- All Known Implementing Classes:
GlanceImage
public interface Image extends BasicResource, Buildable<ImageBuilder>
A Glance v2.0-2.3 Image- Author:
- emjburns
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classImage.ImageStatusstatic classImage.ImageVisibility-
Nested classes/interfaces inherited from interface org.openstack4j.common.Buildable
Buildable.Builder<T extends Buildable.Builder<T,M>,M extends Buildable<?>>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetAdditionalPropertyValue(String key)StringgetArchitecture()StringgetChecksum()ContainerFormatgetContainerFormat()DategetCreatedAt()StringgetDirectUrl()DiskFormatgetDiskFormat()StringgetFile()StringgetId()StringgetInstanceUuid()BooleangetIsProtected()StringgetKernelId()Pattern: ^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$List<GlanceImage.Location>getLocations()LonggetMinDisk()LonggetMinRam()StringgetName()StringgetOsDistro()StringgetOsVersion()StringgetOwner()StringgetRamdiskId()Pattern: ^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$StringgetSchema()StringgetSelf()LonggetSize()Image.ImageStatusgetStatus()List<String>getTags()DategetUpdatedAt()LonggetVirtualSize()Image.ImageVisibilitygetVisibility()-
Methods inherited from interface org.openstack4j.model.common.BasicResource
setName
-
-
-
-
Method Detail
-
getStatus
Image.ImageStatus getStatus()
- Returns:
- image status
-
getName
String getName()
- Specified by:
getNamein interfaceBasicResource- Returns:
- image name.
-
getContainerFormat
ContainerFormat getContainerFormat()
- Returns:
- the container format of the image
-
getCreatedAt
Date getCreatedAt()
- Returns:
- the ISO 8601 date and time when the resource was created
-
getDiskFormat
DiskFormat getDiskFormat()
- Returns:
- the disk format of the image
-
getUpdatedAt
Date getUpdatedAt()
- Returns:
- the ISO 8601 date and time when the resource was updated
-
getMinDisk
Long getMinDisk()
- Returns:
- the minimum disk size in GB that is required to boot the image
-
getIsProtected
Boolean getIsProtected()
- Returns:
- image protection for deletion Default is false
-
getMinRam
Long getMinRam()
- Returns:
- the minimum amount of RAM in MB that is required to boot the image
-
getChecksum
String getChecksum()
- Returns:
- hash that is used over the image data (image service uses this value for verification)
-
getOwner
String getOwner()
- Returns:
- the id of teh owner, or tenant, of the image
-
getVisibility
Image.ImageVisibility getVisibility()
- Returns:
- image visibility (public or private) Default is private
-
getSize
Long getSize()
- Returns:
- the size of the image data, in bytes
-
getLocations
List<GlanceImage.Location> getLocations()
- Returns:
- A list of URLs to access the image file in external store.
This list appears if the show_multiple_locations option is set to true in the Image service's configuration file.
-
getDirectUrl
String getDirectUrl()
- Returns:
- the URL to access the image file kept in external store
This value appears when you set
show_image_direct_urloption totruein the image service's configuration file
-
getSelf
String getSelf()
- Returns:
- the URL for the virtual machine image
-
getFile
String getFile()
- Returns:
- the URL for the virtual machine image file
-
getSchema
String getSchema()
- Returns:
- the URL for the schema of teh virtual machine image
-
getRamdiskId
String getRamdiskId()
Pattern: ^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$- Returns:
- ID of image stored in Glance that should be used as the ramdisk when booting an AMI-style image.
-
getOsDistro
String getOsDistro()
- Returns:
- Common name of operating system distribution as specified in http://docs.openstack.org/trunk/openstack-compute/admin/content/adding-images.html
-
getOsVersion
String getOsVersion()
- Returns:
- Operating system version as specified by the distributor
-
getKernelId
String getKernelId()
Pattern: ^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$- Returns:
- ID of image stored in Glance that should be used as the kernel when booting an AMI-style image
-
getInstanceUuid
String getInstanceUuid()
- Returns:
- ID of instance used to create this image
-
getArchitecture
String getArchitecture()
- Returns:
- Operating system architecture as specified in http://docs.openstack.org/trunk/openstack-compute/admin/content/adding-images.html
-
getVirtualSize
Long getVirtualSize()
- Returns:
- Virtual size of image in bytes (READ-ONLY)
-
-