Skip to content

Create and manage links

Last updated on

A Telemetry Link requires an existing Telemetry Router. One Telemetry Link can be created per region for each level (project, folder, organization). Configuring a Telemetry Link requires both the ID and an access token of the Telemetry Router that is to be linked. A Telemetry Link strictly assumes that the configured Telemetry Router is located in the same region.

To execute the API commands in this guide, you must first export the relevant path parameters as environment variables in your terminal (or replace them directly in the commands). Depending on the hierarchical level of your link, you will need:

  • $REGION_ID: The region where your instance is located (e.g., eu01 or eu02).
  • $PROJECT_ID: Your STACKIT project ID (if managing a project-level link).
  • $FOLDER_ID: Your STACKIT folder ID (if managing a folder-level link).
  • $ORGANIZATION_ID: Your STACKIT organization ID (if managing an organization-level link).

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": "<ACCESS_TOKEN>",
"telemetryRouterId": "<TELEMETRY_ROUTER_ID>",
"enabled": <ENABLED>,
"displayName": "<DISPLAY_NAME>",
"description": "<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
stackit curl -X PUT \
"https://telemetry-link.api.stackit.cloud/v1/folders/$FOLDER_ID/regions/$REGION_ID/telemetry-link" \
-H "Content-Type: application/json" \
--data '{
"accessToken": "<ACCESS_TOKEN>",
"telemetryRouterId": "<TELEMETRY_ROUTER_ID>",
"enabled": true,
"displayName": "<DISPLAY_NAME>",
"description": "<DESCRIPTION>"
}'
Terminal window
stackit curl -X PUT \
"https://telemetry-link.api.stackit.cloud/v1/organizations/$ORGANIZATION_ID/regions/$REGION_ID/telemetry-link" \
-H "Content-Type: application/json" \
--data '{
"accessToken": "<ACCESS_TOKEN>",
"telemetryRouterId": "<TELEMETRY_ROUTER_ID>",
"enabled": true,
"displayName": "<DISPLAY_NAME>",
"description": "<DESCRIPTION>"
}'
Terminal window
stackit curl -X PUT \
"https://telemetry-link.api.stackit.cloud/v1/projects/$PROJECT_ID/regions/$REGION_ID/telemetry-link" \
-H "Content-Type: application/json" \
--data '{
"accessToken": "<ACCESS_TOKEN>",
"telemetryRouterId": "<TELEMETRY_ROUTER_ID>",
"enabled": true,
"displayName": "<DISPLAY_NAME>",
"description": "<DESCRIPTION>"
}'

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

Terminal window
stackit curl -X GET \
"https://telemetry-link.api.stackit.cloud/v1/folders/$FOLDER_ID/regions/$REGION_ID/telemetry-link" \
-H "Content-Type: application/json"
Terminal window
stackit curl -X GET \
"https://telemetry-link.api.stackit.cloud/v1/organizations/$ORGANIZATION_ID/regions/$REGION_ID/telemetry-link" \
-H "Content-Type: application/json"
Terminal window
stackit curl -X GET \
"https://telemetry-link.api.stackit.cloud/v1/projects/$PROJECT_ID/regions/$REGION_ID/telemetry-link" \
-H "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
stackit curl -X PATCH \
"https://telemetry-link.api.stackit.cloud/v1/folders/$FOLDER_ID/regions/$REGION_ID/telemetry-link" \
-H "Content-Type: application/json" \
--data '<CONFIG_OBJECT>'
Terminal window
stackit curl -X PATCH \
"https://telemetry-link.api.stackit.cloud/v1/organizations/$ORGANIZATION_ID/regions/$REGION_ID/telemetry-link" \
-H "Content-Type: application/json" \
--data '<CONFIG_OBJECT>'
Terminal window
stackit curl -X PATCH \
"https://telemetry-link.api.stackit.cloud/v1/projects/$PROJECT_ID/regions/$REGION_ID/telemetry-link" \
-H "Content-Type: application/json" \
--data '<CONFIG_OBJECT>'

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

Terminal window
stackit curl -X DELETE \
"https://telemetry-link.api.stackit.cloud/v1/folders/$FOLDER_ID/regions/$REGION_ID/telemetry-link" \
-H "Content-Type: application/json"
Terminal window
stackit curl -X DELETE \
"https://telemetry-link.api.stackit.cloud/v1/organizations/$ORGANIZATION_ID/regions/$REGION_ID/telemetry-link" \
-H "Content-Type: application/json"
Terminal window
stackit curl -X DELETE \
"https://telemetry-link.api.stackit.cloud/v1/projects/$PROJECT_ID/regions/$REGION_ID/telemetry-link" \
-H "Content-Type: application/json"