Skip to main content
POST
/
v1
/
databases
Create a database
curl --request POST \
  --url https://api.iran.liara.ir/v1/databases \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "hostname": "<string>",
  "options": {
    "standaloneReplicaSet": true
  },
  "publicNetwork": true,
  "type": "<string>",
  "planID": "<string>",
  "version": "<string>"
}
'
{
  "databaseID": "<string>"
}

Authorizations

Authorization
string
header
required

Enter the token with the Bearer: prefix, e.g. "Bearer abcde12345". #

Body

application/json
hostname
string

The hostname of databases that you want to create

options
object
publicNetwork
boolean

The publicNetwork of databases that you want to create

type
string

The type of databases that you want to create

planID
string

The planID of databases that you want to create

version
string

The version of databases that you want to create

Response

Successful operation

databaseID
string