Configuration
Switch MongoDB between standalone and replica set
Changed onSwitches 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 URLhttps://api.liara.ir
- URLhttps://api.liara.ir/v2/databases/{databaseID}/switch-mongo-mode
- AuthHTTP 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.
Changes
- info
endpoint added
- info