Skip to content

Create and manage links

Last updated on

With links you can connect your Telemetry Router to a STACKIT stream source. Supported identifiers for stream sources are folders, organizations and projects.

Telemetry links are organized in three levels:

  • folders: Captures everything related to folders itself
  • organizations: Captures everything related to organizations itself
  • projects: Captures everything related to projects and all data within. The vast majority of data runs over this link.

A telemetry link captures data according to its associated level only. There is no inheritance – to capture all available information, you need at least one telemetry link for each level.

Section titled “Choose the properties for your new or edited link”

To create or edit a telemetry link you need to define its parameters. All parameters are part of a JSON config body object of this form:

For creating, all parameters except description are mandatory. For editing all parameters are optional.

{
[accessToken],
[telemetryRouterId],
[enabled],
[displayName],
[description]
}

To create a telemetry link, you need to call the appropriate endpoint. Each level (folders, organizations and projects) has its own endpoint. The body scheme is equal of each level.

Terminal window
curl -X PUT \
'https://telemetry-link.api.stackit.cloud/v1beta/folders/[folderId]/regions/[regionId]/telemetry-link' \
--header 'Authorization: Bearer [accessToken]' \
--header 'Content-Type: application/json' \
--data-raw '{
[config]
}'
Terminal window
curl -X PUT \
'https://telemetry-link.api.stackit.cloud/v1beta/organizations/[organizationId]/regions/[regionId]/telemetry-link' \
--header 'Authorization: Bearer [accessToken]' \
--header 'Content-Type: application/json' \
--data-raw '{
[config]
}'
Terminal window
curl -X PUT \
'https://telemetry-link.api.stackit.cloud/v1beta/projects/[projectId]/regions/[regionId]/telemetry-link' \
--header 'Authorization: Bearer [accessToken]' \
--header 'Content-Type: application/json' \
--data-raw '{
[config]
}'

To view a telemetry link, you need to call the appropriate endpoint. Each level (folders, organizations and projects) has its own endpoint.

Terminal window
curl -X GET \
'https://telemetry-link.api.stackit.cloud/v1beta/folders/[folderId]/regions/[regionId]/telemetry-link' \
--header 'Authorization: Bearer [accessToken]' \
--header 'Content-Type: application/json' \
Terminal window
curl -X GET \
'https://telemetry-link.api.stackit.cloud/v1beta/organizations/[organizationId]/regions/[regionId]/telemetry-link' \
--header 'Authorization: Bearer [accessToken]' \
--header 'Content-Type: application/json' \
Terminal window
curl -X GET \
'https://telemetry-link.api.stackit.cloud/v1beta/projects/[projectId]/regions/[regionId]/telemetry-link' \
--header 'Authorization: Bearer [accessToken]' \
--header 'Content-Type: application/json' \

To edit a telemetry link, you need to call the appropriate endpoint. Each level (folders, organizations and projects) has its own endpoint. The body scheme is equal of each level.

Terminal window
curl -X PATCH \
'https://telemetry-link.api.stackit.cloud/v1beta/folders/[folderId]/regions/[regionId]/telemetry-link' \
--header 'Authorization: Bearer [accessToken]' \
--header 'Content-Type: application/json' \
--data-raw '{
[config]
}'
Terminal window
curl -X PATCH \
'https://telemetry-link.api.stackit.cloud/v1beta/organizations/[organizationId]/regions/[regionId]/telemetry-link' \
--header 'Authorization: Bearer [accessToken]' \
--header 'Content-Type: application/json' \
--data-raw '{
[config]
}'
Terminal window
curl -X PATCH \
'https://telemetry-link.api.stackit.cloud/v1beta/projects/[projectId]/regions/[regionId]/telemetry-link' \
--header 'Authorization: Bearer [accessToken]' \
--header 'Content-Type: application/json' \
--data-raw '{
[config]
}'

To delete a telemetry link, you need to call the appropriate endpoint. Each level (folders, organizations and projects) has its own endpoint.

Terminal window
curl -X DELETE \
'https://telemetry-link.api.stackit.cloud/v1beta/folders/[folderId]/regions/[regionId]/telemetry-link' \
--header 'Authorization: Bearer [accessToken]' \
--header 'Content-Type: application/json' \
Terminal window
curl -X DELETE \
'https://telemetry-link.api.stackit.cloud/v1beta/organizations/[organizationId]/regions/[regionId]/telemetry-link' \
--header 'Authorization: Bearer [accessToken]' \
--header 'Content-Type: application/json' \
Terminal window
curl -X DELETE \
'https://telemetry-link.api.stackit.cloud/v1beta/projects/[projectId]/regions/[regionId]/telemetry-link' \
--header 'Authorization: Bearer [accessToken]' \
--header 'Content-Type: application/json' \