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

來源:互聯網
上載者:User

標籤:

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 resource attributes
  • loaded – prevent lazy-loading if set to True
delete()

Delete this floating IP

class novaclient.v2.floating_ips.FloatingIPManager( api)

Bases: novaclient.base.ManagerWithFind

create( pool=None)

Create (allocate) a floating IP for a tenant

delete( floating_ip)

Delete (deallocate) a floating IP for a tenant

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

Retrieve a floating IP

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.


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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.