Skip to content

Get the databases of an application

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

The active database, the one being added next to it (next) and the one the last promote replaced (previous). Each is null when there is none. No credential value is returned. The application must exist (404 otherwise).

organisation
required
string

The organisation ID

application
required
string

The application ID

The databases

Media typeapplication/json
object
orgName
string
appName
string
active
One of:
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>
next
One of:
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>
previous
One of:
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
{
"active": {
"instanceId": "acme-api-db-postgres",
"role": "active",
"status": "active",
"engine": "mysql",
"rdsStatus": "available"
},
"next": {
"instanceId": "acme-api-db-postgres",
"role": "active",
"status": "active",
"engine": "mysql",
"rdsStatus": "available"
},
"previous": {
"instanceId": "acme-api-db-postgres",
"role": "active",
"status": "active",
"engine": "mysql",
"rdsStatus": "available"
}
}

The application was not found