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>"
}create a database that user owns
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>"
}Enter the token with the Bearer: prefix, e.g. "Bearer abcde12345". #
The hostname of databases that you want to create
Show child attributes
The publicNetwork of databases that you want to create
The type of databases that you want to create
The planID of databases that you want to create
The version of databases that you want to create
Successful operation