The Service
class inherits from Resource
.
The base resource
_synchronized (bool) – This is not intended to be used directly. See
new()
and
existing()
.
connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow
Resource objects to be used without an active Connection, such as
in unit tests. Use of self._connection
in Resource code should
protect itself with a check for None.
Singular form of key for resource.
Plural form of key for resource.
The base part of the URI for this resource.
Allow list operation for this resource.
Allow update operation for this resource.
Allow delete operation for this resource.
The availability zone of service
Binary name of service
Disabled reason of service
Whether or not this service was forced down manually by an administrator after the service was fenced
The name of the host where service runs
Service name
State of service
Status of service
The date and time when the resource was updated
Find a resource by its name or id.
session (Adapter
) – The session to use for making this request.
name_or_id – This resource’s identifier, if needed by
the request. The default is None
.
ignore_missing (bool) – When set to False
ResourceNotFound
will be raised when
the resource does not exist. When set to True
, None will be
returned when attempting to find a nonexistent resource.
list_base_path (str) – base_path to be used when need listing resources.
microversion (str) – API version to override the negotiated one.
params (dict) – Any additional parameters to be passed into
underlying methods, such as to
existing()
in order to pass on
URI parameters.
The Resource
object matching the given name or id
or None if nothing matches.
openstack.exceptions.DuplicateResource
if more
than one resource is found for this request.
openstack.exceptions.ResourceNotFound
if nothing
is found and ignore_missing is False
.
Commit the state of the instance to the remote resource.
session (Adapter
) – The session to use for making this request.
prepend_key – A boolean indicating whether the resource_key should be prepended in a resource update request. Default to True.
retry_on_conflict (bool) – Whether to enable retries on HTTP
CONFLICT (409). Value of None
leaves the Adapter defaults.
base_path (str) – Base part of the URI for modifying resources, if
different from base_path
.
microversion (str) – API version to override the negotiated one.
kwargs (dict) – Parameters that will be passed to _prepare_request()
This Resource
instance.
MethodNotSupported
if
Resource.allow_commit
is not set to True
.
Update forced_down information of a service.
Update forced_down information of a service.
Enable service.
Disable service.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.