zoukankan      html  css  js  c++  java
  • openstack中glance组件images的全部python API 汇总

    感谢朋友支持本博客,欢迎共同探讨交流。因为能力和时间有限。错误之处在所难免,欢迎指正!


    假设转载,请保留作者信息。


    博客地址:http://blog.csdn.net/qq_21398167

    原博文地址:http://blog.csdn.net/qq_21398167/article/details/46620025

    Images

    class glanceclient.v1.images.Image(manager,info, loaded=False)

    Bases: glanceclient.openstack.common.apiclient.base.Resource

    data(**kwargs)

    delete(**kwargs)

    update(**fields)

    class glanceclient.v1.images.ImageManager(client)

    Bases: glanceclient.openstack.common.apiclient.base.ManagerWithFind

    create(**kwargs)

    Create an image

    TODO(bcwaldon): document accepted params

    data(image, do_checksum=True, **kwargs)

    Get the raw data for a specific image.

    Parameters:
    • image – image object or id to look up
    • do_checksum – Enable/disable checksum validation
    Return type:

    iterable containing image data

    delete(image,**kwargs)

    Delete an image.

    get(image, **kwargs)

    Get the metadata for a specific image.

    Parameters: image – image object or id to look up
    Return type: Image
    list(**kwargs)

    Get a list of images.

    Parameters:
    • page_size – number of items to request in each paginated request
    • limit – maximum number of images to return
    • marker – begin returning images that appear later in the imagelist than that represented by this image id
    • filters – dict of direct comparison filters that mimics thestructure of an image object
    • owner – If provided, only images with this owner (tenant id)will be listed. An empty string (‘’) matches ownerlessimages.
    • return_request_id – If an empty list is provided, populate thislist with the request ID value from the headerx-openstack-request-id
    Return type:

    list of Image

    resource_class

    alias of Image

    update(image,**kwargs)

    Update an image

    TODO(bcwaldon): document accepted params

  • 相关阅读:
    idea 配置git
    mybatisgenerator自动生成Mapper.dao.entity
    Eclipse中设置作者日期等Java注释模板
    二分图匹配KM算法
    网络流最小费用最大流
    图论tarjan
    STL的一些基本操作
    图论拓扑排序
    字符串的一些基本操作
    网络流最大流
  • 原文地址:https://www.cnblogs.com/lcchuguo/p/5246504.html
Copyright © 2011-2022 走看看