cinder.api.contrib.hosts module¶
The hosts admin extension.
- class HostController¶
- Bases: - Controller- The Hosts API controller for the OpenStack API. - index(req)¶
 - show(req, id)¶
- Shows the volume usage info given by hosts. - Parameters:
- req – security context 
- id – hostname 
 
- Returns:
- dict – the host resources dictionary. ex.: - {'host': [{'resource': D},..]} D: {'host': 'hostname','project': 'admin', 'volume_count': 1, 'total_volume_gb': 2048} 
 
 - update(req, id, service=None, *args, **kwargs)¶
 - wsgi_actions = {}¶
 - wsgi_extensions = []¶
 
- class Hosts(ext_mgr)¶
- Bases: - ExtensionDescriptor- Admin-only host administration. - alias = 'os-hosts'¶
 - get_resources()¶
- List of extensions.ResourceExtension extension objects. - Resources define new nouns, and are accessible through URLs. 
 - name = 'Hosts'¶
 - updated = '2011-06-29T00:00:00+00:00'¶
 
- check_host(fn)¶
- Makes sure that the host exists. 
