• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
导航菜单
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • windows
  • 服务器硬件
  • 服务器运维
  • 云计算
  • 虚拟化
  • IIS教程
  • Linux
  • Apache
  • Ftp
  • DNS
  • Nginx
您的位置:首页 > 服务器 >云计算 > openstack中Nova组件servers的所有python API 汇总,openstacknova

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

作者:网友 字体:[增加 减小] 来源:互联网

本文主要包含openstack nova,openstack nova api,openstack nova boot,openstack组件,openstack组件介绍等服务器相关知识,网友希望可以进行参考

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



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 representing resource attributes
  • loaded – prevent lazy-loading if set to True
HUMAN_ID = True

add_fixed_ip(network_id)

Add an IP address on a network.

Parameters: network_id – The ID of the network the IP should be on.
add_floating_ip(address, fixed_address=None)

Add floating IP to an instance

Parameters:
  • address – The IP address or FloatingIP to add to the instance
  • fixed_address – The fixedIP address the FloatingIP is to beassociated with (optional)
add_security_group(security_group)

Add a security group to an instance.

backup(backup_name, backup_type, rotation)

Backup a server instance.

Parameters:
  • backup_name – Name of the backup image
  • backup_type – The backup type, like ‘daily’ or ‘weekly’
  • rotation – Int parameter representing how many backups tokeep around.
change_password(password)

Update the admin password for a server.

Parameters: password – string to set as the admin password on the server
clear_password()

Get password for a Server.

confirm_resize()

Confirm that the resize worked, thus removing the original server.

create_image(image_name, metadata=None)

Create an image based on this server.

Parameters:
  • image_name – The name to assign the newly create image.
  • metadata – Metadata to assign to the image.
delete()

Delete (i.e. shut down and delete the image) this server.

diagnostics()

Diagnostics – Retrieve server diagnostics.

evacuate(host=None, on_shared_storage=True, password=None)

Evacuate an instance from failed host to specified host.

Parameters:
  • host – Name of the target host
  • on_shared_storage – Specifies whether instance files locatedon shared storage
  • password – string to set as admin password on the evacuatedserver.
force_delete()

Force delete – Force delete a server.

get_console_output(length=None)

Get text console log output from Server.

Parameters: length – The number of lines you would like to retrieve (as int)
get_password(private_key=None)

Get password for a Server.

Returns the clear password of an instance if private_key isprovided, returns the ciphered password otherwise.

Parameters: private_key – Path to private key file for decryption(optional)
get_rdp_console(console_type)

Get rdp console for a Server.

Parameters: console_type – Type of console (‘rdp-html5’)
get_serial_console(console_type)

Get serial console for a Server.

分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

您可能想查找下面的文章:

  • 《转》OpenStack Ceilometer 安装配置和API说明,《转》openstack
  • openstack中Nova组件images的所有python API 汇总,openstacknova
  • openstack中Nova组件Networks的所有python API 汇总,openstacknova
  • openstack中Nova组件servers的所有python API 汇总,openstacknova
  • Openstack Nova(九)----Instance 创建(Computer API & Conductor ),openstacknovaapi

相关文章

  • Linux如何上线和下线CPU,Linux上线下线CPU
  • Docker 使用方法总结之:容器的基本操作,docker基本操作
  • Web.xml配置详解,web.xml详解
  • hive UDF自动增长列函数,hiveudf列函数
  • 微软云和阿里云的区别,微软云和阿里
  • hadoop学习笔记(六)——hadoop2.5.2全分布模式实现的部署,hadoophadoop2.5.2
  • Hadoop之——HDFS命令,hadoophdfs
  • 如何解决Greenplum中无法通过标准命令修复的元数据错误,greenplum元数据
  • 程序员必备的代码审查(Code Review)清单,codereview
  • 《3》CentOS7.0+OpenStack+kvm云平台部署—配置Glance,《3》kvm

文章分类

  • windows
  • 服务器硬件
  • 服务器运维
  • 云计算
  • 虚拟化
  • IIS教程
  • Linux
  • Apache
  • Ftp
  • DNS
  • Nginx

最近更新的内容

    • [Hive]MapReduce将数据写入Hive分区表,mapreducehive
    • hadoop修改启动主机名称
    • 通过TelnetClient获取Zookeeper监控数据,zookeeperclient
    • 当代数学七大难题,当代七大难题
    • R.net获取R中股票的dataframe中的data,r.netdataframe
    • 现代数学的引路人,现代数学引路人
    • apache hadoop-2.6.0-CDH5.4.1 安装笔记,hadoop2.6.0安装
    • Cloud Foundry buildpack开发部署实例解析,foundrybuildpack
    • 代码review,代码review什么意思
    • spark core源码分析15 Shuffle详解-写流程,sparkshuffle

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有