List datasources
GET
/v1/datasources
const url = 'https://localhost:8080/v1/datasources';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://localhost:8080/v1/datasources \ --header 'Authorization: <Authorization>'Returns a paginated list of datasources visible to the authenticated user
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”page
integer
Page number
limit
integer
Page size
type
string
Datasource type filter
name
string
Datasource name filter
sort
string
Sort field
Responses
Section titled “Responses”OK
Media typeapplication/json
object
data
object
datasources
Array<object>
object
created_at
string
id
string
metadata
name
string
scan_policy
string
type
string
limit
integer
offset
integer
total
integer
success
boolean
Example generated
{ "data": { "datasources": [ { "created_at": "example", "id": "example", "metadata": "example", "name": "example", "scan_policy": "example", "type": "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}Internal Server Error
Media typeapplication/json
object
error
string
message
string
success
boolean
Example
{ "error": "", "message": "Success", "success": true}