Body
Required
-
Valkey.conf settings
-
Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'
-
Service is protected against termination and powering off
-
Service to fork from
Minimum length is
0, maximum length is63. -
Automatic maintenance settings
-
Valkey major version
Minimum length is
1. -
Name of a backup to recover from for services that support backup names
Minimum length is
1. -
Subscription plan
Minimum length is
1, maximum length is128. -
Migrate data from existing server
POST
/dbaas-valkey/{name}
curl \
--request POST 'https://api-ch-gva-2.exoscale.com/v2/dbaas-valkey/{name}' \
--header "Content-Type: application/json" \
--data '{
"valkey-settings": {
"ssl": true,
"lfu_log_factor": 10,
"frequent_snapshots": true,
"maxmemory_policy": "noeviction",
"io_threads": 1,
"lfu_decay_time": 1,
"pubsub_client_output_buffer_limit": 64,
"active_expire_effort": 1,
"notify_keyspace_events": "",
"persistence": "off",
"timeout": 300,
"acl_channels_default": "allchannels",
"number_of_databases": 16
},
"ip-filter": [
"string"
],
"termination-protection": true,
"fork-from-service": "string",
"maintenance": {
"dow": "saturday",
"time": "string"
},
"version": "string",
"recovery-backup-name": "string",
"plan": "string",
"migration": {
"host": "string",
"port": 42,
"password": "string",
"ssl": true,
"username": "string",
"dbname": "string",
"ignore-dbs": "string",
"method": "dump"
}
}'
Request examples
{
"valkey-settings": {
"ssl": true,
"lfu_log_factor": 10,
"frequent_snapshots": true,
"maxmemory_policy": "noeviction",
"io_threads": 1,
"lfu_decay_time": 1,
"pubsub_client_output_buffer_limit": 64,
"active_expire_effort": 1,
"notify_keyspace_events": "",
"persistence": "off",
"timeout": 300,
"acl_channels_default": "allchannels",
"number_of_databases": 16
},
"ip-filter": [
"string"
],
"termination-protection": true,
"fork-from-service": "string",
"maintenance": {
"dow": "saturday",
"time": "string"
},
"version": "string",
"recovery-backup-name": "string",
"plan": "string",
"migration": {
"host": "string",
"port": 42,
"password": "string",
"ssl": true,
"username": "string",
"dbname": "string",
"ignore-dbs": "string",
"method": "dump"
}
}
Response examples (200)
{
"id": "string",
"reason": "incorrect",
"reference": {
"id": "string",
"link": "string",
"command": "string"
},
"message": "string",
"state": "failure"
}