openstack中glance组件images的所有python API 汇总
2015-06-24 11:36
701 查看
感谢朋友支持本博客,欢迎共同探讨交流,由于能力和时间有限,错误之处在所难免,欢迎指正!
如果转载,请保留作者信息。
博客地址: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 an image.
get(image,
**kwargs)
Get the metadata for a specific image.
Parameters: | image – image object or id to look up |
---|---|
Return type: | Image |
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 |
alias of Image
update(image,**kwargs)
Update an image
TODO(bcwaldon): document accepted params
相关文章推荐
- openstack中Nova组件images的所有python API 汇总
- 【Python】Python中的引用和赋值
- Python list 常用操作
- Python装饰器使用实例:验证参数合法性
- Python的字符串处理函数split & join的使用一例
- Python函数式编程指南(四):生成器详解
- python + mysql
- Python安装pip的几种方式
- python模块 - re模块使用示例
- python编辑器对比和推荐
- 学习Python6(临时计算器+字符串编码)
- Python函数式编程指南(三):迭代器详解
- MIT python 第二课第四十分钟 取最小值的例子
- Python如何进行中文注释
- Python函数式编程指南(二):从函数开始
- python 中面向对象编程简单总结1
- Python函数式编程指南(一):函数式编程概述
- 我的Python与Android学习之路
- 关于Python中闭包与装饰器的理解
- python学习笔记一