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

时间: 2024-10-19 12:39:22

openstack中glance组件images的全部python API 汇总的相关文章

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组件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中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组件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. Par

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 之(14):OpenStack 中 RabbitMQ 使用研究 (上半部分)

本文是 OpenStack 中的 RabbitMQ 使用研究 两部分中的第一部分,将介绍 RabbitMQ 的基本概念,即 RabbitMQ 是什么.第二部分将介绍其在 OpenStack 中的使用. 1 RabbitMQ 的基本概念 RabbitMQ 是实现了高级消息队列协议(AMQP)的开源消息代理软件(亦称面向消息的中间件). AMQP是一个定义了在应用或者组织之间传送消息的协议的开放标准 (an open standard for passing business messages be

openstack中创建一个虚拟机经过的51步

一.前言 本文在林海峰老师"openstack创建一个VM所需的29步"基础上进行了补充和修改,文中只用到了openstack六个核心组件,为了便于理解,架构中不同组件内的rabbit mq和db为同一个(可以为每个组件配置单独的db和rabbit mq).openstack组件之间通过REST调用,组件内通过RPC协议通信,RPC协议又是基于AMQP模型实现的,rabbit mq就是运用该模型的一款软件. 二.概述 以现实中的PC举例来说明openstack创建的VM,一个PC要能正

openstack (五) Glance 部署

1.glance组件详解 作用:主要用于帮助用户发现.注册及搜索VM实例映像文件(通过REST API的形式) 三大组件功能 磁盘映像文件的存储目录:/var/lib/glance/images 2.组件部署 数据库配置 创建glance数据库 CREATE DATABASE glance; 数据库赋权 GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'localhost' IDENTIFIED BY 'glance'; GRANT ALL PRIVIL