Managed Databases v4.176.0

List managed databases

GET https://api.linode.com/v4/databases/instances

This operation is currently only available for customers who already have an active Managed Database.

Display all Managed Databases that are accessible by your User, regardless of engine type.

For more detailed information on a particular Database instance, make a request to its instance_uri.


Authorizations

personalAccessToken
oauthdatabases:read_only

Query Parameters

page
Type:
integer >= 1
Default: 1
Default:
1

The page of a collection to return.

page_size
Type:
integer 25..500
Default: 100
Default:
100

The number of items to return per page.

Request Samples

Response Samples

Responses

List managed MySQL databases

GET https://api.linode.com/v4/databases/mysql/instances

This operation is currently only available for customers who already have an active Managed Database.

Display all accessible Managed MySQL Databases.


Authorizations

personalAccessToken
oauthdatabases:read_only

Query Parameters

page
Type:
integer >= 1
Default: 1
Default:
1

The page of a collection to return.

page_size
Type:
integer 25..500
Default: 100
Default:
100

The number of items to return per page.

Request Samples

Response Samples

Responses

Create a managed MySQL database

POST https://api.linode.com/v4/databases/mysql/instances

This operation is currently only available for customers who already have an active Managed Database.

Provision a Managed MySQL Database.

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

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, run the Update a managed MySQL database operation.


Authorizations

personalAccessToken
oauthdatabases:read_write

Request Samples

Request Body Schema

allow_list
array of strings

A 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_size
integer
Enum: 1 3 Default: 1

The 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.

encrypted
boolean
Default: false

Whether the Managed Databases is encrypted.

engine
Required
string

The Managed Database engine in engine/version format.

label
Required
string 3..32 characters

A unique, user-defined string referring to the Managed Database.

region
Required
string

The Region ID for the Managed Database.

replication_type
string
Enum: none asynch semi_synch

The 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_connection
boolean
Default: true

Whether to require SSL credentials to establish a connection to the Managed Database.

Run the Get managed MySQL database credentials operation for access information.

type
Required
string

The Linode Instance type used by the Managed Database for its nodes.

Response Samples

Responses

Delete a managed MySQL database

DELETE https://api.linode.com/v4/databases/mysql/instances/{instanceId}

This operation is currently only available for customers who already have an active Managed Database.

Remove 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 operation.

Only unrestricted Users can access this operation, and have access regardless of the acting token’s OAuth scopes.


Authorizations

personalAccessToken
oauthdatabases:read_write

Path Parameters

instanceIdinteger
Required

The ID of the Managed PostgreSQL Database.

Request Samples

Response Samples

Responses

Get a managed MySQL database

GET https://api.linode.com/v4/databases/mysql/instances/{instanceId}

This operation is currently only available for customers who already have an active Managed Database.

Display information for a single, accessible Managed MySQL Database.


Authorizations

personalAccessToken
oauthdatabases:read_only

Path Parameters

instanceIdinteger
Required

The ID of the Managed PostgreSQL Database.

Request Samples

Response Samples

Responses

Update a managed MySQL database

PUT https://api.linode.com/v4/databases/mysql/instances/{instanceId}

This operation is currently only available for customers who already have an active Managed Database.

Update a Managed MySQL Database.

Requires read_write access to the Database.

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

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 operation 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.


Authorizations

personalAccessToken
oauthdatabases:read_write

Path Parameters

instanceIdinteger
Required

The ID of the Managed PostgreSQL Database.

Request Samples

Request Body Schema

allow_list
array of strings

A 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.

label
string 3..32 characters

A unique, user-defined string referring to the Managed Database.

type
string

Request re-sizing of your cluster to a Linode Type with more disk space. For example, you could request a Linode Type that uses a higher plan.

  • Needs to be a Linode Type with more disk space than your current Linode.

  • Resizing to a larger Linode Type can accrue additional cost. Review the price output in the List types operation for more information.

  • You can’t update the allow_list and set a new type in the same request.

  • Any active updates to your cluster need to complete before you can request a resize. The reverse is also true: An active resizing needs to complete before you can perform any other update.

updates
object

Configuration settings for automated patch update maintenance for the Managed Database.

day_of_week
integer 1..7

The day to perform maintenance. 1=Monday, 2=Tuesday, etc.

duration
integer 1..3

The maximum maintenance window time in hours.

frequency
string
Enum: weekly monthly Default: weekly

Whether maintenance occurs on a weekly or monthly basis.

hour_of_day
integer 0..23

The hour to begin maintenance based in UTC time.

week_of_month
Nullable
integer 1..4

The week of the month to perform monthly frequency updates. Defaults to null.

  • Required for monthly frequency updates.

  • Must be null for weekly frequency updates.

Response Samples

Responses

Patch a managed MySQL database

POST https://api.linode.com/v4/databases/mysql/instances/{instanceId}/patch

This operation is currently only available for customers who already have an active Managed Database.

Apply 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 Update a managed MySQL database operation.

Requires read_write access to the Database.

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

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.


Authorizations

personalAccessToken
oauthdatabases:read_write

Path Parameters

instanceIdinteger
Required

The ID of the Managed PostgreSQL Database.

Request Samples

Response Samples

Responses