Database ======== Databases are databases that reside within database instances. This class inherits from TopLevelResource and has direct access to the resource’s database object. +-------------------------+---------------------------------------------------+ | Attribute | Description | +=========================+===================================================+ | resource_id | The provider id of this database | +-------------------------+---------------------------------------------------+ | organization_service_id | The ID of the parent organization service (cloud) | +-------------------------+---------------------------------------------------+ | region_name | The region that the database resides in | +-------------------------+---------------------------------------------------+ | database_id | The provider ID of the database | +-------------------------+---------------------------------------------------+ | name | The name of the database | +-------------------------+---------------------------------------------------+ | instance_resource_id | The provider ID of the associated instance | +-------------------------+---------------------------------------------------+ | collation | The implemented collation set for the database | +-------------------------+---------------------------------------------------+ | character_set | The character set of the database | +-------------------------+---------------------------------------------------+ .. container:: magic-block-textarea **Database Operations** ``database`` | ``delete(user_resource_id=None)`` | Delete this resource. If wrapped in a with JobQueue() block, this will queue the deletion job to the wrapped queue, otherwise it calls immediately. ``static get_db_class()`` ``static get_provider_id_field()`` ``static get_resource_type()`` | ``get_state()`` | Retrieve the route state. ``get_supported_actions()`` | ``handle_resource_created(user_resource_id=None, project_resource_id=None)`` | This should be called when a resource is created/discovered after the basic data is added to the database. This gives an opportunity for post-addition hooks (assignment to groups, alerts, etc.). ``top_level_resource = True``