The Instance class inherits from Resource.
Construct a Resource to interact with a service’s REST API.
The Resource class offers two class methods to construct resource objects, which are preferrable to entering through this initializer. See Resource.new() and Resource.existing().
Parameters: |
|
---|
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
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.
Parameters: | session (Session) – The session to use for making this request. |
---|---|
Returns: | 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.
Parameters: | session (Session) – The session to use for making this request. |
---|---|
Returns: | True if root user is enabled for a specified database instance or False otherwise. |
Restart the database instance
Returns: | None |
---|
Resize the database instance
Returns: | None |
---|
Resize the volume attached to the instance
Returns: | None |
---|
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.