Validate

Validate the datasource defined by the given ID.

GET /<GUID>/validate

Validate a datasource.

RESPONSE Fields Value Type Description
uuid string A unique identifier of the datasource
warningMessage string null, if the validation was successful. A message in error cases.

Example Request

# Request
# Use user:password for authorization
GET /api/datasources/euxd8e7vfg2jqmrezk5i8gb12/validate HTTP/1.1
Authorization: Bearer VGhpcyBpcyBqdXN0IGEgZGVtbyBhY2Nlc3MgdG9rZW4u
 
# Response - a validation response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: <LENGTH>
 
{
  "uuid": "euxd8e7vfg2jqmrezk5i8gb12",
  "warningMessage": null
}

Application Example

# Shell access using curl
curl -LsH "Authorization: Bearer <access_token>" "http://127.0.0.1:9000/api/datasources/euxd8e7vfg2jqmrezk5i8gb12/validate"
 
# Shell access using curl using username and password
curl -Lsu username:password "http://127.0.0.1:9000/api/datasources/euxd8e7vfg2jqmrezk5i8gb12/validate"