All Python API summaries for the Nova components hypervisors and floating_ips in OpenStack

Source: Internet
Author: User

Thank your friends for supporting this blog, welcome to discuss the exchange, because of limited ability and time. Mistakes are unavoidable, please correct me!


assumed reprint. Please keep the author information.


Blog Address: http://blog.csdn.net/qq_21398167

Original post address: http://blog.csdn.net/qq_21398167/article/details/46620189
Floating_ips
Classnovaclient.v2.floating_ips.FLOATINGIP( Manager, Info, Loaded=false)

Bases: Novaclient.openstack.common.apiclient.base.Resource

Populate and bind to a manager.

paramete RS:
  • Manager –basemanag Er object
  • info –dictionary representing resource attributes
  • load Ed –prevent lazy-loading If set to True
delete ( )

Delete this fl Oating 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 , haven 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< /li>
  • 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< /li>
  • 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.


All Python API summaries for the Nova components hypervisors and floating_ips in OpenStack

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.