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
Parameters: | attrs (dict) – Keyword arguments which will be used to create a Database, comprised of the properties on the Database class. |
---|---|
Returns: | The results of server creation |
Return type: | Database |
Delete a database
Parameters: |
|
---|---|
Returns: | None |
Find a single database
Parameters: |
|
---|---|
Returns: | One Database or None |
Return a generator of databases
Parameters: | **query (kwargs) – Optional query parameters to be sent to limit the resources being returned. |
---|---|
Returns: | A generator of database objects |
Return type: | Database |
Get a single database
Parameters: | database – The value can be the ID of a database or a Database instance. |
---|---|
Returns: | One Database |
Raises: | ResourceNotFound when no resource can be found. |
Find a single flavor
Parameters: |
|
---|---|
Returns: | One Flavor or None |
Get a single flavor
Parameters: | flavor – The value can be the ID of a flavor or a Flavor instance. |
---|---|
Returns: | One Flavor |
Raises: | ResourceNotFound when no resource can be found. |
Return a generator of flavors
Parameters: | **query (kwargs) – Optional query parameters to be sent to limit the resources being returned. |
---|---|
Returns: | A generator of flavor objects |
Return type: | Flavor |
Create a new instance from attributes
Parameters: | attrs (dict) – Keyword arguments which will be used to create a Instance, comprised of the properties on the Instance class. |
---|---|
Returns: | The results of server creation |
Return type: | Instance |
Delete an instance
Parameters: |
|
---|---|
Returns: | None |
Find a single instance
Parameters: |
|
---|---|
Returns: | One Instance or None |
Get a single instance
Parameters: | instance – The value can be the ID of an instance or a Instance instance. |
---|---|
Returns: | One Instance |
Raises: | ResourceNotFound when no resource can be found. |
Return a generator of instances
Parameters: | **query (kwargs) – Optional query parameters to be sent to limit the resources being returned. |
---|---|
Returns: | A generator of instance objects |
Return type: | Instance |
Update a instance
Parameters: | instance – Either the id of a instance or a Instance instance. |
---|---|
Attrs kwargs: | The attributes to update on the instance represented by value. |
Returns: | The updated instance |
Return type: | Instance |
Create a new user from attributes
Parameters: | attrs (dict) – Keyword arguments which will be used to create a User, comprised of the properties on the User class. |
---|---|
Returns: | The results of server creation |
Return type: | User |
Delete a user
Parameters: |
|
---|---|
Returns: | None |
Find a single user
Parameters: |
|
---|---|
Returns: | One User or None |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.