Skip to content

Create datasource

POST
/v1/admin/datasources

Creates a datasource definition with config fields and secret references

Datasource payload

object
config_fields
required
Array<object>
object
clear
boolean
is_secret
boolean
key
required
string
value
string
name
required
string
scan_policy
string
secret_backend
string
type
required
string

OK

object
config_fields
Array<object>
object
has_value
boolean
is_secret
boolean
key
string
value
string
created_at
string
id
string
is_disabled
boolean
name
string
scan_policy
string
secret_backend
string
type
string
updated_at
string

Bad Request

object
error
string
message
string
Example
Success
success
boolean
Example
true

Unauthorized

object
error
string
message
string
Example
Success
success
boolean
Example
true

Forbidden

object
error
string
message
string
Example
Success
success
boolean
Example
true

Internal Server Error

object
error
string
message
string
Example
Success
success
boolean
Example
true