Previous topic

The nova.api.openstack.compute.contrib.floating_ips Module

Next topic

The nova.api.openstack.compute.contrib.keypairs Module

This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.2 docs or all OpenStack docs too.

The nova.api.openstack.compute.contrib.hosts Module

The hosts admin extension.

class HostActionTemplate

Bases: nova.api.openstack.xmlutil.TemplateBuilder

construct()
class HostController

Bases: object

The Hosts API controller for the OpenStack API.

index(req)
reboot(req, id)
show(req, id)

Shows the physical/usage resource given by hosts.

Parameters:
  • context – security context
  • host – hostname
Returns:

expected to use HostShowTemplate. ex.:

{'host': {'resource':D},..}
D: {'host': 'hostname','project': 'admin',
    'cpu': 1, 'memory_mb': 2048, 'disk_gb': 30}

shutdown(req, id)
startup(req, id)
update(req, id, service=None, *args, **kwargs)
class HostDeserializer(metadata=None)

Bases: nova.api.openstack.wsgi.XMLDeserializer

default(string)
class HostIndexTemplate

Bases: nova.api.openstack.xmlutil.TemplateBuilder

construct()
class HostShowTemplate

Bases: nova.api.openstack.xmlutil.TemplateBuilder

construct()
class HostUpdateTemplate

Bases: nova.api.openstack.xmlutil.TemplateBuilder

construct()
class Hosts(ext_mgr)

Bases: nova.api.openstack.extensions.ExtensionDescriptor

Admin-only host administration

alias = 'os-hosts'
get_resources()
name = 'Hosts'
namespace = 'http://docs.openstack.org/compute/ext/hosts/api/v1.1'
updated = '2011-06-29T00:00:00+00:00'
check_host(fn)

Makes sure that the host exists.