Configuration

Switch MongoDB between standalone and replica set

Changed on

Switches a MongoDB database between standalone mode and single-node replica set mode. Team permission: operate or manage.

patch/v2/databases/{databaseID}/switch-mongo-mode

Request

  • Base URL
    https://api.liara.ir
  • URL
    https://api.liara.ir/v2/databases/{databaseID}/switch-mongo-mode
  • 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.

Response

The mode was switched.

databaseIDstring

Changes