Skip to main content

mysql_instances

Overview

Namemysql_instances
TypeResource
Idlinode.databases.mysql_instances

Fields

NameDatatypeDescription
idintegerA unique ID that can be used to identify and reference the Managed Database.
allow_listarrayA list of IP addresses that can access the Managed Database. Each item can be a single IP address or a range in CIDR format.

By default, this is an empty array ([]), which blocks all connections (both public and private) to the Managed Database.

If 0.0.0.0/0 is a value in this list, then all IP addresses can access the Managed Database.
cluster_sizeintegerThe number of Linode Instance nodes deployed to the Managed Database.

Choosing 3 nodes creates a high availability cluster consisting of 1 primary node and 2 replica nodes.
createdstringWhen this Managed Database was created.
encryptedbooleanWhether the Managed Databases is encrypted.
enginestringThe Managed Database engine type.
hostsobjectThe primary and secondary hosts for the Managed Database. These are assigned after provisioning is complete.
labelstringA unique, user-defined string referring to the Managed Database.
portintegerThe access port for this Managed Database.
regionstringThe Region ID for the Managed Database.
replication_typestringThe replication method used for the Managed Database.

Defaults to none for a single cluster and semi_synch for a high availability cluster.

Must be none for a single node cluster.

Must be asynch or semi_synch for a high availability cluster.
ssl_connectionbooleanWhether to require SSL credentials to establish a connection to the Managed Database.

Use the Managed MySQL Database Credentials View (GET /databases/mysql/instances/{instanceId}/credentials) command for access information.
statusstringThe operating status of the Managed Database.
typestringThe Linode Instance type used by the Managed Database for its nodes.
updatedstringWhen this Managed Database was last updated.
updatesobjectConfiguration settings for automated patch update maintenance for the Managed Database.
versionstringThe Managed Database engine version.

Methods

NameAccessible byRequired ParamsDescription
getDatabasesMySQLInstanceSELECTinstanceIdDisplay information for a single, accessible Managed MySQL Database.
getDatabasesMySQLInstancesSELECTDisplay all accessible Managed MySQL Databases.
deleteDatabasesMySQLInstanceDELETEinstanceIdRemove a Managed MySQL Database from your Account.

Requires read_write access to the Database.

The Database must have an active, failed, or degraded status to perform this command.

Only unrestricted Users can access this command, and have access regardless of the acting token's OAuth scopes.
_getDatabasesMySQLInstanceEXECinstanceIdDisplay information for a single, accessible Managed MySQL Database.
_getDatabasesMySQLInstancesEXECDisplay all accessible Managed MySQL Databases.
postDatabasesMySQLInstancePatchEXECinstanceIdApply security patches and updates to the underlying operating system of the Managed MySQL Database. This function runs during regular maintenance windows, which are configurable with the Managed MySQL Database Update (PUT /databases/mysql/instances/{instanceId}) command.

Requires read_write access to the Database.

The Database must have an active status to perform this command.

Note

If your database cluster is configured with a single node, you will experience downtime during this maintenance. Consider upgrading to a high availability plan to avoid any downtime due to maintenance.

The database software is not updated automatically. To upgrade to a new database engine version, consider deploying a new Managed Database with your preferred version. You can then migrate your databases from the original Managed Database cluster to the new one.
postDatabasesMySQLInstancesEXECdata__engine, data__label, data__region, data__typeProvision a Managed MySQL Database.

Restricted Users must have the add_databases grant to use this command.

New instances can take approximately 15 to 30 minutes to provision.

The allow_list is used to control access to the Managed Database.

IP addresses and ranges in this list can access the Managed Database. All other sources are blocked.

If 0.0.0.0/0 is a value in this list, then all IP addresses can access the Managed Database.

Entering an empty array ([]) blocks all connections (both public and private) to the Managed Database.

All Managed Databases include automatic, daily backups. Up to seven backups are automatically stored for each Managed Database, providing restore points for each day of the past week.

All Managed Databases include automatic patch updates, which apply security patches and updates to the underlying operating system of the Managed MySQL Database during configurable maintenance windows.

If your database cluster is configured with a single node, you will experience downtime during this maintenance window when any updates occur. It's recommended that you adjust this window to match a time that will be the least disruptive for your application and users. You may also want to consider upgrading to a high availability plan to avoid any downtime due to maintenance.

The database software is not updated automatically. To upgrade to a new database engine version, consider deploying a new Managed Database with your preferred version. You can then migrate your databases from the original Managed Database cluster to the new one.

To modify update the maintenance window for a Database, use the Managed MySQL Database Update (PUT /databases/mysql/instances/{instanceId}) command.
putDatabasesMySQLInstanceEXECinstanceIdUpdate a Managed MySQL Database.

Requires read_write access to the Database.

The Database must have an active status to perform this command.

Updating addresses in the allow_list overwrites any existing addresses.

IP addresses and ranges in this list can access the Managed Database. All other sources are blocked.

If 0.0.0.0/0 is a value in this list, then all IP addresses can access the Managed Database.

Entering an empty array ([]) blocks all connections (both public and private) to the Managed Database.

Note: Updates to the allow_list may take a short period of time to complete, making this command inappropriate for rapid successive updates to this property.

All Managed Databases include automatic patch updates, which apply security patches and updates to the underlying operating system of the Managed MySQL Database. The maintenance window for these updates is configured with the Managed Database's updates property.

If your database cluster is configured with a single node, you will experience downtime during this maintenance window when any updates occur. It's recommended that you adjust this window to match a time that will be the least disruptive for your application and users. You may also want to consider upgrading to a high availability plan to avoid any downtime due to maintenance.

The database software is not updated automatically. To upgrade to a new database engine version, consider deploying a new Managed Database with your preferred version. You can then migrate your databases from the original Managed Database cluster to the new one.