Skip to content

Create and manage access tokens

To create a Telemetry Router access token, you need to call the appropriate endpoint.

Choose the properties for your new access token

Section titled “Choose the properties for your new access token”
ParameterMeaningExample
accessTokenThe individual access token of your service accounteyJhbGci0iJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIi0iIxMjM0NTY30DkwIiwibmFtZSI6IkpvaG4gRG91IiwiaXNTb2NpYWwiOnRydWV9.4pcPyMD09o1PSyXnrXCjTwXyr4BsezdI1AVTmud2fU4
projectIdYour individual project ID16dbfb51-7a75-42d3-a51d-99f87f48cd32
regionIdThe region your Telemetry Router instance is locatedeu01
telemetryRouterIdThe ID of your Telemetry Router instanced5b5cdcc-c155-4d66-82ef-4289db8e4557
ttlAn integer or null to define the lifetime of the token in days. null represents a token with an infinite lifespan.28800
displayNameA name for the Telemetry Router instancemy-telemetry-router
descriptionAn optional description for your referenceMy Telemetry Router instance
Terminal window
curl -X POST \
'https://telemetry-router.api.[regionId].stackit.cloud/v1alpha/projects/[projectId]/regions/[regionId]/telemetry-routers/[telemetryRouterId]/access-tokens' \
--header 'Authorization: Bearer [accessToken]' \
--header 'Content-Type: application/json' \
--data-raw '{
"ttl": [ttl],
"displayName": [displayName],
"description": [description]
}'
Terminal window
curl -X POST \
'https://telemetry-router.api.eu01.stackit.cloud/v1alpha/projects/16dbfb51-7a75-42d3-a51d-99f87f48cd32/regions/eu01/telemetry-routers/d5b5cdcc-c155-4d66-82ef-4289db8e4557/access-tokens' \
--header 'Authorization: Bearer eyJhbGci0iJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIi0iIxMjM0NTY30DkwIiwibmFtZSI6IkpvaG4gRG91IiwiaXNTb2NpYWwiOnRydWV9.4pcPyMD09o1PSyXnrXCjTwXyr4BsezdI1AVTmud2fU4' \
--header 'Content-Type: application/json' \
--data-raw '{
"ttl": 180,
"displayName": "my-telemetry-router-access-token",
"description": "My Telemetry Router access token"
}'
ParameterMeaningExample
accessTokenThe individual access token of your service accounteyJhbGci0iJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIi0iIxMjM0NTY30DkwIiwibmFtZSI6IkpvaG4gRG91IiwiaXNTb2NpYWwiOnRydWV9.4pcPyMD09o1PSyXnrXCjTwXyr4BsezdI1AVTmud2fU4
projectIdYour individual project ID16dbfb51-7a75-42d3-a51d-99f87f48cd32
regionIdThe region your Telemetry Router instance is locatedeu01
telemetryRouterIdThe ID of your Telemetry Router instanced5b5cdcc-c155-4d66-82ef-4289db8e4557
`
Terminal window
curl -X GET \
'https://telemetry-router.api.[regionId].stackit.cloud/v1alpha/projects/[projectId]/regions/[regionId]/telemetry-routers/[telemetryRouterId]/access-tokens' \
--header 'Authorization: Bearer [accessToken]' \
--header 'Content-Type: application/json'
Terminal window
curl -X GET \
'https://telemetry-router.api.eu01.stackit.cloud/v1alpha/projects/16dbfb51-7a75-42d3-a51d-99f87f48cd32/regions/eu01/telemetry-routers/d5b5cdcc-c155-4d66-82ef-4289db8e4557/access-tokens' \
--header 'Authorization: Bearer eyJhbGci0iJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIi0iIxMjM0NTY30DkwIiwibmFtZSI6IkpvaG4gRG91IiwiaXNTb2NpYWwiOnRydWV9.4pcPyMD09o1PSyXnrXCjTwXyr4BsezdI1AVTmud2fU4' \
--header 'Content-Type: application/json'
ParameterMeaningExample
accessTokenThe individual access token of your service accounteyJhbGci0iJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIi0iIxMjM0NTY30DkwIiwibmFtZSI6IkpvaG4gRG91IiwiaXNTb2NpYWwiOnRydWV9.4pcPyMD09o1PSyXnrXCjTwXyr4BsezdI1AVTmud2fU4
projectIdYour individual project ID16dbfb51-7a75-42d3-a51d-99f87f48cd32
regionIdThe region your Telemetry Router instance is locatedeu01
telemetryRouterIdThe ID of your Telemetry Router instanced5b5cdcc-c155-4d66-82ef-4289db8e4557
accessTokenIdThe ID of your access token for for the Telemetry Router instance988d3545-68fb-47f2-acd7-b3ea96036ba9
Terminal window
curl -X GET \
'https://telemetry-router.api.[regionId].stackit.cloud/v1alpha/projects/[projectId]/regions/[regionId]/telemetry-routers/[telemetryRouterId]/access-tokens/[accessTokenId]' \
--header 'Authorization: Bearer [accessToken]' \
--header 'Content-Type: application/json'
Terminal window
curl -X GET \
'https://telemetry-router.api.eu01.stackit.cloud/v1alpha/projects/16dbfb51-7a75-42d3-a51d-99f87f48cd32/regions/eu01/telemetry-routers/d5b5cdcc-c155-4d66-82ef-4289db8e4557/access-tokens/988d3545-68fb-47f2-acd7-b3ea96036ba9' \
--header 'Authorization: Bearer eyJhbGci0iJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIi0iIxMjM0NTY30DkwIiwibmFtZSI6IkpvaG4gRG91IiwiaXNTb2NpYWwiOnRydWV9.4pcPyMD09o1PSyXnrXCjTwXyr4BsezdI1AVTmud2fU4' \
--header 'Content-Type: application/json'
ParameterMeaningExample
accessTokenThe individual access token of your service accounteyJhbGci0iJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIi0iIxMjM0NTY30DkwIiwibmFtZSI6IkpvaG4gRG91IiwiaXNTb2NpYWwiOnRydWV9.4pcPyMD09o1PSyXnrXCjTwXyr4BsezdI1AVTmud2fU4
projectIdYour individual project ID16dbfb51-7a75-42d3-a51d-99f87f48cd32
regionIdThe region your Telemetry Router instance is locatedeu01
telemetryRouterIdThe ID of your Telemetry Router instanced5b5cdcc-c155-4d66-82ef-4289db8e4557
accessTokenIdThe ID of your access token for for the Telemetry Router instance988d3545-68fb-47f2-acd7-b3ea96036ba9
displayNameA name for the Telemetry Router instance. In this endpoint, the parameter is optional.my-telemetry-router
descriptionAn optional description for your referenceMy Telemetry Router instance
Terminal window
curl -X PUT \
'https://telemetry-router.api.[regionId].stackit.cloud/v1alpha/projects/[projectId]/regions/[regionId]/telemetry-routers/[telemetryRouterId]/access-tokens/[accessTokenId]' \
--header 'Authorization: Bearer [accessToken]' \
--header 'Content-Type: application/json' \
--data-raw '{
"displayName": [name],
"description": [description]
}'
Terminal window
curl -X GET \
'https://telemetry-router.api.eu01.stackit.cloud/v1alpha/projects/16dbfb51-7a75-42d3-a51d-99f87f48cd32/regions/eu01/telemetry-routers/d5b5cdcc-c155-4d66-82ef-4289db8e4557/access-tokens/988d3545-68fb-47f2-acd7-b3ea96036ba9' \
--header 'Authorization: Bearer eyJhbGci0iJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIi0iIxMjM0NTY30DkwIiwibmFtZSI6IkpvaG4gRG91IiwiaXNTb2NpYWwiOnRydWV9.4pcPyMD09o1PSyXnrXCjTwXyr4BsezdI1AVTmud2fU4' \
--header 'Content-Type: application/json' \
--data-raw '{
"displayName": 'my-new-access-token-name',
"description": 'My new description for the access token'
}'

To delete a Telemetry Router instance, you need to call the DELETE endpoint.

ParameterMeaningExample
accessTokenThe individual access token of your service accounteyJhbGci0iJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIi0iIxMjM0NTY30DkwIiwibmFtZSI6IkpvaG4gRG91IiwiaXNTb2NpYWwiOnRydWV9.4pcPyMD09o1PSyXnrXCjTwXyr4BsezdI1AVTmud2fU4
projectIdYour individual project ID16dbfb51-7a75-42d3-a51d-99f87f48cd32
regionIdThe region your Telemetry Router instance is locatedeu01
telemetryRouterIdThe ID of your Telemetry Router instanced5b5cdcc-c155-4d66-82ef-4289db8e4557
accessTokenIdThe ID of your access token for for the Telemetry Router instance988d3545-68fb-47f2-acd7-b3ea96036ba9
Terminal window
curl -X DELETE \
'https://telemetry-router.api.[regionId].stackit.cloud/v1alpha/projects/[projectId]/regions/[regionId]/telemetry-routers/[telemetryRouterId]/access-tokens/[accessTokenId]' \
--header 'Authorization: Bearer [accessToken]' \
--header 'Content-Type: application/json'

Example:

Terminal window
curl -X DELETE \
'https://telemetry-router.api.eu01.stackit.cloud/v1alpha/projects/16dbfb51-7a75-42d3-a51d-99f87f48cd32/regions/eu01/telemetry-routers/d5b5cdcc-c155-4d66-82ef-4289db8e4557/access-tokens/988d3545-68fb-47f2-acd7-b3ea96036ba9' \
--header 'Authorization: Bearer eyJhbGci0iJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIi0iIxMjM0NTY30DkwIiwibmFtZSI6IkpvaG4gRG91IiwiaXNTb2NpYWwiOnRydWV9.4pcPyMD09o1PSyXnrXCjTwXyr4BsezdI1AVTmud2fU4' \
--header 'Content-Type: application/json' \