openstack中Nova组件images的所有python API 汇总

Images

Image interface.

class novaclient.v2.images.Image(manager,
info, loaded=False)

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

An image is 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 an imagethat you didn’t create.

Parameters: image – The
Image
(or its ID) to delete.
delete_meta(image,
keys)

Delete metadata from an image

Parameters:
  • image – The Image to delete metadata
  • keys – A list of metadata keys to delete from the image
get(image)

Get an image.

Parameters: image – The ID of the image to get.
Return type: Image
list(detailed=True,
limit=None)

Get a list of all images.

Return type: 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 – The Image to add metadata to
  • metadata – A dict of metadata to add to the image
时间: 2024-10-08 17:20:08

openstack中Nova组件images的所有python API 汇总的相关文章

openstack中Nova组件servers的所有python API 汇总

Servers Server interface. class novaclient.v2.servers.Server(manager, info, loaded=False) Bases: novaclient.openstack.common.apiclient.base.Resource Populate and bind to a manager. Parameters: manager – BaseManager object info – dictionary representi

openstack中Nova组件Networks的所有python API 汇总

Networks Network interface. class novaclient.v2.networks.Network(manager, info, loaded=False) Bases: novaclient.openstack.common.apiclient.base.Resource A network. Populate and bind to a manager. Parameters: manager – BaseManager object info – dictio

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中glance组件images的所有python API 汇总

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中nova组件Hypervisors、Floating_ips的全部python API 汇总

感谢朋友支持本博客,欢迎共同探讨交流,因为能力和时间有限.错误之处在所难免,欢迎指正! 假设转载.请保留作者信息. 博客地址:http://blog.csdn.net/qq_21398167 原博文地址:http://blog.csdn.net/qq_21398167/article/details/46620189 Floating_ips class novaclient.v2.floating_ips.FloatingIP(manager,info, loaded=False) Bases

openstack中nova组件Hypervisors、Floating_ips的所有python API 汇总

Floating_ips class novaclient.v2.floating_ips.FloatingIP(manager, info, loaded=False) Bases: novaclient.openstack.common.apiclient.base.Resource Populate and bind to a manager. Parameters: manager – BaseManager object info – dictionary representing r

玩转Openstack之Nova中的协同并发(二)

玩转Openstack之Nova中的协同并发(二) 昨天介绍了Python中的并发处理,主要介绍了Eventlet,今天就接着谈谈Openstack中Nova对其的应用. eventlet 在nova/cmd/__init__.py中,就直接调用了eventlet的方法,代码如下: 1 from nova import debugger 2 3 if debugger.enabled(): 4 eventlet.monkey_patch(os=False, thread=False) 5 els

玩转Openstack之Nova中的协同并发(二) · voidy

玩转Openstack之Nova中的协同并发(二) 昨天介绍了Python中的并发处理,主要介绍了Eventlet,今天就接着谈谈Openstack中Nova对其的应用. ##eventlet 在nova/cmd/init.py中,就直接调用了eventlet的方法,代码如下: from nova import debugger if debugger.enabled(): eventlet.monkey_patch(os=False, thread=False) else: eventlet.

Openstack之Nova分析

前言  Openstack作为一个虚拟机管理平台,核心功能自然是虚拟机的生命周期的管理,而负责虚机管理的模块就是 Nova. 本文就是openstack中Nova模块的分析,所以本文重点是以下三点: 先了解Openstack的整体架构,搞清楚为什么要用这样的架构: 然后再了解架构中的各个组件,组件提供的主要功能与各个组件之间的交互: 了解虚机的启动过程,能在遇到问题时发现问题出在哪个模块中的哪个组件. Nova组件介绍 接下来进行详细介绍,如有错误,欢迎拍砖! 下图为创建虚拟机的一个大概流程图.