Skip to Content
OpenETL
ReferenceAPIAccess Service

Create runner token

The response has the token itself, which the API never returns again.

POST
/v1/dataPlanes/{dataPlane}/tokens

The response has the token itself, which the API never returns again.

Path Parameters

dataPlane*string

The dataPlane id.

Request Body

application/json
  1. body
parent?string

dataPlanes/{data_plane}

Response Body

OK

application/json
  1. response
token?

A data plane's runners call DataPlaneService with it, as Authorization: Bearer TOKEN. It serves only that data plane's work.

secret?string
Example Request
curl -X POST 'http://localhost:8080/v1/dataPlanes/string/tokens' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "token": {    "name": "string",    "prefix": "string",    "createTime": "2019-08-24T14:15:22Z",    "lastUsedTime": "2019-08-24T14:15:22Z"  },  "secret": "string"}