| Class | OpenStack::Compute::Image |
| In: |
lib/openstack/compute/image.rb
|
| Parent: | Object |
| created | [R] | |
| id | [R] | |
| metadata | [R] | |
| minDisk | [R] | |
| minRam | [R] | |
| name | [R] | |
| progress | [R] | |
| server | [R] | |
| status | [R] | |
| updated | [R] |
This class provides an object for the "Image" of a server. The Image refers to the Operating System type and version.
Returns the Image object identifed by the supplied ID number. Called from the get_image instance method of OpenStack::Compute::Connection, it will likely not be called directly from user code.
>> cs = OpenStack::Compute::Connection.new(USERNAME,API_KEY) >> image = cs.get_image(2) => #<OpenStack::Compute::Image:0x1015371c0 ...> >> image.name => "CentOS 5.2"
Delete an image. This should be returning invalid permissions when attempting to delete system images, but it‘s not. Returns true if the deletion succeeds.
>> image.delete! => true