HypervisorsΒΆ

Hypervisors interface (1.1 extension).

class novaclient.v2.hypervisors.Hypervisor(manager, info, loaded=False, resp=None)

Bases: novaclient.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
  • resp – Response or list of Response objects
NAME_ATTR = 'hypervisor_hostname'
class novaclient.v2.hypervisors.HypervisorManager(api)

Bases: novaclient.base.ManagerWithFind

get(hypervisor)

Get a specific hypervisor.

is_alphanum_id_allowed = True
list(obj, *args, **kwargs)

Get a list of hypervisors. :param marker: Begin returning hypervisor that appear later in the

keypair list than that represented by this keypair name (optional).
Parameters:limit – maximum number of keypairs to return (optional).
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 call hypervisor_stats.statistics() instead of hypervisors.statistics()

uptime(hypervisor)

Get the uptime for a specific hypervisor.

class novaclient.v2.hypervisors.HypervisorStats(manager, info, loaded=False, resp=None)

Bases: novaclient.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
  • resp – Response or list of Response objects
class novaclient.v2.hypervisors.HypervisorStatsManager(api)

Bases: novaclient.base.Manager

resource_class

alias of HypervisorStats

statistics()

Get hypervisor statistics over all compute nodes.

Previous topic

Floating_ips

Next topic

Keypairs

Project Source

This Page