cURL
curl --request POST \ --url https://global.thenile.dev/workspaces/{workspaceSlug}/databases/{databaseName}/compute \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: */*' \ --data ' { "instanceSize": "<string>", "instanceName": "<string>" } '
{ "instanceId": "<string>", "database": { "id": "<string>", "name": "<string>", "workspace": { "name": "<string>", "slug": "<string>", "id": "<string>", "stripe_customer_id": "<string>", "created": "2023-11-07T05:31:56Z" }, "status": "PENDING", "region": "AWS_US_WEST_2", "expandable": true, "apiHost": "<string>", "created": "2023-11-07T05:31:56Z", "deleted": "2023-11-07T05:31:56Z", "dbHost": "<string>", "sharded": true }, "instanceName": "<string>", "instanceType": { "id": "<string>", "computeSize": "<string>", "memory": "<string>", "hourlyCost": 123 }, "desiredInstanceType": { "id": "<string>", "computeSize": "<string>", "memory": "<string>", "hourlyCost": 123 }, "status": "PENDING", "created": "2023-11-07T05:31:56Z", "updated": "2023-11-07T05:31:56Z", "deleted": "2023-11-07T05:31:56Z" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
1
1 - 512
Instance created.
Show child attributes
PENDING
REQUESTED
BUILT
READY
AWS_US_WEST_2
AWS_EU_CENTRAL_1
AZURE_EASTUS
PROVISIONING
RESIZING
DELETING
FAILED
TERMINATED
Was this page helpful?