- Introduction
- Auth
- Bolts
- Environments
- Git
- Domains
- Logs
- List Environments
- Create Environment
- Get Environment
- Update Environment
- Delete Environment
- Purge Environment Cache
- List Environment Cronjobs
- Get Environment Statistics
- Get Environment Available Settings
- Get Environment PHP Versions
- Get Environment Usage
- Get Environment SSH Accesses
- Create Environment SSH Access
- Remove Environment SSH Access
- List Environment Databases
- Toggle Environment Dev Mode
- Environment Install Wordpress
- Environment Optimize Wordpress
- Locations
- Databases
- Cronjobs
- SSH Keys
- Certificates
- Billing
- Profile
Get Bolt Database
GET
https://api.servebolt.io/v1/bolts/{boltId}/databases/{databaseId}
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
boltId
string
required
Example:
1234
databaseId
integer
required
Example:
5678
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.servebolt.io/v1/bolts/1234/databases/5678'
Responses
🟢200OK
application/json
Body
data
object
required
id
integer
required
type
string
required
attributes
object
required
relationships
object
required
Example
{
"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
}
}
}
}
}
Modified at 2024-07-04 12:03:12