openstack中nova組件Hypervisors、Floating_ips的所有python API 彙總

感謝朋友支持本博客,歡迎共同探討交流,由於能力和時間有限。錯誤之處在所不免,歡迎指正!node


假設轉載。請保留做者信息。
api


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

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

Floating_ips


class novaclient.v2.floating_ips. FloatingIP ( manager, info, loaded=False )

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

Populate and bind to a manager.spa

Parameters:
  • manager – BaseManager object
  • info – dictionary representing resource attributes
  • loaded – prevent lazy-loading if set to True
delete ( )

Delete this floating IP.net

class novaclient.v2.floating_ips. FloatingIPManager ( api )

Bases: novaclient.base.ManagerWithFindcode

create ( pool=None )

Create (allocate) a floating IP for a tenantorm

delete ( floating_ip )

Delete (deallocate) a floating IP for a tenantserver

Parameters: floating_ip – The floating IP address to delete.
get ( floating_ip )

Retrieve a floating IPblog

list ( all_tenants=False )

List floating IPs

resource_class

alias of FloatingIP



Hypervisors

Hypervisors interface (1.1 extension).

class novaclient.v2.hypervisors. Hypervisor ( 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
NAME_ATTR = 'hypervisor_hostname'

class novaclient.v2.hypervisors. HypervisorManager ( api )

Bases: novaclient.base.ManagerWithFind

get ( hypervisor )

Get a specific hypervisor.

list ( detailed=True )

Get a list of hypervisors.

resource_class

alias of Hypervisor

search ( hypervisor_match, servers=False )

Get a list of matching hypervisors.

Parameters: servers – If True, server information is also retrieved.
statistics ( )

Get hypervisor statistics over all compute nodes.

Kept for backwards compatibility, new code should callhypervisor_stats.statistics() instead of hypervisors.statistics()

uptime ( hypervisor )

Get the uptime for a specific hypervisor.

class novaclient.v2.hypervisors. HypervisorStats ( 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
class novaclient.v2.hypervisors. HypervisorStatsManager ( api )

Bases: novaclient.base.Manager

resource_class

alias of HypervisorStats

statistics ( )

Get hypervisor statistics over all compute nodes.

相關文章
相關標籤/搜索