感谢朋友支持本博客,欢迎共同探讨交流,因为能力和时间有限。错误之处在所难免,欢迎指正!

假设转载。请保留作者信息。

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

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

Floating_ips

class novaclient.v2.floating_ips.FloatingIPmanager,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
delete

Delete this floating IP

class novaclient.v2.floating_ips.FloatingIPManagerapi

Bases: novaclient.base.ManagerWithFind

createpool=None

Create (allocate) a floating IP for a tenant

deletefloating_ip

Delete (deallocate) a floating IP for a tenant

Parameters:floating_ip – The floating IP address to delete.
getfloating_ip

Retrieve a floating IP

listall_tenants=False

List floating IPs

resource_class

alias of FloatingIP

Hypervisors

Hypervisors interface (1.1 extension).

class novaclient.v2.hypervisors.Hypervisormanager,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.HypervisorManagerapi

Bases: novaclient.base.ManagerWithFind

gethypervisor

Get a specific hypervisor.

listdetailed=True

Get a list of hypervisors.

resource_class

alias of Hypervisor

searchhypervisor_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()

uptimehypervisor

Get the uptime for a specific hypervisor.

class novaclient.v2.hypervisors.HypervisorStatsmanager,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.HypervisorStatsManagerapi

Bases: novaclient.base.Manager

resource_class

alias of HypervisorStats

statistics

Get hypervisor statistics over all compute nodes.

04-15 13:11