Create an In-Memory DB Instance

The request creates a new In-Memory DB instance on IONOS Cloud DBaaS. Each In-Memory DB instance can contain multiple nodes.

circle-info

Note:

  • Only contract administrators, owners, and users with Access and manage DBaaS privileges can create and manage In-Memory DB instances, provided the new IAM system is disabled.

  • After creating an instance, you can access it via the corresponding LAN using the same username and password specified during creation.

  • You can only set the username and password via the API while creating an In-Memory DB instance. Once configured, they cannot be updated.

The data center must be provided as a UUID. The easiest way to retrieve the UUID is through the Cloud APIarrow-up-right.

Endpoint

Use a region-specific endpoint from the list to create an In-Memory DB instance: https://in-memory-db.{region}.ionos.com/replicasets

Request

curl -X 'POST' \
  'https://in-memory-db.de-txl.ionos.com/replicasets' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $Token' \
--data 
'{
   "metadata":{
      
   },
   "properties":{
      "displayName":"In-Memory DB replica set",
      "version":"7.2",
      "replicas":2,
      "resources":{
         "cores":4,
         "ram":4
      },
      "persistence":{
         "mode":"None",
         "minimalSaveInterval":3600
      },
      "evictionPolicy":"allkeys-lru",
      "connections":[
         {
            "datacenterId":"dd00-7a96-dd00-dd00-bcaa13",
            "lanId":"2",
            "cidr":"123.123.1.100/24"
         }
      ],
      "maintenanceWindow":{
         "time":"16:30:59",
         "dayOfTheWeek":"Monday"
      },
      "credentials":{
         "username":"user13",
         "password":"mypassword"
      },
      "initialSnapshotId": "12345678-1234-1234-1234-123456789012"
      }
}'

To make authenticated requests to the API, the following fields are mandatory in the request header:

Header Parameters
Required
Type
Description

Authorization

yes

string

Provide a header value as Bearer followed by your token.

Content-Type

yes

string

Set this to application/json.

Last updated

Was this helpful?