All Python API summaries for the Nova component images in OpenStack

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.