Skip to main content
POST
/
v1
/
databases
/
{id}
/
actions
/
scale
Power on or power off a database
curl --request POST \
  --url https://api.iran.liara.ir/v1/databases/{id}/actions/scale \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "scale": 123
}'
This response has no body data.

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Body

application/json

1 for power on or 0 for power off

scale
number
required

Response