Configuration

Change the database's plan

Moves a running database to another plan that supports its type and has at least as much storage. With disk: true, the disk also grows to the new plan's size; except for mongodb, turn the database off first (see POST /v1/databases/{databaseID}/actions/scale). Your balance must be high enough for the new plan. Team permission: manage.

post/v1/databases/{databaseID}/resize

Request

  • Base URL
    https://api.liara.ir
  • URL
    https://api.liara.ir/v1/databases/{databaseID}/resize
  • Auth
    HTTP bearer

Path parameters

databaseIDstring required

24-character hexadecimal ID.

The database's _id.

Query parameters

teamIDstring

24-character hexadecimal ID.

Run the request in the context of a team you belong to, instead of your personal account.

Request body

planID'small-g2' | 'medium-g2' | 'standard-base-g2' | 'standard-pro-g2' | 'pro-g2' | 'pro-plus-g2' | 'pro-max-g2' required

The database's resource plan. small-g2 and medium-g2 don't support mssql or clickhouse, and small-g2 doesn't support elasticsearch. See Liara's pricing page for what each plan includes.

diskboolean required

Also grow the disk to the new plan's size.

Response

The resize started. The response body is empty.

Changes

No operation changes recorded.