Class | CloudDB::Instance |
In: |
lib/clouddb/instance.rb
|
Parent: | Object |
connection | [R] | |
created | [R] | |
flavor_id | [R] | |
hostname | [R] | |
id | [R] | |
links | [R] | |
name | [R] | |
root_enabled | [R] | |
status | [R] | |
updated | [R] | |
volume_size | [R] | |
volume_used | [R] |
Creates a brand new database and associates it with the current instance. Returns true if successful.
Options:
:name - Specifies the database name for creating the database. *required* :character_set - Set of symbols and encodings. The default character set is utf8. :collate - Set of rules for comparing characters in a character set. The default value for collate is utf8_general_ci.
Creates brand new databases and associates them with the current instance. Returns true if successful.
Options for each database in the array:
:name - Specifies the database name for creating the database. *required* :character_set - Set of symbols and encodings. The default character set is utf8. :collate - Set of rules for comparing characters in a character set. The default value for collate is utf8_general_ci.
Creates brand new users and associates them with the current instance. Returns true if successful.
Options for each user in the array:
:name - Name of the user for the database(s). *required* :password - User password for database access. *required* :databases - An array of databases with at least one database. *required*
This operation changes the memory size of the instance, assuming a valid flavorRef is provided. Restarts MySQL in the process.
Options:
:flavor_ref - reference to a flavor as specified in the response from the List Flavors API call. *required*
This operation supports resizing the attached volume for an instance. It supports only increasing the volume size and does not support decreasing the size. The volume size is in gigabytes (GB) and must be an integer.
Options:
:size - specifies the volume size in gigabytes (GB). The value specified must be between 1 and 10. *required*