Images
Image interface.
-
-
class novaclient.v2.images. Image (
manager,
info,
loaded=false )
-
Bases: novaclient.openstack.common.apiclient.base.Resource
An image was a collection of files used to create or rebuild a server.
Populate and bind to a manager.
Parameters: |
- Manager –basemanager Object
- Info –dictionary representing resource attributes
- loaded –prevent lazy-loading if set to True
|
- human_id
= True
-
- Delete ( )
-
Delete this image.
-
-
class novaclient.v2.images. Imagemanager (
API )
-
Bases: novaclient.base.ManagerWithFind
Manage Image resources.
- delete (
image )
-
Delete an image.
It should go without saying that you can ' t delete a imagethat you didn ' t create.
parameter S: |
image , haven image (or its-ID) to delete. |
- delete_meta (
image ,
keys )
-
Delete metadata from an image
parameters: |
- image , haven imag e to delete metadata
- keys –a List of metadata keys to delete from the image< /li>
|
- get (
image )
-
get an image.
parameter S: |
image , haven ID of the image to get. |
return type: |
image |
- list (
detailed=true ,
limit=none )
-
Get A list of all images.
return ty PE: |
list of image |
parameters: |
limit –maximum number of images to return. |
- Resource_class
-
Alias of Image
- Set_meta (
image,
metadata )
-
Set an images metadata
Parameters: |
- image , haven image to add metadata to
- metadata –a dict of metadata to add to the image
|
Summary of all Python APIs for the Nova component images in OpenStack