ServicesΒΆ

service interface

class novaclient.v2.services.Service(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.services.ServiceManager(api)

Bases: novaclient.base.ManagerWithFind

delete(service_id)

Delete a service.

disable(host, binary)

Disable the service specified by hostname and binary.

disable_log_reason(host, binary, reason)

Disable the service with reason.

enable(host, binary)

Enable the service specified by hostname and binary.

force_down(obj, *args, **kwargs)

Force service state to down specified by hostname and binary.

list(host=None, binary=None)

Get a list of services.

Parameters:host – destination host name.
resource_class

alias of Service