HostsΒΆ

host interface (1.1 extension).

class novaclient.v2.hosts.Host(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
host_name
reboot()
shutdown()
startup()
update(values)
class novaclient.v2.hosts.HostManager(api)

Bases: novaclient.base.ManagerWithFind

get(host)

Describes cpu/memory/hdd info for host.

Parameters:host – destination host name.
host_action(host, action)

Perform an action on a host.

Parameters:
  • host – The host to perform an action
  • action – The action to perform

returns: An instance of novaclient.base.TupleWithMeta

list(zone=None)
list_all(zone=None)
resource_class

alias of Host

update(host, values)

Update status or maintenance mode for the host.

Previous topic

Servers

Next topic

Agents

Project Source

This Page