Skip to content

List datasources (admin)

GET
/v1/admin/datasources
curl --request GET \
--url https://localhost:8080/v1/admin/datasources \
--header 'Authorization: <Authorization>'

Returns a paginated list of datasources with admin-visible config metadata

page
integer

Page number

limit
integer

Page size

name
string

Datasource name filter

sort
string

Sort field

disabled
boolean

Set true to list disabled datasources

OK

Media typeapplication/json
object
data
object
datasources
Array<object>
object
config_fields
Array<object>
object
has_value
boolean
key
string
value
string
created_at
string
id
string
is_disabled
boolean
name
string
scan_policy
string
secret_refs
object
backend
string
mappings
object
key
additional properties
string
reference
string
type
string
updated_at
string
limit
integer
offset
integer
total
integer
success
boolean

Example generated

{
"data": {
"datasources": [
{
"config_fields": [
{
"has_value": true,
"key": "example",
"value": "example"
}
],
"created_at": "example",
"id": "example",
"is_disabled": true,
"name": "example",
"scan_policy": "example",
"secret_refs": {
"backend": "example",
"mappings": {
"additionalProperty": "example"
},
"reference": "example"
},
"type": "example",
"updated_at": "example"
}
],
"limit": 1,
"offset": 1,
"total": 1
},
"success": true
}

Unauthorized

Media typeapplication/json
object
error
string
message
string
success
boolean

Example

{
"error": "",
"message": "Success",
"success": true
}

Forbidden

Media typeapplication/json
object
error
string
message
string
success
boolean

Example

{
"error": "",
"message": "Success",
"success": true
}

Internal Server Error

Media typeapplication/json
object
error
string
message
string
success
boolean

Example

{
"error": "",
"message": "Success",
"success": true
}