Get a List of Targets - Teradata Listener

Teradata® Listener™ User Guide

Product
Teradata Listener
Release Number
2.04
Published
November 2018
Language
English (United States)
Last Update
2018-12-20
dita:mapPath
qin1538418638881.ditamap
dita:ditavalPath
ft:empty
dita:id
B035-2910
lifecycle
previous
Product Category
Analytical Ecosystem

Load a list of all targets in Listener.

Definition

GET https://listener-app-services.domain.com/v1/targets?source_id HTTP/1.1
Parameter Required Type Sample Purpose
source_id Optional string 84757abc-ba43-5736-0ba3-1bdac4748290 Filter the list of targets by those associated with a source.

Example Request

curl \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer TOKEN" \
  -X GET \
  -i \
  https://listener-app-services.domain.com/v1/targets

Example Response

HTTP/1.1 200 OK
Content-Type: application/json
[
  {
    "target_id": "758fbda4-accc-4f90-8f09-cc0a164c8c28",
    "source_id": "84757abc-ba43-5736-0ba3-1bdac4748290",
    "system_id": "9dda5570-70e0-45be-8449-83f33320cd08",
    "owner": ["jd123456"],
    "created_at": "2015-07-04T10:20:00Z",
    "created_by": "av012345",
    "updated_at": "2015-12-20T10:20:00Z",
    "updated_by": "jd123456",
    "name": "My Data Target",
    "description": "A superb data target",
    "target_type": "teradata",
    "data_path": {
      "schema": "schema",
      "table": "table"
    },
    "system_info": {
      "username": "ip112233",
      "password": "password"
    },
    "state": 1,
    "production": false,
    "bundle": true,
    "bundle_type": "records",
    "bundle_interval": 500
  }
]

Response Codes

Code Description
200 Targets successfully returned.
401 Authorization header not found.