List DbTaps

GET /api/v1.2/db_taps/

Use this API to list data stores.

Resource URI

db_taps

Request Type

GET

Supporting Versions

v1.2

Return Value

JSON array of DbTaps.

page

Use this parameter to specify the page number that contains the clusters’ history. Its default value is 10.

per_page

Use this parameter to specify the number of results to be retrieved per page. Its default value is 10. When its value is out of bound, the Page number: >page> is out of bounds. error is displayed.

Required Role

The following users can make this API call:

  • Users who belong to the system-user or system-admin group.

  • Users who belong to a group associated with a role that allows viewing all DbTaps. See Managing Groups and Managing Roles for more information.

Example

curl -i -X GET -H "Content-Type: application/json" -H "Accept: application/json" -H "X-AUTH-TOKEN: $AUTH_TOKEN" \
https://api.qubole.com/api/v1.2/db_taps/

Note

The above syntax uses https://api.qubole.com as the endpoint. Qubole provides other endpoints to access QDS that are described in Supported Qubole Endpoints on Different Cloud Providers.

Sample Response

{
  "paging_info": {
    "next_page": null,
    "per_page": 10,
    "previous_page": null
  },
  "db_taps": [
    {
      "active": true,
      "account_id": 10,
      "user_id": 1,
      "db_user": "root",
      "db_passwd": "",
      "db_location":"us-east-1",
      "db_type":"mysql",
      "db_name": "jenkins",
      "created_at": "2012-12-27T17:20:32Z",
      "db_host": "localhost",
      "port": null,
      "id": 1
    },
    {
      "active": true,
      "account_id": 10,
      "user_id": 1,
      "db_user": "doc_writer",
      "db_passwd": "",
      "db_name": "doc_example",
      "created_at": "2013-03-15T10:02:42Z",
      "db_location":"us-east-1",
      "db_type":"postgresql",
      "db_host": "localhost",
      "port": null,
      "id": 3
    }
  ]
}

Note

The DbTaps.py SDK calls the above mentioned API internally.