2.05.2.05 - 2.05 - Regenerate a Source Secret Key - Teradata Listener

Teradata® Listener™ User Guide

prodname
Teradata Listener
vrm_release
2.05
category
User Guide
featnum
B035-2910-039K

The source secret key is a private key to ensure only the desired data is ingested for a source. If the secret key is compromised, you can regenerate the secret key to replace the existing key. The source secret key is available for only REST sources (source_type of "REST" or null).

Definition

http PUT https://CLUSTER.DOMAIN/listener/appservices/sources/{source_id} HTTP/1.1

Example Request

```bash
curl \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer TOKEN" \
  -X PUT \
  -i \
  https://CLUSTER.DOMAIN/listener/appservices/sources/758fbda4-accc-4f90-8f09-cc0a164c8c28
```

Example Response

HTTP/1.1 200 OK
Content-Type: application/json
[
  {
  "source_id": "758fbda4-accc-4f90-8f09-cc0a164c8c28",
  "owner": ["jd123456"],
  "created_at": "2015-07-04T10:20:00Z",
  "created_by": "av012345",
  "updated_at": "2015-12-20T10:20:00Z",
  "updated_by": "jd123456",
  "secret": "d8e38620-3729-57b1-a836-791320cef372",
  "name": "My source",
  "description": "A superb source",
  "state": 1,
  "production": false,
  "source_type": "REST"
}
  ...
]

Response Codes

Code Description
200 Source secret key regenerated successfully.
400 Bad request or invalid data, or target is locked.
401 Authorization header was missing or could not be found.
404 Source was not found.