Skip to content

Get one database of an application

GET
/api/v3/organizations/{organisation}/applications/{application}/database/{instanceId}
curl --request GET \
--url https://dashboard.quantcdn.io/api/v3/organizations/example/applications/example/database/example \
--header 'Authorization: Bearer <token>'

Poll this for a database being added: status is provisioning, ready or failed.

organisation
required
string

The organisation ID

application
required
string

The application ID

instanceId
required
string
/^[a-z][a-z0-9-]{0,62}$/

The database instance identifier, as returned by the list

The database

Media typeapplication/json
object
instanceId
string
role
string
Allowed values: active next previous
status

Poll this for a database being added.

string
Allowed values: active provisioning ready failed previous
statusMessage

Why a database failed.

string
engine
string
Allowed values: mysql postgres
rdsStatus

The live instance status. Absent when it could not be read.

string
endpoint
string
port
integer
instanceClass
string
storageGb
integer
multiAz
boolean
pendingModifications

A resize RDS has accepted but not applied yet. Absent when there is none.

object
instanceClass
string
storageGb
integer
multiAz
boolean
createdAt

Unix epoch milliseconds.

integer format: int64
retiredAt

Previous only: when it stopped being the active database.

integer format: int64
environments

Next only: the environments that have a user on this instance.

Array<string>
environmentCredentialsSecrets

Next only: the names of the secrets that hold each environment’s credentials for this instance. Names, never values.

Array<object>
object
environment
string
secretName
string
environmentVariables

Next only: DB_NEXT_HOST, DB_NEXT_PORT, DB_NEXT_DATABASE, DB_NEXT_ENGINE.

Array<string>
environmentSecretReferences

Next only: DB_NEXT_USERNAME and DB_NEXT_PASSWORD, secret references to the per-environment secrets above. Never values.

Array<string>
Example
{
"instanceId": "acme-api-db-postgres",
"role": "active",
"status": "active",
"engine": "mysql",
"rdsStatus": "available"
}

The application or the database was not found

Media typeapplication/json
object
message
string
operation

409 only: the operation that holds the application’s lock.

string
Allowed values: provision promote delete
requested

409 only: the operation that was refused.

string
Allowed values: provision promote delete
instanceId

409 only: the pending or previous database that blocks the request, or the provision in flight.

string
statusUrl

409 only: for a provision in flight, the path to poll on the platform (this API serves it at the database route).

string
environments

Promote 409 only: the environments that have no user, or unreadable credentials, on the instance.

Array<string>
errors

Delete 500 only: what could not be cleaned up.

Array<string>
Example
{
"operation": "provision",
"requested": "provision"
}