For details on how to use database, see Using OpenStack Database
The database high-level interface is available through the database
member of a Connection
object. The
database
member will only be added if the service is detected.
Create a new database from attributes
Delete a database
database – The value can be either the ID of a database or a
Database
instance.
instance – This parameter needs to be specified when
an ID is given as database.
It can be either the ID of an instance
or a Instance
ignore_missing (bool) – When set to False
ResourceNotFound
will be
raised when the database does not exist.
When set to True
, no exception will be set when
attempting to delete a nonexistent database.
None
Find a single database
name_or_id – The name or ID of a database.
instance – This can be either the ID of an instance
or a Instance
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.
One Database
or None
Return a generator of databases
Get a single database
Find a single flavor
name_or_id – The name or ID of a flavor.
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.
One Flavor
or None
Get a single flavor
Return a generator of flavors
query (kwargs) – Optional query parameters to be sent to limit the resources being returned.
A generator of flavor objects
Create a new instance from attributes
Delete an instance
instance – The value can be either the ID of an instance or a
Instance
instance.
ignore_missing (bool) – When set to False
ResourceNotFound
will be
raised when the instance does not exist.
When set to True
, no exception will be set when
attempting to delete a nonexistent instance.
None
Find a single instance
name_or_id – The name or ID of a instance.
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.
One Instance
or None
Get a single instance
Return a generator of instances
query (kwargs) – Optional query parameters to be sent to limit the resources being returned.
A generator of instance objects
Create a new user from attributes
Delete a user
user – The value can be either the ID of a user or a
User
instance.
instance – This parameter needs to be specified when
an ID is given as user.
It can be either the ID of an instance
or a Instance
ignore_missing (bool) – When set to False
ResourceNotFound
will be
raised when the user does not exist.
When set to True
, no exception will be set when
attempting to delete a nonexistent user.
None
Find a single user
name_or_id – The name or ID of a user.
instance – This can be either the ID of an instance
or a Instance
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.
One User
or None
Return a generator of users
Get a single user
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.