The list command returns a list of available datasources in the system.
Requests a list of available datasources.
RESPONSE Fields | Value Type | Description |
---|---|---|
type | string | The type of the datasource connection |
alias | string | The user visible name of the datasource |
uuid | string | A unique identifier of the datasource |
# Request # Use user:password for authorization GET /api/datasources/list HTTP/1.1 Authorization: Bearer VGhpcyBpcyBqdXN0IGEgZGVtbyBhY2Nlc3MgdG9rZW4u # Response - a list of datasources in JSON HTTP/1.1 200 OK Content-Type: application/json Content-Length: <LENGTH> [ { "type": "MS SQL Server", "alias": "My Datasource", "uuid": "euxd8e7vfg2jqmrezk5i8gb12", }, ... ]
# Shell access using curl curl -LsH "Authorization: Bearer <access_token>" "http://127.0.0.1:9000/api/datasources/list" # Shell access using curl using username and password curl -Lsu username:password "http://127.0.0.1:9000/api/datasources/list"