Data Source - Declarative APIs

Put all data sources

Set all data sources including related physical model.

put/api/v1/layout/dataSources

Request

  • Base URL
    https://www.gooddata.ai
  • Auth
    none declared

Request body

Example request

{
  "dataSources": [
    {
      "alternativeDataSourceId": "pg_local_docker-demo2",
      "cacheRetention": {
        "validityPeriod": "P1D"
      },
      "clientId": "client1234",
      "id": "pg_local_docker-demo",
      "name": "postgres demo",
      "password": "*****",
      "schema": "demo",
      "token": "Bigquery service account JSON. Encode it using base64!",
      "type": "POSTGRESQL",
      "url": "jdbc:postgresql://postgres:5432/gooddata",
      "username": "demo"
    }
  ]
}

Response

Defined all data sources.

Changes

No recorded changes to this operation across all 1 revision of this API.