Scaleway logo
Managed Database for Redis™ API

A Redis™ Database Instance, also known as a Redis™ cluster, consists of either one standalone node or a cluster composed of three to six nodes. The cluster uses partitioning to split the keyspace. Each partition is replicated and can be reassigned or elected as the primary when necessary. Standalone mode creates a standalone database provisioned on a single node.


List Redis™ Database Instances

GET
https://api.scaleway.com
/redis/v1/zones/{zone}/clusters

List all Redis™ Database Instances (Redis™ cluster) in the specified zone. By default, the Database Instances returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. You can define additional parameters for your query, such as tags, name, organization_id and version.

List Redis™ Database Instances › path Parameters

zone
​string · enum · required

The zone you want to target

Enum values:
fr-par-1
fr-par-2
nl-ams-1
nl-ams-2
pl-waw-1
pl-waw-2

List Redis™ Database Instances › query Parameters

tags
​string[]

Filter by Database Instance tags.

name
​string

Filter by Database Instance names.

Criteria to use when ordering the list.

Enum values:
created_at_asc
created_at_desc
name_asc
name_desc
Default: created_at_asc
project_id
​string

Filter by Project ID. (UUID format)

organization_id
​string

Filter by Organization ID. (UUID format)

version
​string

Filter by Redis™ engine version.

page
​google.protobuf.Int32Value · int32
page_size
​integer · uint32

List Redis™ Database Instances › Responses

200

List all Database Instances.

total_count
​integer · uint32

Total count of Database Instances.


Create a Redis™ Database Instance

POST
https://api.scaleway.com
/redis/v1/zones/{zone}/clusters

Create a new Redis™ Database Instance (Redis™ cluster). You must set the zone, project_id, version, node_type, user_name and password parameters. Optionally you can define acl_rules, endpoints, tls_enabled and cluster_settings.

Create a Redis™ Database Instance › path Parameters

zone
​string · enum · required

The zone you want to target

Enum values:
fr-par-1
fr-par-2
nl-ams-1
nl-ams-2
pl-waw-1
pl-waw-2

Create a Redis™ Database Instance › Request Body

project_id
​string · required

Project ID in which to create the Database Instance. (UUID format)

version
​string · required

Redis™ engine version of the Database Instance.

node_type
​string · required

Type of node to use for the Database Instance.

user_name
​string · required

Name of the user created upon Database Instance creation.

password
​string · required

Password of the user.

name
​string

Name of the Database Instance.

tags
​string[]

Tags to apply to the Database Instance.

cluster_size
​integer | null · int32

Number of nodes in the Redis™ cluster.

List of ACLRuleSpec used to secure your publicly exposed cluster.

Zero or multiple EndpointSpec used to expose your cluster publicly and inside Private Networks. Zero or multiple EndpointSpec used to expose your cluster publicly and inside private networks. If no EndpoindSpec is given the cluster will be publicly exposed by default.

tls_enabled
​boolean

Defines whether or not TLS is enabled.

List of advanced settings to be set upon Database Instance initialization.

Create a Redis™ Database Instance › Responses

200
id
​string

UUID of the Database Instance. (UUID format)

name
​string

Name of the Database Instance.

project_id
​string

Project ID the Database Instance belongs to. (UUID format)

Status of the Database Instance.

Enum values:
unknown
ready
provisioning
configuring
deleting
error
autohealing
locked
Default: unknown
version
​string

Redis™ engine version of the Database Instance.

List of Database Instance endpoints.

tags
​string[]

List of tags applied to the Database Instance.

node_type
​string

Node type of the Database Instance.

created_at
​string | null · date-time

Creation date (Format ISO 8601). (RFC 3339 format)

updated_at
​string | null · date-time

Update date (Format ISO 8601). (RFC 3339 format)

tls_enabled
​boolean

Defines whether or not TLS is enabled.

List of Database Instance settings.

List of ACL rules.

cluster_size
​integer · uint32

Number of nodes of the Database Instance cluster.

zone
​string

Zone of the Database Instance.

user_name
​string

Name of the user associated to the cluster.

upgradable_versions
​string[]

List of engine versions the Database Instance can upgrade to.

srn
​string

Scaleway Resource Name of the Database Instance.


Get a Redis™ Database Instance

GET
https://api.scaleway.com
/redis/v1/zones/{zone}/clusters/{cluster_id}

Retrieve information about a Redis™ Database Instance (Redis™ cluster). Specify the cluster_id and region in your request to get information such as id, status, version, tls_enabled, cluster_settings, upgradable_versions and endpoints about your cluster in the response.

Get a Redis™ Database Instance › path Parameters

zone
​string · enum · required

The zone you want to target

Enum values:
fr-par-1
fr-par-2
nl-ams-1
nl-ams-2
pl-waw-1
pl-waw-2
cluster_id
​string · required

UUID of the cluster. (UUID format)

Get a Redis™ Database Instance › Responses

200
id
​string

UUID of the Database Instance. (UUID format)

name
​string

Name of the Database Instance.

project_id
​string

Project ID the Database Instance belongs to. (UUID format)

Status of the Database Instance.

Enum values:
unknown
ready
provisioning
configuring
deleting
error
autohealing
locked
Default: unknown
version
​string

Redis™ engine version of the Database Instance.

List of Database Instance endpoints.

tags
​string[]

List of tags applied to the Database Instance.

node_type
​string

Node type of the Database Instance.

created_at
​string | null · date-time

Creation date (Format ISO 8601). (RFC 3339 format)

updated_at
​string | null · date-time

Update date (Format ISO 8601). (RFC 3339 format)

tls_enabled
​boolean

Defines whether or not TLS is enabled.

List of Database Instance settings.

List of ACL rules.

cluster_size
​integer · uint32

Number of nodes of the Database Instance cluster.

zone
​string

Zone of the Database Instance.

user_name
​string

Name of the user associated to the cluster.

upgradable_versions
​string[]

List of engine versions the Database Instance can upgrade to.

srn
​string

Scaleway Resource Name of the Database Instance.


Delete a Redis™ Database Instance

DELETE
https://api.scaleway.com
/redis/v1/zones/{zone}/clusters/{cluster_id}

Delete a Redis™ Database Instance (Redis™ cluster), specified by the region and cluster_id parameters. Deleting a Database Instance is permanent, and cannot be undone. Note that upon deletion all your data will be lost.

Delete a Redis™ Database Instance › path Parameters

zone
​string · enum · required

The zone you want to target

Enum values:
fr-par-1
fr-par-2
nl-ams-1
nl-ams-2
pl-waw-1
pl-waw-2
cluster_id
​string · required

UUID of the Database Instance to delete. (UUID format)

Delete a Redis™ Database Instance › Responses

200
id
​string

UUID of the Database Instance. (UUID format)

name
​string

Name of the Database Instance.

project_id
​string

Project ID the Database Instance belongs to. (UUID format)

Status of the Database Instance.

Enum values:
unknown
ready
provisioning
configuring
deleting
error
autohealing
locked
Default: unknown
version
​string

Redis™ engine version of the Database Instance.

List of Database Instance endpoints.

tags
​string[]

List of tags applied to the Database Instance.

node_type
​string

Node type of the Database Instance.

created_at
​string | null · date-time

Creation date (Format ISO 8601). (RFC 3339 format)

updated_at
​string | null · date-time

Update date (Format ISO 8601). (RFC 3339 format)

tls_enabled
​boolean

Defines whether or not TLS is enabled.

List of Database Instance settings.

List of ACL rules.

cluster_size
​integer · uint32

Number of nodes of the Database Instance cluster.

zone
​string

Zone of the Database Instance.

user_name
​string

Name of the user associated to the cluster.

upgradable_versions
​string[]

List of engine versions the Database Instance can upgrade to.

srn
​string

Scaleway Resource Name of the Database Instance.


Update a Redis™ Database Instance

PATCH
https://api.scaleway.com
/redis/v1/zones/{zone}/clusters/{cluster_id}

Update the parameters of a Redis™ Database Instance (Redis™ cluster), including name, tags, user_name and password.

Update a Redis™ Database Instance › path Parameters

zone
​string · enum · required

The zone you want to target

Enum values:
fr-par-1
fr-par-2
nl-ams-1
nl-ams-2
pl-waw-1
pl-waw-2
cluster_id
​string · required

UUID of the Database Instance to update. (UUID format)

Update a Redis™ Database Instance › Request Body

name
​string | null

Name of the Database Instance.

tags
​array | null

Database Instance tags.

user_name
​string | null

Name of the Database Instance user.

password
​string | null

Password of the Database Instance user.

Update a Redis™ Database Instance › Responses

200
id
​string

UUID of the Database Instance. (UUID format)

name
​string

Name of the Database Instance.

project_id
​string

Project ID the Database Instance belongs to. (UUID format)

Status of the Database Instance.

Enum values:
unknown
ready
provisioning
configuring
deleting
error
autohealing
locked
Default: unknown
version
​string

Redis™ engine version of the Database Instance.

List of Database Instance endpoints.

tags
​string[]

List of tags applied to the Database Instance.

node_type
​string

Node type of the Database Instance.

created_at
​string | null · date-time

Creation date (Format ISO 8601). (RFC 3339 format)

updated_at
​string | null · date-time

Update date (Format ISO 8601). (RFC 3339 format)

tls_enabled
​boolean

Defines whether or not TLS is enabled.

List of Database Instance settings.

List of ACL rules.

cluster_size
​integer · uint32

Number of nodes of the Database Instance cluster.

zone
​string

Zone of the Database Instance.

user_name
​string

Name of the user associated to the cluster.

upgradable_versions
​string[]

List of engine versions the Database Instance can upgrade to.

srn
​string

Scaleway Resource Name of the Database Instance.


Get metrics of a Redis™ Database Instance

GET
https://api.scaleway.com
/redis/v1/zones/{zone}/clusters/{cluster_id}/metrics

Retrieve the metrics of a Redis™ Database Instance (Redis™ cluster). You can define the period from which to retrieve metrics by specifying the start_date and end_date.

Get metrics of a Redis™ Database Instance › path Parameters

zone
​string · enum · required

The zone you want to target

Enum values:
fr-par-1
fr-par-2
nl-ams-1
nl-ams-2
pl-waw-1
pl-waw-2
cluster_id
​string · required

UUID of the cluster. (UUID format)

Get metrics of a Redis™ Database Instance › query Parameters

start_at
​string · date-time

Start date. (RFC 3339 format)

end_at
​string · date-time

End date. (RFC 3339 format)

metric_name
​string

Name of the metric to gather.

Get metrics of a Redis™ Database Instance › Responses

200

Time series of metrics of a given cluster.


Scale up a Redis™ Database Instance

POST
https://api.scaleway.com
/redis/v1/zones/{zone}/clusters/{cluster_id}/migrate

Upgrade your Redis™ Database Instance, either by upgrading to a bigger node type (vertical scaling) or by adding more nodes to your Database Instance to increase your number of endpoints and distribute cache (horizontal scaling, available for clusters only). Note that scaling horizontally your Redis™ Database Instance will not renew its TLS certificate. In order to refresh the TLS certificate, you must use the Renew TLS certificate endpoint.

Scale up a Redis™ Database Instance › path Parameters

zone
​string · enum · required

The zone you want to target

Enum values:
fr-par-1
fr-par-2
nl-ams-1
nl-ams-2
pl-waw-1
pl-waw-2
cluster_id
​string · required

UUID of the Database Instance to update. (UUID format)

Scale up a Redis™ Database Instance › Request Body

version
​string | null

Redis™ engine version of the Database Instance.

node_type
​string | null

Type of node to use for the Database Instance.

cluster_size
​integer | null · uint32

Number of nodes for the Database Instance.

Scale up a Redis™ Database Instance › Responses

200
id
​string

UUID of the Database Instance. (UUID format)

name
​string

Name of the Database Instance.

project_id
​string

Project ID the Database Instance belongs to. (UUID format)

Status of the Database Instance.

Enum values:
unknown
ready
provisioning
configuring
deleting
error
autohealing
locked
Default: unknown
version
​string

Redis™ engine version of the Database Instance.

List of Database Instance endpoints.

tags
​string[]

List of tags applied to the Database Instance.

node_type
​string

Node type of the Database Instance.

created_at
​string | null · date-time

Creation date (Format ISO 8601). (RFC 3339 format)

updated_at
​string | null · date-time

Update date (Format ISO 8601). (RFC 3339 format)

tls_enabled
​boolean

Defines whether or not TLS is enabled.

List of Database Instance settings.

List of ACL rules.

cluster_size
​integer · uint32

Number of nodes of the Database Instance cluster.

zone
​string

Zone of the Database Instance.

user_name
​string

Name of the user associated to the cluster.

upgradable_versions
​string[]

List of engine versions the Database Instance can upgrade to.

srn
​string

Scaleway Resource Name of the Database Instance.