List datasource catalog policies
GET
/v1/admin/datasources/catalog-policies
const url = 'https://localhost:8080/v1/admin/datasources/catalog-policies';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/admin/datasources/catalog-policies \ --header 'Authorization: <Authorization>'Returns datasource scan policy metadata for admin management
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”page
integer
Page number
limit
integer
Page size
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}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}