List Bolt Databases
GET
/v1/bolts/{boltId}/databasesList all databases associated with a Bolt.
Request
Parâmetros Path
boltId
string
requerido
The ID of your bolt.
Exemplo:
1234
Request samples
Respostas
OK(200)
HTTP Code: 200
Content Type : JSONapplication/json
Esquema de Dados
data
array [object {4}]
requerido
id
integer
opcional
type
string
opcional
attributes
object
opcional
relationships
object
opcional
links
object
requerido
first
string
requerido
last
string
requerido
prev
null
requerido
next
null
requerido
meta
object
requerido
current_page
integer
requerido
from
integer
requerido
last_page
integer
requerido
links
array [object {3}]
requerido
path
string
requerido
per_page
integer
requerido
to
integer
requerido
total
integer
requerido
Exemplo
{
"data": [
{
"id": 1261,
"type": "databases",
"attributes": {
"webhostId": 8988,
"name": "Test",
"dbHost": "xxx",
"dbName": "testob",
"dbUser": "testob",
"size": 0,
"tags": "",
"environments": [
{
"id": 1760,
"name": "Test",
"state": "development"
}
]
},
"relationships": {
"bolt": {
"data": {
"type": "bolts",
"id": 8988
}
},
"server": {
"data": {
"type": "servers",
"id": 35
}
}
}
}
],
"links": {
"first": "https://xxx/v1/bolts/8988/databases?page=1",
"last": "https://xxx/v1/bolts/8988/databases?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "https://xxx/v1/bolts/8988/databases?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "https://xxx/v1/bolts/8988/databases",
"per_page": 15,
"to": 1,
"total": 1
}
}
Last modified: 5 months ago