Managed Database for Redis™ APIv1

Download OpenAPI

Introduction

Managed Database for Redis™ is a low-latency caching solution. It allows you to easily set up a secure cache and lighten the load on your main database. Based on the in-memory data storage, Managed Database for Redis™ improves your application response time and helps you provide a better experience to your users.

Using Managed Database for Redis™ as a cache optimizes the speed of your requests as copies of the most frequently used data are stored in memory, making them accessible in milliseconds.

Refer to our dedicated concepts page to find definitions of the different terms referring to Managed Database for Redis™.

Requirements

To perform the following steps, you must first ensure that:

1. Configure your environment variables.

Note: This is an optional step that seeks to simplify your usage of the APIs.

2. Edit the POST request payload you will use to create your Redis™ Database Instance cluster. Replace the parameters in the following example:

ParameterDescription
project_idREQUIRED The ID of the Project you want to create your Database Instance in. To find your Project ID you can list the projects or consult the Scaleway console.
nameName of the Redis™ Database Instance
versionREQUIRED Version of the Redis™ engine. To check the list of available versions you can use the folowing endpoint: https://api.scaleway.com/redis/v1/zones/$SCW_ZONE/cluster-versions
tagsThe list of tags ["tag1", "tag2", ...] that will be associated with the Redis™ Database Instance. Tags can be appended to the query of the List Database Instances call to show a list of the Database Instances using a specific tag. You can also combine tags to list Database Instances that possess all of the appended tags.
node_typeREQUIRED The node type. To check the list of available node types you can use the folowing endpoint: https://api.scaleway.com/redis/v1/zones/$SCW_ZONE/node-types
user_nameREQUIRED Identifier of the default user, which is created concurrently with the Redis™ Database Instance
passwordREQUIRED Password for the default user
cluster_sizeINTEGER The number of nodes in the Redis™ Database Instance cluster. You can either set it to 1 for a standalone Database Instance, or set it to 3 to 6, for Database Instances in cluster mode
endpointsThe network configuration of your Redis™ Database Instance. You can either set private_network or public_network. If you set up a Private Network, you must define the ID of the Private Network connected to the cluster, and one IPv4 address endpoint per node. The address must be in the RFC1918 subnet range and follow the CIDR notation method.
tls_enabledBOOLEAN Whether or not to enable TLS certificates

3. Create a Redis™ Database Instance by running the following command. Make sure you include the payload you edited in the previous step.

4. List your Redis™ Database Instances.

5. Retrieve your Redis™ Database Instance IP and port from the response.

Note: In this tutorial, we will use 192.0.2.1 and 6379 as the IP and port, respectively.

6. Connect to your Database Instance with the Redis™ client.

Important: You can use only one of your node IP addresses at a time to connect to your Redis™ Database Instance, as the redis-cli does not differentiate Database Instances in standalone from those in cluster mode.

Note: The command below uses TLS to add an extra layer of security to your connection. The TLS certificate is generated automatically if you set tls_enabled to true. The certificates take on the following name structure: SSL_redis-<name-of-your-redis-database-instance>.pem. When using connectors other than redis-cli, you might need to specify the path to your certificate.

7. Enter the database password that you defined upon creation.

You are now connected to your Managed Database for Redis™.

For more information about Managed Database for Redis™, you can check out the following pages:

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

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.

GET
/redis/v1/zones/{zone}/clusters
Path Parameters

zone
required string
The zone you want to target. Possible values are fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-1 and pl-waw-2.
Query Parameters

tags
array
Filter by Database Instance tags.

name
string
Filter by Database Instance names.

order_by
string
Criteria to use when ordering the list. Possible values are created_at_asc, created_at_desc, name_asc and name_desc. The default value is 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
integer
Page number. The default value is 1.

page_size
integer
Page size. The default value is 20.
200 Response

clusters
array
List all Database Instances.

total_count
integer
Total count of Database Instances.
Response Example

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.

POST
/redis/v1/zones/{zone}/clusters
Path Parameters

zone
required string
The zone you want to target. Possible values are fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-1 and pl-waw-2.
Body

project_id
required string
The Project ID in which to create the Database Instance. (UUID format).

name
string
Name of the Database Instance.

version
required string
Redis™ engine version of the Database Instance.

tags
array
Tags to apply to the Database Instance.

node_type
required string
Type of node to use for the Database Instance.

user_name
required string
Name of the user created upon Database Instance creation.

password
required string
Password of the user.

cluster_size
nullable integer
Number of nodes in the Redis™ cluster.

acl_rules
array
List of ACLRuleSpec used to secure your publicly exposed cluster.

endpoints
array
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
Whether or not TLS is enabled.

cluster_settings
array
List of advanced settings to be set upon Database Instance initialization.
Request Example
200 Response

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
string
Status of the Database Instance. Possible values are unknown, ready, provisioning, configuring, deleting, error, autohealing, locked, suspended and initializing. The default value is unknown.

version
string
Redis™ engine version of the Database Instance.

endpoints
array
List of Database Instance endpoints.

tags
array
List of tags applied to the Database Instance.

node_type
string
Node type of the Database Instance.

created_at
nullable string
Creation date (Format ISO 8601). (RFC 3339 format).

updated_at
nullable string
Update date (Format ISO 8601). (RFC 3339 format).

tls_enabled
boolean
Whether or not TLS is enabled.

cluster_settings
array
List of Database Instance settings.

acl_rules
array
List of ACL rules.

cluster_size
integer
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
array
List of engine versions the Database Instance can upgrade to.
Response Example

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
/redis/v1/zones/{zone}/clusters/{cluster_id}
Path Parameters

zone
required string
The zone you want to target. Possible values are fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-1 and pl-waw-2.

cluster_id
required string
UUID of the cluster. (UUID format).
200 Response

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
string
Status of the Database Instance. Possible values are unknown, ready, provisioning, configuring, deleting, error, autohealing, locked, suspended and initializing. The default value is unknown.

version
string
Redis™ engine version of the Database Instance.

endpoints
array
List of Database Instance endpoints.

tags
array
List of tags applied to the Database Instance.

node_type
string
Node type of the Database Instance.

created_at
nullable string
Creation date (Format ISO 8601). (RFC 3339 format).

updated_at
nullable string
Update date (Format ISO 8601). (RFC 3339 format).

tls_enabled
boolean
Whether or not TLS is enabled.

cluster_settings
array
List of Database Instance settings.

acl_rules
array
List of ACL rules.

cluster_size
integer
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
array
List of engine versions the Database Instance can upgrade to.
Response Example

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

PATCH
/redis/v1/zones/{zone}/clusters/{cluster_id}
Path Parameters

zone
required string
The zone you want to target. Possible values are fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-1 and pl-waw-2.

cluster_id
required string
UUID of the Database Instance to update. (UUID format).
Body

name
nullable string
Name of the Database Instance.

tags
nullable array
Database Instance tags.

user_name
nullable string
Name of the Database Instance user.

password
nullable string
Password of the Database Instance user.
Request Example
200 Response

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
string
Status of the Database Instance. Possible values are unknown, ready, provisioning, configuring, deleting, error, autohealing, locked, suspended and initializing. The default value is unknown.

version
string
Redis™ engine version of the Database Instance.

endpoints
array
List of Database Instance endpoints.

tags
array
List of tags applied to the Database Instance.

node_type
string
Node type of the Database Instance.

created_at
nullable string
Creation date (Format ISO 8601). (RFC 3339 format).

updated_at
nullable string
Update date (Format ISO 8601). (RFC 3339 format).

tls_enabled
boolean
Whether or not TLS is enabled.

cluster_settings
array
List of Database Instance settings.

acl_rules
array
List of ACL rules.

cluster_size
integer
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
array
List of engine versions the Database Instance can upgrade to.
Response Example

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
/redis/v1/zones/{zone}/clusters/{cluster_id}
Path Parameters

zone
required string
The zone you want to target. Possible values are fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-1 and pl-waw-2.

cluster_id
required string
UUID of the Database Instance to delete. (UUID format).
200 Response

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
string
Status of the Database Instance. Possible values are unknown, ready, provisioning, configuring, deleting, error, autohealing, locked, suspended and initializing. The default value is unknown.

version
string
Redis™ engine version of the Database Instance.

endpoints
array
List of Database Instance endpoints.

tags
array
List of tags applied to the Database Instance.

node_type
string
Node type of the Database Instance.

created_at
nullable string
Creation date (Format ISO 8601). (RFC 3339 format).

updated_at
nullable string
Update date (Format ISO 8601). (RFC 3339 format).

tls_enabled
boolean
Whether or not TLS is enabled.

cluster_settings
array
List of Database Instance settings.

acl_rules
array
List of ACL rules.

cluster_size
integer
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
array
List of engine versions the Database Instance can upgrade to.
Response Example

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
/redis/v1/zones/{zone}/clusters/{cluster_id}/metrics
Path Parameters

zone
required string
The zone you want to target. Possible values are fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-1 and pl-waw-2.

cluster_id
required string
UUID of the cluster. (UUID format).
Query Parameters

start_at
string
Start date. (RFC 3339 format).

end_at
string
End date. (RFC 3339 format).

metric_name
string
Name of the metric to gather.
200 Response

timeseries
array
Time series of metrics of a given cluster.
Response Example

Upgrade your standalone Redis™ Database Instance node, 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). 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.

POST
/redis/v1/zones/{zone}/clusters/{cluster_id}/migrate
Path Parameters

zone
required string
The zone you want to target. Possible values are fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-1 and pl-waw-2.

cluster_id
required string
UUID of the Database Instance to update. (UUID format).
Body

version
string
Redis™ engine version of the Database Instance. Only one of version, node_type and cluster_size may be set.

node_type
string
Type of node to use for the Database Instance. Only one of version, node_type and cluster_size may be set.

cluster_size
integer
Number of nodes for the Database Instance. Only one of version, node_type and cluster_size may be set.
Request Example
200 Response

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
string
Status of the Database Instance. Possible values are unknown, ready, provisioning, configuring, deleting, error, autohealing, locked, suspended and initializing. The default value is unknown.

version
string
Redis™ engine version of the Database Instance.

endpoints
array
List of Database Instance endpoints.

tags
array
List of tags applied to the Database Instance.

node_type
string
Node type of the Database Instance.

created_at
nullable string
Creation date (Format ISO 8601). (RFC 3339 format).

updated_at
nullable string
Update date (Format ISO 8601). (RFC 3339 format).

tls_enabled
boolean
Whether or not TLS is enabled.

cluster_settings
array
List of Database Instance settings.

acl_rules
array
List of ACL rules.

cluster_size
integer
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
array
List of engine versions the Database Instance can upgrade to.
Response Example

Nodes are the compute units that make up your Redis™ Database Instance. Different node types are available with varying amounts of RAM and vCPU.

List all available node types. By default, the node types returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field.

GET
/redis/v1/zones/{zone}/node-types
Path Parameters

zone
required string
The zone you want to target. Possible values are fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-1 and pl-waw-2.
Query Parameters

include_disabled_types
boolean
Whether or not to include disabled types.

page
integer
Page number. The default value is 1.

page_size
integer
Page size. The default value is 20.
200 Response

node_types
array
Types of node.

total_count
integer
Total count of node types available.
Response Example

The Redis™ database engine versions available at Scaleway for your clusters.

List the Redis™ database engine versions available. You can define additional parameters for your query, such as include_disabled, include_beta, include_deprecated and version.

GET
/redis/v1/zones/{zone}/cluster-versions
Path Parameters

zone
required string
The zone you want to target. Possible values are fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-1 and pl-waw-2.
Query Parameters

include_disabled
boolean
Whether or not to include disabled Redis™ engine versions.

include_beta
boolean
Whether or not to include beta Redis™ engine versions.

include_deprecated
boolean
Whether or not to include deprecated Redis™ engine versions.

version
string
List Redis™ engine versions that match a given name pattern.

page
integer
Page number. The default value is 1.

page_size
integer
Page size. The default value is 20.
200 Response

versions
array
List of available Redis™ engine versions.

total_count
integer
Total count of available Redis™ engine versions.
Response Example

Transport Layer Security (TLS) is an Internet security protocol that enables data to be securely exchanged over a network using in transit encryption. If you set the tls_enabled parameter to true when creating or updating a cluster, a TLS certificate will be automatically generated for your Redis™ Database Instance to ensure secure connections.

Retrieve information about the TLS certificate of a Redis™ Database Instance (Redis™ cluster). Details like name and content are returned in the response.

GET
/redis/v1/zones/{zone}/clusters/{cluster_id}/certificate
Path Parameters

zone
required string
The zone you want to target. Possible values are fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-1 and pl-waw-2.

cluster_id
required string
UUID of the cluster. (UUID format).
200 Response

name
string

content_type
string

content
string
Response Example

Renew a TLS certificate for a Redis™ Database Instance (Redis™ cluster). Renewing a certificate means that you will not be able to connect to your Database Instance using the previous certificate. You will also need to download and update the new certificate for all database clients.

POST
/redis/v1/zones/{zone}/clusters/{cluster_id}/renew-certificate
Path Parameters

zone
required string
The zone you want to target. Possible values are fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-1 and pl-waw-2.

cluster_id
required string
UUID of the cluster. (UUID format).
Body

Request Example
200 Response

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
string
Status of the Database Instance. Possible values are unknown, ready, provisioning, configuring, deleting, error, autohealing, locked, suspended and initializing. The default value is unknown.

version
string
Redis™ engine version of the Database Instance.

endpoints
array
List of Database Instance endpoints.

tags
array
List of tags applied to the Database Instance.

node_type
string
Node type of the Database Instance.

created_at
nullable string
Creation date (Format ISO 8601). (RFC 3339 format).

updated_at
nullable string
Update date (Format ISO 8601). (RFC 3339 format).

tls_enabled
boolean
Whether or not TLS is enabled.

cluster_settings
array
List of Database Instance settings.

acl_rules
array
List of ACL rules.

cluster_size
integer
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
array
List of engine versions the Database Instance can upgrade to.
Response Example

Advanced settings allow you to tune the behavior of your Redis™ database engine to better fit your needs. Available settings depend on the version of the Redis™ engine. Note that some settings can only be defined upon the Redis™ engine initialization. These are called init settings. You can find a full list of the settings available in the response body of the list available Redis™ versions endpoint.

Each advanced setting entry has a default value that users can override. The deletion of a setting entry will restore the setting to default value. Some of the defaults values can be different from the engine's defaults, as we optimize them to the Scaleway platform.

Add an advanced setting to a Redis™ Database Instance (Redis™ cluster). You must set the name and the value of each setting.

POST
/redis/v1/zones/{zone}/clusters/{cluster_id}/settings
Path Parameters

zone
required string
The zone you want to target. Possible values are fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-1 and pl-waw-2.

cluster_id
required string
UUID of the Database Instance you want to add settings to. (UUID format).
Body

settings
required array
Settings to add to the cluster.
Request Example
200 Response

settings
array
Settings configured for a given Database Instance.
Response Example

Update an advanced setting for a Redis™ Database Instance (Redis™ cluster). Settings added upon database engine initalization can only be defined once, and cannot, therefore, be updated.

PUT
/redis/v1/zones/{zone}/clusters/{cluster_id}/settings
Path Parameters

zone
required string
The zone you want to target. Possible values are fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-1 and pl-waw-2.

cluster_id
required string
UUID of the Database Instance where the settings must be set. (UUID format).
Body

settings
required array
Settings to define for the Database Instance.
Request Example
200 Response

settings
array
Settings configured for a given Database Instance.
Response Example

Delete an advanced setting in a Redis™ Database Instance (Redis™ cluster). You must specify the names of the settings you want to delete in the request body.

DELETE
/redis/v1/zones/{zone}/clusters/{cluster_id}/settings/{setting_name}
Path Parameters

zone
required string
The zone you want to target. Possible values are fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-1 and pl-waw-2.

cluster_id
required string
UUID of the Database Instance where the settings must be set. (UUID format).

setting_name
required string
Setting name to delete.
200 Response

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
string
Status of the Database Instance. Possible values are unknown, ready, provisioning, configuring, deleting, error, autohealing, locked, suspended and initializing. The default value is unknown.

version
string
Redis™ engine version of the Database Instance.

endpoints
array
List of Database Instance endpoints.

tags
array
List of tags applied to the Database Instance.

node_type
string
Node type of the Database Instance.

created_at
nullable string
Creation date (Format ISO 8601). (RFC 3339 format).

updated_at
nullable string
Update date (Format ISO 8601). (RFC 3339 format).

tls_enabled
boolean
Whether or not TLS is enabled.

cluster_settings
array
List of Database Instance settings.

acl_rules
array
List of ACL rules.

cluster_size
integer
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
array
List of engine versions the Database Instance can upgrade to.
Response Example

Network Access Control Lists (ACLs) allow you to manage network inbound traffic by setting up ACL rules.

Retrieve information about an ACL rule of a Redis™ Database Instance (Redis™ cluster). You must specify the acl_id of the rule in your request.

GET
/redis/v1/zones/{zone}/acls/{acl_id}
Path Parameters

zone
required string
The zone you want to target. Possible values are fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-1 and pl-waw-2.

acl_id
required string
UUID of the ACL rule you want to get. (UUID format).
200 Response

id
string
ID of the rule. (UUID format).

ip_cidr
nullable string
IPv4 network address of the rule. (IP network).

description
nullable string
Description of the rule.
Response Example

Delete an ACL rule of a Redis™ Database Instance (Redis™ cluster). You must specify the acl_id of the rule you want to delete in your request.

DELETE
/redis/v1/zones/{zone}/acls/{acl_id}
Path Parameters

zone
required string
The zone you want to target. Possible values are fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-1 and pl-waw-2.

acl_id
required string
UUID of the ACL rule you want to delete. (UUID format).
200 Response

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
string
Status of the Database Instance. Possible values are unknown, ready, provisioning, configuring, deleting, error, autohealing, locked, suspended and initializing. The default value is unknown.

version
string
Redis™ engine version of the Database Instance.

endpoints
array
List of Database Instance endpoints.

tags
array
List of tags applied to the Database Instance.

node_type
string
Node type of the Database Instance.

created_at
nullable string
Creation date (Format ISO 8601). (RFC 3339 format).

updated_at
nullable string
Update date (Format ISO 8601). (RFC 3339 format).

tls_enabled
boolean
Whether or not TLS is enabled.

cluster_settings
array
List of Database Instance settings.

acl_rules
array
List of ACL rules.

cluster_size
integer
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
array
List of engine versions the Database Instance can upgrade to.
Response Example

Add an additional ACL rule to a Redis™ Database Instance (Redis™ cluster).

POST
/redis/v1/zones/{zone}/clusters/{cluster_id}/acls
Path Parameters

zone
required string
The zone you want to target. Possible values are fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-1 and pl-waw-2.

cluster_id
required string
UUID of the Database Instance you want to add ACL rules to. (UUID format).
Body

acl_rules
required array
ACLs rules to add to the cluster.
Request Example
200 Response

acl_rules
array
ACL Rules enabled for the Database Instance.

total_count
integer
Total count of ACL rules of the Database Instance.
Response Example

Replace all the ACL rules of a Redis™ Database Instance (Redis™ cluster).

PUT
/redis/v1/zones/{zone}/clusters/{cluster_id}/acls
Path Parameters

zone
required string
The zone you want to target. Possible values are fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-1 and pl-waw-2.

cluster_id
required string
UUID of the Database Instance where the ACL rules have to be set. (UUID format).
Body

acl_rules
required array
ACLs rules to define for the cluster.
Request Example
200 Response

acl_rules
array
ACL Rules enabled for the Database Instance.
Response Example

Manage endpoint access to your Redis™ Database Instance through Public or Private Networks

Add a new endpoint for a Redis™ Database Instance (Redis™ cluster). You can add private_network or public_network specifications to the body of the request.

POST
/redis/v1/zones/{zone}/clusters/{cluster_id}/endpoints
Path Parameters

zone
required string
The zone you want to target. Possible values are fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-1 and pl-waw-2.

cluster_id
required string
UUID of the Database Instance you want to add endpoints to. (UUID format).
Body

endpoints
required array
Endpoints to add to the Database Instance.
Request Example
200 Response

endpoints
array
Endpoints defined on the Database Instance.

total_count
integer
Total count of endpoints of the Database Instance.
Response Example

Update an endpoint for a Redis™ Database Instance (Redis™ cluster). You must specify the cluster_id and the endpoints parameters in your request.

PUT
/redis/v1/zones/{zone}/clusters/{cluster_id}/endpoints
Path Parameters

zone
required string
The zone you want to target. Possible values are fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-1 and pl-waw-2.

cluster_id
required string
UUID of the Database Instance where the endpoints have to be set. (UUID format).
Body

endpoints
required array
Endpoints to define for the Database Instance.
Request Example
200 Response

endpoints
array
Endpoints defined on the Database Instance.
Response Example

Retrieve information about a Redis™ Database Instance (Redis™ cluster) endpoint. Full details about the endpoint, like ips, port, private_network and public_network specifications are returned in the response.

GET
/redis/v1/zones/{zone}/endpoints/{endpoint_id}
Path Parameters

zone
required string
The zone you want to target. Possible values are fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-1 and pl-waw-2.

endpoint_id
required string
UUID of the endpoint you want to get. (UUID format).
200 Response

port
integer
TCP port of the endpoint.

private_network
object
Private Network details. Only one of private_network and public_network may be set.

public_network
object
Public network details. Only one of private_network and public_network may be set.

ips
array
List of IPv4 addresses of the endpoint. (IP address).

id
string
UUID of the endpoint. (UUID format).
Response Example

Update information about a Redis™ Database Instance (Redis™ cluster) endpoint. Full details about the endpoint, like ips, port, private_network and public_network specifications are returned in the response.

PATCH
/redis/v1/zones/{zone}/endpoints/{endpoint_id}
Path Parameters

zone
required string
The zone you want to target. Possible values are fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-1 and pl-waw-2.

endpoint_id
required string
(UUID format).
Body

private_network
object
Only one of private_network and public_network may be set.

public_network
object
Only one of private_network and public_network may be set.
Request Example
200 Response

port
integer
TCP port of the endpoint.

private_network
object
Private Network details. Only one of private_network and public_network may be set.

public_network
object
Public network details. Only one of private_network and public_network may be set.

ips
array
List of IPv4 addresses of the endpoint. (IP address).

id
string
UUID of the endpoint. (UUID format).
Response Example

Delete the endpoint of a Redis™ Database Instance (Redis™ cluster). You must specify the region and endpoint_id parameters of the endpoint you want to delete. Note that might need to update any environment configurations that point to the deleted endpoint.

DELETE
/redis/v1/zones/{zone}/endpoints/{endpoint_id}
Path Parameters

zone
required string
The zone you want to target. Possible values are fr-par-1, fr-par-2, nl-ams-1, nl-ams-2, pl-waw-1 and pl-waw-2.

endpoint_id
required string
UUID of the endpoint you want to delete. (UUID format).
200 Response

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
string
Status of the Database Instance. Possible values are unknown, ready, provisioning, configuring, deleting, error, autohealing, locked, suspended and initializing. The default value is unknown.

version
string
Redis™ engine version of the Database Instance.

endpoints
array
List of Database Instance endpoints.

tags
array
List of tags applied to the Database Instance.

node_type
string
Node type of the Database Instance.

created_at
nullable string
Creation date (Format ISO 8601). (RFC 3339 format).

updated_at
nullable string
Update date (Format ISO 8601). (RFC 3339 format).

tls_enabled
boolean
Whether or not TLS is enabled.

cluster_settings
array
List of Database Instance settings.

acl_rules
array
List of ACL rules.

cluster_size
integer
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
array
List of engine versions the Database Instance can upgrade to.
Response Example