Database (v2)

Create a new Database for a user

post/v2/databases

Request

Request body

namestring required

A database name. Must be at most 16 characters.

storage_regionstring required

The storage region where the data is saved at rest. Available regions come from GET /v1/config/.

primary_regionsPossibleRegion[] required

The primary regions expected for the database. At least one.

replicas_regionsPossibleRegion[] required

The replica regions expected for the database.

Response

Response body for POST /v2/databases.

db_idstring required

HTTP DTO for a database identifier.

On the wire this serializes/deserializes as db_<ULID>. Internally it stores only the raw ULID string (no prefix).

Changes

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status