Skip to content

Terminate instance

POST
/databases/{id}/terminate
curl --request POST \
--url https://api.reflexdb.cloud/v1/databases/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/terminate \
--header 'Authorization: Bearer <token>'

Destroys the ECS task, ALB rule, and Route53 record but keeps the database record. The instance can be re-provisioned afterwards. Only allowed from: running, paused, failed.

id
required
string format: uuid

Database ID

Default Response

Media type application/json
object
status
required
string
Allowed values: terminating
Example
{
"status": "terminating"
}

Default Response

Media type application/json
Error
object
error
required
string
message
string
Example generated
{
"error": "example",
"message": "example"
}

Default Response

Media type application/json
Error
object
error
required
string
message
string
Example generated
{
"error": "example",
"message": "example"
}

Default Response

Media type application/json
Error
object
error
required
string
message
string
Example generated
{
"error": "example",
"message": "example"
}