Managed Databases v4.119.0
Managed Database Engines List
Display all available Managed Database engine types and versions. Engine IDs are used when creating new Managed Databases.
Beta: This endpoint is in open beta. During the beta period, Managed Databases will not incur any charges.
If you deploy a Managed Database during this time, you will receive a notice with pricing details in advance of the
GA (general availability) release.
When accessing this endpoint, please make sure to prepend all requests with /v4beta
instead of /v4
, and be
aware that this endpoint may receive breaking updates in the future. This notice will be removed when this
endpoint is out of beta.
Authorizations
Query Parameters
page |
The page of a collection to return. |
page_size |
The number of items to return per page. |
Request Samples
curl https://api.linode.com/v4beta/databases/engines/
curl https://api.linode.com/v4beta/databases/engines/
linode-cli databases engines
Response Samples
{
"data": [
{
"engine": "mysql",
"id": "mysql/8.0.26",
"version": "8.0.26"
}
],
"page": 1,
"pages": 1,
"results": 1
}
{
"data": [
{
"engine": "mysql",
"id": "mysql/8.0.26",
"version": "8.0.26"
}
],
"page": 1,
"pages": 1,
"results": 1
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
data | array of objects
| ||||||
page | integer The current page. | ||||||
pages | integer The total number of pages. | ||||||
results | integer The total number of results. |
data | array of objects
| ||||||
page | integer The current page. | ||||||
pages | integer The total number of pages. | ||||||
results | integer The total number of results. |
errors | array of objects
|
Managed Database Engine View
Display information for a single Managed Database engine type and version.
Beta: This endpoint is in open beta. During the beta period, Managed Databases will not incur any charges.
If you deploy a Managed Database during this time, you will receive a notice with pricing details in advance of the
GA (general availability) release.
When accessing this endpoint, please make sure to prepend all requests with /v4beta
instead of /v4
, and be
aware that this endpoint may receive breaking updates in the future. This notice will be removed when this
endpoint is out of beta.
Authorizations
Path Parameters
engineId | string RequiredThe ID of the Managed Database engine. |
Query Parameters
page |
The page of a collection to return. |
page_size |
The number of items to return per page. |
Request Samples
curl https://api.linode.com/v4beta/databases/engines/mysql/5.7.30
curl https://api.linode.com/v4beta/databases/engines/mysql/5.7.30
linode-cli databases engine-view mysql/5.7.30
Response Samples
{
"engine": "mysql",
"id": "mysql/8.0.26",
"version": "8.0.26"
}
{
"engine": "mysql",
"id": "mysql/8.0.26",
"version": "8.0.26"
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
engine Filterable | string The Managed Database engine type. |
id | string The Managed Database engine ID in engine/version format. |
version Filterable | string The Managed Database engine version. |
engine Filterable | string The Managed Database engine type. |
id | string The Managed Database engine ID in engine/version format. |
version Filterable | string The Managed Database engine version. |
errors | array of objects
|
Managed Databases List
Display all accessible Managed Databases on your Account, regardless of engine type.
Only unrestricted Users can access this command, and have access regardless of the acting token’s OAuth scopes.
For more detailed information on a particular Database instance, make a request to its instance_uri
.
Beta: This endpoint is in open beta. During the beta period, Managed Databases will not incur any charges.
If you deploy a Managed Database during this time, you will receive a notice with pricing details in advance of the
GA (general availability) release.
When accessing this endpoint, please make sure to prepend all requests with /v4beta
instead of /v4
, and be
aware that this endpoint may receive breaking updates in the future. This notice will be removed when this
endpoint is out of beta.
Authorizations
personalAccessToken | |
oauth |
Query Parameters
page |
The page of a collection to return. |
page_size |
The number of items to return per page. |
Request Samples
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4beta/databases/instances
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4beta/databases/instances
linode-cli databases list
Response Samples
{
"data": [
{
"allow_list": [
"203.0.113.1/32",
"192.0.1.0/24"
],
"cluster_size": 3,
"created": "2022-01-01T00:01:01",
"encrypted": false,
"engine": "mysql",
"hosts": {
"primary": "lin-123-456-mysql-mysql-primary.servers.linodedb.net",
"secondary": "lin-123-456-mysql-primary-private.servers.linodedb.net"
},
"id": 123,
"instance_uri": "/v4/databases/mysql/instances/123",
"label": "example-db",
"region": "us-east",
"status": "active",
"type": "g6-dedicated-2",
"updated": "2022-01-01T00:01:01",
"version": "8.0.26"
}
],
"page": 1,
"pages": 1,
"results": 1
}
{
"data": [
{
"allow_list": [
"203.0.113.1/32",
"192.0.1.0/24"
],
"cluster_size": 3,
"created": "2022-01-01T00:01:01",
"encrypted": false,
"engine": "mysql",
"hosts": {
"primary": "lin-123-456-mysql-mysql-primary.servers.linodedb.net",
"secondary": "lin-123-456-mysql-primary-private.servers.linodedb.net"
},
"id": 123,
"instance_uri": "/v4/databases/mysql/instances/123",
"label": "example-db",
"region": "us-east",
"status": "active",
"type": "g6-dedicated-2",
"updated": "2022-01-01T00:01:01",
"version": "8.0.26"
}
],
"page": 1,
"pages": 1,
"results": 1
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
data | array of objects
| ||||||||||||||||||||||||||||||||
page | integer The current page. | ||||||||||||||||||||||||||||||||
pages | integer The total number of pages. | ||||||||||||||||||||||||||||||||
results | integer The total number of results. |
data | array of objects
| ||||||||||||||||||||||||||||||||
page | integer The current page. | ||||||||||||||||||||||||||||||||
pages | integer The total number of pages. | ||||||||||||||||||||||||||||||||
results | integer The total number of results. |
errors | array of objects
|
Managed MySQL Databases List
Display all accessible Managed MySQL Databases on your Account.
Only unrestricted Users can access this command, and have access regardless of the acting token’s OAuth scopes.
Beta: This endpoint is in open beta. During the beta period, Managed Databases will not incur any charges.
If you deploy a Managed Database during this time, you will receive a notice with pricing details in advance of the
GA (general availability) release.
When accessing this endpoint, please make sure to prepend all requests with /v4beta
instead of /v4
, and be
aware that this endpoint may receive breaking updates in the future. This notice will be removed when this
endpoint is out of beta.
Authorizations
personalAccessToken | |
oauth |
Request Samples
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4beta/databases/mysql/instances/
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4beta/databases/mysql/instances/
linode-cli databases mysql-list
Response Samples
{
"data": [
{
"allow_list": [
"203.0.113.1/32",
"192.0.1.0/24"
],
"cluster_size": 3,
"created": "2022-01-01T00:01:01",
"encrypted": false,
"engine": "mysql",
"hosts": {
"primary": "lin-123-456-mysql-mysql-primary.servers.linodedb.net",
"secondary": "lin-123-456-mysql-primary-private.servers.linodedb.net"
},
"id": 123,
"label": "example-db",
"region": "us-east",
"replication_type": "semi_synch",
"ssl_connection": true,
"status": "active",
"type": "g6-dedicated-2",
"updated": "2022-01-01T00:01:01",
"version": "8.0.26"
}
],
"page": 1,
"pages": 1,
"results": 1
}
{
"data": [
{
"allow_list": [
"203.0.113.1/32",
"192.0.1.0/24"
],
"cluster_size": 3,
"created": "2022-01-01T00:01:01",
"encrypted": false,
"engine": "mysql",
"hosts": {
"primary": "lin-123-456-mysql-mysql-primary.servers.linodedb.net",
"secondary": "lin-123-456-mysql-primary-private.servers.linodedb.net"
},
"id": 123,
"label": "example-db",
"region": "us-east",
"replication_type": "semi_synch",
"ssl_connection": true,
"status": "active",
"type": "g6-dedicated-2",
"updated": "2022-01-01T00:01:01",
"version": "8.0.26"
}
],
"page": 1,
"pages": 1,
"results": 1
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
data | array of objects
| ||||||||||||||||||||||||||||||||||
page | integer The current page. | ||||||||||||||||||||||||||||||||||
pages | integer The total number of pages. | ||||||||||||||||||||||||||||||||||
results | integer The total number of results. |
data | array of objects
| ||||||||||||||||||||||||||||||||||
page | integer The current page. | ||||||||||||||||||||||||||||||||||
pages | integer The total number of pages. | ||||||||||||||||||||||||||||||||||
results | integer The total number of results. |
errors | array of objects
|
Managed MySQL Database Create
Provision a Managed MySQL Database.
Only unrestricted Users can access this command, and have access regardless of the acting token’s OAuth scopes.
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 on this list can access the Managed Database. All other sources are blocked.
- 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, daily backups. Up to seven backups are stored for each Managed Database, providing restore points for each day of the past week.
Beta: This endpoint is in open beta. During the beta period, Managed Databases will not incur any charges.
If you deploy a Managed Database during this time, you will receive a notice with pricing details in advance of the
GA (general availability) release.
When accessing this endpoint, please make sure to prepend all requests with /v4beta
instead of /v4
, and be
aware that this endpoint may receive breaking updates in the future. This notice will be removed when this
endpoint is out of beta.
Authorizations
personalAccessToken | |
oauth |
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 ( |
cluster_size | integer Enum:
1
3 The number of Linode Instance nodes deployed to the Managed Database. Defaults to Choosing 3 nodes creates a high availability cluster consisting of 1 primary node and 2 replica nodes. |
encrypted | boolean Whether the Managed Databases is encrypted. Defaults to |
engine Required | string The Managed Database engine in engine/version format. |
label Filterable Required | string
3..32
charactersA unique, user-defined string referring to the Managed Database. |
region Filterable 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 Must be Must be |
ssl_connection | boolean Whether to require SSL credentials to establish a connection to the Managed Database. Defaults to Use the Managed MySQL Database Credentials View ( GET /databases/mysql/instances/{instanceId}/credentials) command for access information. |
type Filterable Required | string The Linode Instance type used by the Managed Database for its nodes. |
Request Samples
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X POST -d '{
"label": "example-db",
"region": "us-east",
"type": "g6-dedicated-2",
"cluster_size": 3,
"engine": "mysql/8.0.26",
"encrypted": false,
"ssl_connection": false,
"replication_type": "semi_synch",
"allow_list": [
"203.0.113.1",
"192.0.1.0/24"
]
}' \
https://api.linode.com/v4beta/databases/mysql/instances
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X POST -d '{
"label": "example-db",
"region": "us-east",
"type": "g6-dedicated-2",
"cluster_size": 3,
"engine": "mysql/8.0.26",
"encrypted": false,
"ssl_connection": false,
"replication_type": "semi_synch",
"allow_list": [
"203.0.113.1",
"192.0.1.0/24"
]
}' \
https://api.linode.com/v4beta/databases/mysql/instances
linode-cli databases mysql-create \
--label example-db1 \
--region us-east \
--type g6-dedicated-2 \
--cluster_size 3 \
--engine mysql/8.0.26 \
--encrypted false \
--ssl_connection false \
--replication_type semi_synch \
--allow_list 203.0.113.1 \
--allow_list 192.0.1.0/24
Response Samples
{
"allow_list": [
"203.0.113.1/32",
"192.0.1.0/24"
],
"cluster_size": 3,
"created": "2022-01-01T00:01:01",
"encrypted": false,
"engine": "mysql",
"hosts": {
"primary": "lin-123-456-mysql-mysql-primary.servers.linodedb.net",
"secondary": "lin-123-456-mysql-primary-private.servers.linodedb.net"
},
"id": 123,
"label": "example-db",
"region": "us-east",
"replication_type": "semi_synch",
"ssl_connection": true,
"status": "active",
"type": "g6-dedicated-2",
"updated": "2022-01-01T00:01:01",
"version": "8.0.26"
}
{
"allow_list": [
"203.0.113.1/32",
"192.0.1.0/24"
],
"cluster_size": 3,
"created": "2022-01-01T00:01:01",
"encrypted": false,
"engine": "mysql",
"hosts": {
"primary": "lin-123-456-mysql-mysql-primary.servers.linodedb.net",
"secondary": "lin-123-456-mysql-primary-private.servers.linodedb.net"
},
"id": 123,
"label": "example-db",
"region": "us-east",
"replication_type": "semi_synch",
"ssl_connection": true,
"status": "active",
"type": "g6-dedicated-2",
"updated": "2022-01-01T00:01:01",
"version": "8.0.26"
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
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 ( | ||||
cluster_size | integer Enum:
1
3 The number of Linode Instance nodes deployed to the Managed Database. Defaults to Choosing 3 nodes creates a high availability cluster consisting of 1 primary node and 2 replica nodes. | ||||
created | string <date-time> When this Managed Database was created. | ||||
encrypted | boolean Whether the Managed Databases is encrypted. Defaults to | ||||
engine Filterable | string The Managed Database engine type. | ||||
hosts | object The primary and secondary hosts for the Managed Database. These are assigned after provisioning is complete.
| ||||
id | integer A unique ID that can be used to identify and reference the Managed Database. | ||||
label Filterable | string
3..32
charactersA unique, user-defined string referring to the Managed Database. | ||||
region Filterable | 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 Must be Must be | ||||
ssl_connection | boolean Whether to require SSL credentials to establish a connection to the Managed Database. Defaults to Use the Managed MySQL Database Credentials View ( GET /databases/mysql/instances/{instanceId}/credentials) command for access information. | ||||
status Filterable | string Enum:
provisioning
active
suspending
suspended
resuming
restoring
failed
degraded The operating status of the Managed Database. | ||||
type Filterable | string The Linode Instance type used by the Managed Database for its nodes. | ||||
updated | string <date-time> When this Managed Database was last updated. | ||||
version Filterable | string The Managed Database engine version. |
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 ( | ||||
cluster_size | integer Enum:
1
3 The number of Linode Instance nodes deployed to the Managed Database. Defaults to Choosing 3 nodes creates a high availability cluster consisting of 1 primary node and 2 replica nodes. | ||||
created | string <date-time> When this Managed Database was created. | ||||
encrypted | boolean Whether the Managed Databases is encrypted. Defaults to | ||||
engine Filterable | string The Managed Database engine type. | ||||
hosts | object The primary and secondary hosts for the Managed Database. These are assigned after provisioning is complete.
| ||||
id | integer A unique ID that can be used to identify and reference the Managed Database. | ||||
label Filterable | string
3..32
charactersA unique, user-defined string referring to the Managed Database. | ||||
region Filterable | 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 Must be Must be | ||||
ssl_connection | boolean Whether to require SSL credentials to establish a connection to the Managed Database. Defaults to Use the Managed MySQL Database Credentials View ( GET /databases/mysql/instances/{instanceId}/credentials) command for access information. | ||||
status Filterable | string Enum:
provisioning
active
suspending
suspended
resuming
restoring
failed
degraded The operating status of the Managed Database. | ||||
type Filterable | string The Linode Instance type used by the Managed Database for its nodes. | ||||
updated | string <date-time> When this Managed Database was last updated. | ||||
version Filterable | string The Managed Database engine version. |
errors | array of objects
|
Managed MySQL Database Delete
Remove a Managed MySQL Database from your Account.
The Database must have an active
status to perform this command.
Only unrestricted Users can access this command, and have access regardless of the acting token’s OAuth scopes.
Beta: This endpoint is in open beta. During the beta period, Managed Databases will not incur any charges.
If you deploy a Managed Database during this time, you will receive a notice with pricing details in advance of the
GA (general availability) release.
When accessing this endpoint, please make sure to prepend all requests with /v4beta
instead of /v4
, and be
aware that this endpoint may receive breaking updates in the future. This notice will be removed when this
endpoint is out of beta.
Authorizations
personalAccessToken | |
oauth |
Path Parameters
instanceId | integer RequiredThe ID of the Managed MySQL Database. |
Request Samples
curl -H "Authorization: Bearer $TOKEN" \
-X DELETE \
https://api.linode.com/v4beta/databases/mysql/instances/123
curl -H "Authorization: Bearer $TOKEN" \
-X DELETE \
https://api.linode.com/v4beta/databases/mysql/instances/123
linode-cli databases mysql-delete 123
Response Samples
{}
{}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
errors | array of objects
|
Managed MySQL Database View
Display information for a single, accessible Managed MySQL Database on your Account.
Only unrestricted Users can access this command, and have access regardless of the acting token’s OAuth scopes.
Beta: This endpoint is in open beta. During the beta period, Managed Databases will not incur any charges.
If you deploy a Managed Database during this time, you will receive a notice with pricing details in advance of the
GA (general availability) release.
When accessing this endpoint, please make sure to prepend all requests with /v4beta
instead of /v4
, and be
aware that this endpoint may receive breaking updates in the future. This notice will be removed when this
endpoint is out of beta.
Authorizations
personalAccessToken | |
oauth |
Path Parameters
instanceId | integer RequiredThe ID of the Managed MySQL Database. |
Request Samples
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4beta/databases/mysql/instances/123
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4beta/databases/mysql/instances/123
linode-cli databases mysql-view 123
Response Samples
{
"allow_list": [
"203.0.113.1/32",
"192.0.1.0/24"
],
"cluster_size": 3,
"created": "2022-01-01T00:01:01",
"encrypted": false,
"engine": "mysql",
"hosts": {
"primary": "lin-123-456-mysql-mysql-primary.servers.linodedb.net",
"secondary": "lin-123-456-mysql-primary-private.servers.linodedb.net"
},
"id": 123,
"label": "example-db",
"region": "us-east",
"replication_type": "semi_synch",
"ssl_connection": true,
"status": "active",
"type": "g6-dedicated-2",
"updated": "2022-01-01T00:01:01",
"version": "8.0.26"
}
{
"allow_list": [
"203.0.113.1/32",
"192.0.1.0/24"
],
"cluster_size": 3,
"created": "2022-01-01T00:01:01",
"encrypted": false,
"engine": "mysql",
"hosts": {
"primary": "lin-123-456-mysql-mysql-primary.servers.linodedb.net",
"secondary": "lin-123-456-mysql-primary-private.servers.linodedb.net"
},
"id": 123,
"label": "example-db",
"region": "us-east",
"replication_type": "semi_synch",
"ssl_connection": true,
"status": "active",
"type": "g6-dedicated-2",
"updated": "2022-01-01T00:01:01",
"version": "8.0.26"
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
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 ( | ||||
cluster_size | integer Enum:
1
3 The number of Linode Instance nodes deployed to the Managed Database. Defaults to Choosing 3 nodes creates a high availability cluster consisting of 1 primary node and 2 replica nodes. | ||||
created | string <date-time> When this Managed Database was created. | ||||
encrypted | boolean Whether the Managed Databases is encrypted. Defaults to | ||||
engine Filterable | string The Managed Database engine type. | ||||
hosts | object The primary and secondary hosts for the Managed Database. These are assigned after provisioning is complete.
| ||||
id | integer A unique ID that can be used to identify and reference the Managed Database. | ||||
label Filterable | string
3..32
charactersA unique, user-defined string referring to the Managed Database. | ||||
region Filterable | 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 Must be Must be | ||||
ssl_connection | boolean Whether to require SSL credentials to establish a connection to the Managed Database. Defaults to Use the Managed MySQL Database Credentials View ( GET /databases/mysql/instances/{instanceId}/credentials) command for access information. | ||||
status Filterable | string Enum:
provisioning
active
suspending
suspended
resuming
restoring
failed
degraded The operating status of the Managed Database. | ||||
type Filterable | string The Linode Instance type used by the Managed Database for its nodes. | ||||
updated | string <date-time> When this Managed Database was last updated. | ||||
version Filterable | string The Managed Database engine version. |
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 ( | ||||
cluster_size | integer Enum:
1
3 The number of Linode Instance nodes deployed to the Managed Database. Defaults to Choosing 3 nodes creates a high availability cluster consisting of 1 primary node and 2 replica nodes. | ||||
created | string <date-time> When this Managed Database was created. | ||||
encrypted | boolean Whether the Managed Databases is encrypted. Defaults to | ||||
engine Filterable | string The Managed Database engine type. | ||||
hosts | object The primary and secondary hosts for the Managed Database. These are assigned after provisioning is complete.
| ||||
id | integer A unique ID that can be used to identify and reference the Managed Database. | ||||
label Filterable | string
3..32
charactersA unique, user-defined string referring to the Managed Database. | ||||
region Filterable | 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 Must be Must be | ||||
ssl_connection | boolean Whether to require SSL credentials to establish a connection to the Managed Database. Defaults to Use the Managed MySQL Database Credentials View ( GET /databases/mysql/instances/{instanceId}/credentials) command for access information. | ||||
status Filterable | string Enum:
provisioning
active
suspending
suspended
resuming
restoring
failed
degraded The operating status of the Managed Database. | ||||
type Filterable | string The Linode Instance type used by the Managed Database for its nodes. | ||||
updated | string <date-time> When this Managed Database was last updated. | ||||
version Filterable | string The Managed Database engine version. |
errors | array of objects
|
Managed MySQL Database Update
Update a Managed MySQL Database.
The Database must have an active
status to perform this command.
Only unrestricted Users can access this command, and have access regardless of the acting token’s OAuth scopes.
Updating addresses in the allow_list
overwrites any existing addresses.
- IP addresses on this list can access the Managed Database. All other sources are blocked.
- 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.
Beta: This endpoint is in open beta. During the beta period, Managed Databases will not incur any charges.
If you deploy a Managed Database during this time, you will receive a notice with pricing details in advance of the
GA (general availability) release.
When accessing this endpoint, please make sure to prepend all requests with /v4beta
instead of /v4
, and be
aware that this endpoint may receive breaking updates in the future. This notice will be removed when this
endpoint is out of beta.
Authorizations
personalAccessToken | |
oauth |
Path Parameters
instanceId | integer RequiredThe ID of the Managed MySQL Database. |
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 ( |
label Filterable | string
3..32
charactersA unique, user-defined string referring to the Managed Database. |
Request Samples
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X PUT -d '{
"label": "example-db",
"allow_list": [
"203.0.113.1",
"192.0.1.0/24"
]
}' \
https://api.linode.com/v4beta/databases/mysql/instances/123
curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X PUT -d '{
"label": "example-db",
"allow_list": [
"203.0.113.1",
"192.0.1.0/24"
]
}' \
https://api.linode.com/v4beta/databases/mysql/instances/123
linode-cli databases mysql-update 123 \
--label example-db \
--allow_list 203.0.113.1 \
--allow_list 192.0.1.0/24
Response Samples
{
"allow_list": [
"203.0.113.1/32",
"192.0.1.0/24"
],
"cluster_size": 3,
"created": "2022-01-01T00:01:01",
"encrypted": false,
"engine": "mysql",
"hosts": {
"primary": "lin-123-456-mysql-mysql-primary.servers.linodedb.net",
"secondary": "lin-123-456-mysql-primary-private.servers.linodedb.net"
},
"id": 123,
"label": "example-db",
"region": "us-east",
"replication_type": "semi_synch",
"ssl_connection": true,
"status": "active",
"type": "g6-dedicated-2",
"updated": "2022-01-01T00:01:01",
"version": "8.0.26"
}
{
"allow_list": [
"203.0.113.1/32",
"192.0.1.0/24"
],
"cluster_size": 3,
"created": "2022-01-01T00:01:01",
"encrypted": false,
"engine": "mysql",
"hosts": {
"primary": "lin-123-456-mysql-mysql-primary.servers.linodedb.net",
"secondary": "lin-123-456-mysql-primary-private.servers.linodedb.net"
},
"id": 123,
"label": "example-db",
"region": "us-east",
"replication_type": "semi_synch",
"ssl_connection": true,
"status": "active",
"type": "g6-dedicated-2",
"updated": "2022-01-01T00:01:01",
"version": "8.0.26"
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
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 ( | ||||
cluster_size | integer Enum:
1
3 The number of Linode Instance nodes deployed to the Managed Database. Defaults to Choosing 3 nodes creates a high availability cluster consisting of 1 primary node and 2 replica nodes. | ||||
created | string <date-time> When this Managed Database was created. | ||||
encrypted | boolean Whether the Managed Databases is encrypted. Defaults to | ||||
engine Filterable | string The Managed Database engine type. | ||||
hosts | object The primary and secondary hosts for the Managed Database. These are assigned after provisioning is complete.
| ||||
id | integer A unique ID that can be used to identify and reference the Managed Database. | ||||
label Filterable | string
3..32
charactersA unique, user-defined string referring to the Managed Database. | ||||
region Filterable | 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 Must be Must be | ||||
ssl_connection | boolean Whether to require SSL credentials to establish a connection to the Managed Database. Defaults to Use the Managed MySQL Database Credentials View ( GET /databases/mysql/instances/{instanceId}/credentials) command for access information. | ||||
status Filterable | string Enum:
provisioning
active
suspending
suspended
resuming
restoring
failed
degraded The operating status of the Managed Database. | ||||
type Filterable | string The Linode Instance type used by the Managed Database for its nodes. | ||||
updated | string <date-time> When this Managed Database was last updated. | ||||
version Filterable | string The Managed Database engine version. |
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 ( | ||||
cluster_size | integer Enum:
1
3 The number of Linode Instance nodes deployed to the Managed Database. Defaults to Choosing 3 nodes creates a high availability cluster consisting of 1 primary node and 2 replica nodes. | ||||
created | string <date-time> When this Managed Database was created. | ||||
encrypted | boolean Whether the Managed Databases is encrypted. Defaults to | ||||
engine Filterable | string The Managed Database engine type. | ||||
hosts | object The primary and secondary hosts for the Managed Database. These are assigned after provisioning is complete.
| ||||
id | integer A unique ID that can be used to identify and reference the Managed Database. | ||||
label Filterable | string
3..32
charactersA unique, user-defined string referring to the Managed Database. | ||||
region Filterable | 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 Must be Must be | ||||
ssl_connection | boolean Whether to require SSL credentials to establish a connection to the Managed Database. Defaults to Use the Managed MySQL Database Credentials View ( GET /databases/mysql/instances/{instanceId}/credentials) command for access information. | ||||
status Filterable | string Enum:
provisioning
active
suspending
suspended
resuming
restoring
failed
degraded The operating status of the Managed Database. | ||||
type Filterable | string The Linode Instance type used by the Managed Database for its nodes. | ||||
updated | string <date-time> When this Managed Database was last updated. | ||||
version Filterable | string The Managed Database engine version. |
errors | array of objects
|
Managed MySQL Database Backups List
Display all backups for an accessible Managed MySQL Database on your Account.
The Database must not be provisioning to perform this command.
Only unrestricted Users can access this command, and have access regardless of the acting token’s OAuth scopes.
At this time, only automatically scheduled backups (type auto
) are available.
Database backups are created every 24 hours at 0:00 UTC. Each backup is retained for 7 days.
Beta: This endpoint is in open beta. During the beta period, Managed Databases will not incur any charges.
If you deploy a Managed Database during this time, you will receive a notice with pricing details in advance of the
GA (general availability) release.
When accessing this endpoint, please make sure to prepend all requests with /v4beta
instead of /v4
, and be
aware that this endpoint may receive breaking updates in the future. This notice will be removed when this
endpoint is out of beta.
Authorizations
personalAccessToken | |
oauth |
Path Parameters
instanceId | integer RequiredThe ID of the Managed MySQL Database. |
Request Samples
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4beta/databases/mysql/instances/123/backups
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4beta/databases/mysql/instances/123/backups
linode-cli databases mysql-backups-list 123
Response Samples
{
"data": [
{
"created": "2022-01-01T00:01:01",
"id": 123,
"label": "Scheduled - 02/04/22 11:11 UTC-XcCRmI",
"type": "auto"
}
],
"page": 1,
"pages": 1,
"results": 1
}
{
"data": [
{
"created": "2022-01-01T00:01:01",
"id": 123,
"label": "Scheduled - 02/04/22 11:11 UTC-XcCRmI",
"type": "auto"
}
],
"page": 1,
"pages": 1,
"results": 1
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
data | array of objects
| ||||||||
page | integer The current page. | ||||||||
pages | integer The total number of pages. | ||||||||
results | integer The total number of results. |
data | array of objects
| ||||||||
page | integer The current page. | ||||||||
pages | integer The total number of pages. | ||||||||
results | integer The total number of results. |
errors | array of objects
|
Managed MySQL Database Backup View
Display information for a single backup for an accessible Managed MySQL Database on your Account.
The Database must not be provisioning to perform this command.
Only unrestricted Users can access this command, and have access regardless of the acting token’s OAuth scopes.
Beta: This endpoint is in open beta. During the beta period, Managed Databases will not incur any charges.
If you deploy a Managed Database during this time, you will receive a notice with pricing details in advance of the
GA (general availability) release.
When accessing this endpoint, please make sure to prepend all requests with /v4beta
instead of /v4
, and be
aware that this endpoint may receive breaking updates in the future. This notice will be removed when this
endpoint is out of beta.
Authorizations
personalAccessToken | |
oauth |
Path Parameters
instanceId | integer RequiredThe ID of the Managed MySQL Database. |
backupId | integer RequiredThe ID of the Managed MySQL Database backup. |
Request Samples
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4beta/databases/mysql/instances/123/backups/456
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4beta/databases/mysql/instances/123/backups/456
linode-cli databases mysql-backup-view 123 456
Response Samples
{
"created": "2022-01-01T00:01:01",
"id": 123,
"label": "Scheduled - 02/04/22 11:11 UTC-XcCRmI",
"type": "auto"
}
{
"created": "2022-01-01T00:01:01",
"id": 123,
"label": "Scheduled - 02/04/22 11:11 UTC-XcCRmI",
"type": "auto"
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
created Filterable | string <datetime> A time value given in a combined date and time format that represents when the database backup was created. |
id | integer The ID of the database backup object. |
label | string The database backup’s label, for display purposes only. |
type Filterable | string Enum:
snapshot
auto The type of database backup, determined by how the backup was created. |
created Filterable | string <datetime> A time value given in a combined date and time format that represents when the database backup was created. |
id | integer The ID of the database backup object. |
label | string The database backup’s label, for display purposes only. |
type Filterable | string Enum:
snapshot
auto The type of database backup, determined by how the backup was created. |
errors | array of objects
|
Managed MySQL Database Backup Restore
Restore a backup to a Managed MySQL Database on your Account.
The Database must have an active
status to perform this command.
Only unrestricted Users can access this command, and have access regardless of the acting token’s OAuth scopes.
Note: Restoring from a backup will erase all existing data on the database instance and replace it with backup data.
Note: Currently, restoring a backup after resetting Managed Database credentials results in a failed cluster. Please contact Customer Support if this occurs.
Beta: This endpoint is in open beta. During the beta period, Managed Databases will not incur any charges.
If you deploy a Managed Database during this time, you will receive a notice with pricing details in advance of the
GA (general availability) release.
When accessing this endpoint, please make sure to prepend all requests with /v4beta
instead of /v4
, and be
aware that this endpoint may receive breaking updates in the future. This notice will be removed when this
endpoint is out of beta.
Authorizations
personalAccessToken | |
oauth |
Path Parameters
instanceId | integer RequiredThe ID of the Managed MySQL Database. |
backupId | integer RequiredThe ID of the Managed MySQL Database backup. |
Request Samples
curl -H "Authorization: Bearer $TOKEN" \
-X POST https://api.linode.com/v4beta/databases/mysql/instances/123/backups/456/restore
curl -H "Authorization: Bearer $TOKEN" \
-X POST https://api.linode.com/v4beta/databases/mysql/instances/123/backups/456/restore
linode-cli databases mysql-backup-restore 123 456
Response Samples
{}
{}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
errors | array of objects
|
Managed MySQL Database Credentials View
Display the the root username and password for a Managed MySQL Database.
The Database must have an active
status to perform this command.
Only unrestricted Users can access this command, and have access regardless of the acting token’s OAuth scopes.
Beta: This endpoint is in open beta. During the beta period, Managed Databases will not incur any charges.
If you deploy a Managed Database during this time, you will receive a notice with pricing details in advance of the
GA (general availability) release.
When accessing this endpoint, please make sure to prepend all requests with /v4beta
instead of /v4
, and be
aware that this endpoint may receive breaking updates in the future. This notice will be removed when this
endpoint is out of beta.
Authorizations
personalAccessToken | |
oauth |
Path Parameters
instanceId | integer RequiredThe ID of the Managed MySQL Database. |
Request Samples
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4beta/databases/mysql/instances/123/credentials/
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4beta/databases/mysql/instances/123/credentials/
linode-cli databases mysql-creds-view 123
Response Samples
{
"password": "s3cur3P@ssw0rd",
"username": "linroot"
}
{
"password": "s3cur3P@ssw0rd",
"username": "linroot"
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
password | string The randomly-generated root password for the Managed Database instance. |
username | string The root username for the Managed Database instance. |
password | string The randomly-generated root password for the Managed Database instance. |
username | string The root username for the Managed Database instance. |
errors | array of objects
|
Managed MySQL Database Credentials Reset
Reset the root password for a Managed MySQL Database.
The Database must have an active
status to perform this command.
A new root password is randomly generated and accessible with the Managed MySQL Database Credentials View ( GET /databases/mysql/instances/{instanceId}/credentials) command.
Only unrestricted Users can access this command, and have access regardless of the acting token’s OAuth scopes.
Note: Note that it may take several seconds for credentials to reset.
Beta: This endpoint is in open beta. During the beta period, Managed Databases will not incur any charges.
If you deploy a Managed Database during this time, you will receive a notice with pricing details in advance of the
GA (general availability) release.
When accessing this endpoint, please make sure to prepend all requests with /v4beta
instead of /v4
, and be
aware that this endpoint may receive breaking updates in the future. This notice will be removed when this
endpoint is out of beta.
Authorizations
personalAccessToken | |
oauth |
Path Parameters
instanceId | integer RequiredThe ID of the Managed MySQL Database. |
Request Samples
curl -H "Authorization: Bearer $TOKEN" \
-X POST https://api.linode.com/v4beta/databases/mysql/instances/123/credentials/reset
curl -H "Authorization: Bearer $TOKEN" \
-X POST https://api.linode.com/v4beta/databases/mysql/instances/123/credentials/reset
linode-cli databases mysql-creds-reset 123
Response Samples
{}
{}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
errors | array of objects
|
Managed MySQL Database SSL Certificate View
Display the SSL CA certificate for an accessible Managed MySQL Database.
The Database must have an active
status to perform this command.
Only unrestricted Users can access this command, and have access regardless of the acting token’s OAuth scopes.
Beta: This endpoint is in open beta. During the beta period, Managed Databases will not incur any charges.
If you deploy a Managed Database during this time, you will receive a notice with pricing details in advance of the
GA (general availability) release.
When accessing this endpoint, please make sure to prepend all requests with /v4beta
instead of /v4
, and be
aware that this endpoint may receive breaking updates in the future. This notice will be removed when this
endpoint is out of beta.
Authorizations
personalAccessToken | |
oauth |
Path Parameters
instanceId | integer RequiredThe ID of the Managed MySQL Database. |
Request Samples
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4beta/databases/mysql/instances/123/ssl
curl -H "Authorization: Bearer $TOKEN" \
https://api.linode.com/v4beta/databases/mysql/instances/123/ssl
linode-cli databases mysql-ssl-cert 123
Response Samples
{
"ca_certificate": "LS0tLS1CRUdJ...=="
}
{
"ca_certificate": "LS0tLS1CRUdJ...=="
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
ca_certificate | string <base64> The base64-encoded SSL CA certificate for the Managed Database instance. |
ca_certificate | string <base64> The base64-encoded SSL CA certificate for the Managed Database instance. |
errors | array of objects
|
Managed Database Types List
Display all Managed Database node types. The type and number of nodes determine the resources and price of a Managed Database instance.
Each Managed Database can have one node type. In the case of a high availabilty Database, all nodes are provisioned according to the chosen type.
Beta: This endpoint is in open beta. During the beta period, Managed Databases will not incur any charges.
If you deploy a Managed Database during this time, you will receive a notice with pricing details in advance of the
GA (general availability) release.
When accessing this endpoint, please make sure to prepend all requests with /v4beta
instead of /v4
, and be
aware that this endpoint may receive breaking updates in the future. This notice will be removed when this
endpoint is out of beta.
Authorizations
Query Parameters
page |
The page of a collection to return. |
page_size |
The number of items to return per page. |
Request Samples
curl https://api.linode.com/v4beta/databases/types
curl https://api.linode.com/v4beta/databases/types
linode-cli databases types
Response Samples
{
"data": [
{
"class": "nanode",
"cluster_size": [
{
"price": {
"hourly": 0.03,
"monthly": 20
},
"quantity": 1
}
],
"deprecated": false,
"disk": 25600,
"id": "g6-nanode-1",
"label": "DBaaS MySQL - Nanode 1GB",
"memory": 1024,
"vcpus": 1
}
],
"page": 1,
"pages": 1,
"results": 1
}
{
"data": [
{
"class": "nanode",
"cluster_size": [
{
"price": {
"hourly": 0.03,
"monthly": 20
},
"quantity": 1
}
],
"deprecated": false,
"disk": 25600,
"id": "g6-nanode-1",
"label": "DBaaS MySQL - Nanode 1GB",
"memory": 1024,
"vcpus": 1
}
],
"page": 1,
"pages": 1,
"results": 1
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
data | array of objects
| ||||||||||||||||||||||||
page | integer The current page. | ||||||||||||||||||||||||
pages | integer The total number of pages. | ||||||||||||||||||||||||
results | integer The total number of results. |
data | array of objects
| ||||||||||||||||||||||||
page | integer The current page. | ||||||||||||||||||||||||
pages | integer The total number of pages. | ||||||||||||||||||||||||
results | integer The total number of results. |
errors | array of objects
|
Managed Database Type View
Display the details of a single Managed Database type. The type and number of nodes determine the resources and price of a Managed Database instance.
Beta: This endpoint is in open beta. During the beta period, Managed Databases will not incur any charges.
If you deploy a Managed Database during this time, you will receive a notice with pricing details in advance of the
GA (general availability) release.
When accessing this endpoint, please make sure to prepend all requests with /v4beta
instead of /v4
, and be
aware that this endpoint may receive breaking updates in the future. This notice will be removed when this
endpoint is out of beta.
Authorizations
Path Parameters
typeId | string RequiredThe ID of the Managed Database type. |
Query Parameters
page |
The page of a collection to return. |
page_size |
The number of items to return per page. |
Request Samples
curl https://api.linode.com/v4beta/databases/types/g6-nanode-1
curl https://api.linode.com/v4beta/databases/types/g6-nanode-1
linode-cli databases type-view g6-nanode-1
Response Samples
{
"class": "nanode",
"cluster_size": [
{
"price": {
"hourly": 0.03,
"monthly": 20
},
"quantity": 1
}
],
"deprecated": false,
"disk": 25600,
"id": "g6-nanode-1",
"label": "DBaaS MySQL - Nanode 1GB",
"memory": 1024,
"vcpus": 1
}
{
"class": "nanode",
"cluster_size": [
{
"price": {
"hourly": 0.03,
"monthly": 20
},
"quantity": 1
}
],
"deprecated": false,
"disk": 25600,
"id": "g6-nanode-1",
"label": "DBaaS MySQL - Nanode 1GB",
"memory": 1024,
"vcpus": 1
}
{
"errors": [
{
"field": "fieldname",
"reason": "fieldname must be a valid value"
}
]
}
Responses
class | string The compute class category. | ||||||||
cluster_size | array of objects A pricing list depending on the number of nodes.
| ||||||||
deprecated Filterable | boolean Whether this Database plan type has been deprecated and is no longer available. | ||||||||
disk | integer The amount of disk space set aside for Databases of this plan type. The value is represented in megabytes. | ||||||||
id | string The ID representing the Managed Database node plan type. | ||||||||
label | string A human-readable string that describes each plan type. For display purposes only. | ||||||||
memory | integer The amount of RAM allocated to Database created of this plan type. The value is represented in megabytes. | ||||||||
vcpus | integer The integer of number CPUs allocated to databases of this plan type. |
class | string The compute class category. | ||||||||
cluster_size | array of objects A pricing list depending on the number of nodes.
| ||||||||
deprecated Filterable | boolean Whether this Database plan type has been deprecated and is no longer available. | ||||||||
disk | integer The amount of disk space set aside for Databases of this plan type. The value is represented in megabytes. | ||||||||
id | string The ID representing the Managed Database node plan type. | ||||||||
label | string A human-readable string that describes each plan type. For display purposes only. | ||||||||
memory | integer The amount of RAM allocated to Database created of this plan type. The value is represented in megabytes. | ||||||||
vcpus | integer The integer of number CPUs allocated to databases of this plan type. |
errors | array of objects
|