List your Serverless SQL Databases
List all Serverless SQL Databases for a given Scaleway Organization or Scaleway Project. By default, the databases returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. For the name parameter, the value you include will be checked against the whole name string to see if it includes the string you put in the parameter.
path Parameters
regionThe region you want to target
query Parameters
project_idUUID of the Scaleway project.
organization_idFilter by the UUID of the Scaleway organization. (UUID format)
pagePage number.
page_sizePage size.
nameFilter by the name of the database.
order_bySorting criteria. One of created_at_asc, created_at_desc, name_asc, name_desc.
List your Serverless SQL Databases › Responses
List of the databases.
total_countTotal count of Serverless SQL Databases.
Create a new Serverless SQL Database
You must provide the following parameters: organization_id, project_id, name, cpu_min, cpu_max. You can also provide from_backup_id to create a database from a backup.
path Parameters
regionThe region you want to target
Create a new Serverless SQL Database › Request Body
project_idThe ID of your Scaleway project.
nameThe name of the Serverless SQL Database to be created.
cpu_minThe minimum number of CPU units for your Serverless SQL Database.
cpu_maxThe maximum number of CPU units for your Serverless SQL Database.
from_backup_idThe ID of the backup to create the database from.
Create a new Serverless SQL Database › Responses
idUUID that uniquely identifies your Serverless SQL DB Database.
nameName of the database.
statusStatus of the Serverless SQL Ddatabase. One of unknown_status | ready | creating | deleting | error | restoring | locked.
endpointEndpoint of the database.
organization_idThe ID of your Scaleway organization.
project_idProject ID the database belongs to.
regionRegion of the database.
created_atCreation date. (RFC 3339 format)
cpu_minThe minimum number of CPU units for your Serverless SQL Database.
cpu_maxThe maximum number of CPU units for your Serverless SQL Database.
cpu_currentThe current number of CPU units allocated to your Serverless SQL Database.
startedWhether your Serverless SQL Database is running or not.
engine_major_versionThe major version of the underlying database engine.
Get a database information
Retrieve information about your Serverless SQL Database. You must provide the database_id parameter.
path Parameters
regionThe region you want to target
database_idUUID of the Serverless SQL DB database.
Get a database information › Responses
idUUID that uniquely identifies your Serverless SQL DB Database.
nameName of the database.
statusStatus of the Serverless SQL Ddatabase. One of unknown_status | ready | creating | deleting | error | restoring | locked.
endpointEndpoint of the database.
organization_idThe ID of your Scaleway organization.
project_idProject ID the database belongs to.
regionRegion of the database.
created_atCreation date. (RFC 3339 format)
cpu_minThe minimum number of CPU units for your Serverless SQL Database.
cpu_maxThe maximum number of CPU units for your Serverless SQL Database.
cpu_currentThe current number of CPU units allocated to your Serverless SQL Database.
startedWhether your Serverless SQL Database is running or not.
engine_major_versionThe major version of the underlying database engine.
Delete a database
Deletes a database. You must provide the database_id parameter. All data stored in the database will be permanently deleted.
path Parameters
regionThe region you want to target
database_idUUID of the Serverless SQL Database.
Delete a database › Responses
idUUID that uniquely identifies your Serverless SQL DB Database.
nameName of the database.
statusStatus of the Serverless SQL Ddatabase. One of unknown_status | ready | creating | deleting | error | restoring | locked.
endpointEndpoint of the database.
organization_idThe ID of your Scaleway organization.
project_idProject ID the database belongs to.
regionRegion of the database.
created_atCreation date. (RFC 3339 format)
cpu_minThe minimum number of CPU units for your Serverless SQL Database.
cpu_maxThe maximum number of CPU units for your Serverless SQL Database.
cpu_currentThe current number of CPU units allocated to your Serverless SQL Database.
startedWhether your Serverless SQL Database is running or not.
engine_major_versionThe major version of the underlying database engine.
Update database information
Update CPU limits of your Serverless SQL Database. You must provide the database_id parameter.
path Parameters
regionThe region you want to target
database_idUUID of the Serverless SQL Database.
Update database information › Request Body
cpu_minThe minimum number of CPU units for your Serverless SQL Database.
cpu_maxThe maximum number of CPU units for your Serverless SQL Database.
Update database information › Responses
idUUID that uniquely identifies your Serverless SQL DB Database.
nameName of the database.
statusStatus of the Serverless SQL Ddatabase. One of unknown_status | ready | creating | deleting | error | restoring | locked.
endpointEndpoint of the database.
organization_idThe ID of your Scaleway organization.
project_idProject ID the database belongs to.
regionRegion of the database.
created_atCreation date. (RFC 3339 format)
cpu_minThe minimum number of CPU units for your Serverless SQL Database.
cpu_maxThe maximum number of CPU units for your Serverless SQL Database.
cpu_currentThe current number of CPU units allocated to your Serverless SQL Database.
startedWhether your Serverless SQL Database is running or not.
engine_major_versionThe major version of the underlying database engine.
Restore a database from a backup
Restore a database from a backup. You must provide the backup_id parameter.
path Parameters
regionThe region you want to target
database_idUUID of the Serverless SQL Database.
Restore a database from a backup › Request Body
backup_idUUID of the Serverless SQL Database backup to restore.
Restore a database from a backup › Responses
idUUID that uniquely identifies your Serverless SQL DB Database.
nameName of the database.
statusStatus of the Serverless SQL Ddatabase. One of unknown_status | ready | creating | deleting | error | restoring | locked.
endpointEndpoint of the database.
organization_idThe ID of your Scaleway organization.
project_idProject ID the database belongs to.
regionRegion of the database.
created_atCreation date. (RFC 3339 format)
cpu_minThe minimum number of CPU units for your Serverless SQL Database.
cpu_maxThe maximum number of CPU units for your Serverless SQL Database.
cpu_currentThe current number of CPU units allocated to your Serverless SQL Database.
startedWhether your Serverless SQL Database is running or not.
engine_major_versionThe major version of the underlying database engine.