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)
Returns:A dict in the format:
{‘hosts’: [{‘host_name’: ‘some.host.name’,
‘service’: ‘cells’},
{‘host_name’: ‘some.other.host.name’,
‘service’: ‘cells’},
{‘host_name’: ‘some.celly.host.name’,
‘service’: ‘cells’},
{‘host_name’: ‘console1.host.com’,
‘service’: ‘consoleauth’},
{‘host_name’: ‘network1.host.com’,
‘service’: ‘network’},
{‘host_name’: ‘netwwork2.host.com’,
‘service’: ‘network’},
{‘host_name’: ‘sched1.host.com’,
‘service’: ‘scheduler’},
{‘host_name’: ‘sched2.host.com’,
‘service’: ‘scheduler’},
{‘host_name’: ‘vol1.host.com’,
‘service’: ‘volume’}]}
reboot(req, id)
show(req, id)

Shows the physical/usage resource given by hosts.

Parameters:id – 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, body)
Parameters:body – example format {‘status’: ‘enable’, ‘maintenance_mode’: ‘enable’}
Returns:
class HostIndexTemplate

Bases: nova.api.openstack.xmlutil.TemplateBuilder

construct()
class HostShowTemplate

Bases: nova.api.openstack.xmlutil.TemplateBuilder

construct()
class HostUpdateDeserializer(metadata=None)

Bases: nova.api.openstack.wsgi.XMLDeserializer

default(string)
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'

Previous topic

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

Next topic

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

This Page