The Instance
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.
The flavor of the instance
Links associated with the instance
The name of the instance
The status of the instance
The size of the volume
A dictionary of datastore details, often including ‘type’ and ‘version’ keys
The ID of this instance
The region this instance resides in
The name of the host
The timestamp when this instance was created
The timestamp when this instance was updated
Enable login for the root user.
This operation enables login from any host for the root user and provides the user with a generated root password.
session (Adapter
) – The session to use for making this request.
A dictionary with keys name
and password
specifying
the login credentials.
Determine if root is enabled on an instance.
Determine if root is enabled on this particular instance.
session (Adapter
) – The session to use for making this request.
True
if root user is enabled for a specified database
instance or False
otherwise.
Restart the database instance
None
Resize the database instance
None
Resize the volume attached to the instance
None
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.