Zum Inhalt springen

Create and manage instances

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

Choose the properties for your new instance

Section titled “Choose the properties for your new instance”
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
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' \
--header 'Authorization: Bearer [accessToken]' \
--header 'Content-Type: application/json' \
--data-raw '{
"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' \
--header 'Authorization: Bearer eyJhbGci0iJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIi0iIxMjM0NTY30DkwIiwibmFtZSI6IkpvaG4gRG91IiwiaXNTb2NpYWwiOnRydWV9.4pcPyMD09o1PSyXnrXCjTwXyr4BsezdI1AVTmud2fU4' \
--header 'Content-Type: application/json' \
--data-raw '{
"displayName": "my-telemetry-router",
"description": "My Telemetry Router instance"
}'
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
Terminal window
curl -X GET \
'https://telemetry-router.api.[regionId].stackit.cloud/v1alpha/projects/[projectId]/regions/[regionId]/telemetry-routers' \
--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' \
--header 'Authorization: Bearer [accessToken]' \
--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
Terminal window
curl -X GET \
'https://telemetry-router.api.[regionId].stackit.cloud/v1alpha/projects/[projectId]/regions/[regionId]/telemetry-routers/[telemetryRouterId]' \
--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' \
--header 'Authorization: Bearer [accessToken]' \
--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
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
filterAn optional filter object. Read Filter to learn how filters work.See Filter example
Terminal window
curl -X PUT \
'https://telemetry-router.api.[regionId].stackit.cloud/v1alpha/projects/[projectId]/regions/[regionId]/telemetry-routers/[telemetryRouterId]' \
--header 'Authorization: Bearer [accessToken]' \
--header 'Content-Type: application/json'
--data-raw '{
"displayName": [name],
"description": [description],
"filter": [filter]
}'
attributes: [
{
key: 'my-special-filter',
level: 'scope',
matcher: '=',,
value: 'user',
},
]

Example of adding a filter to an existing Telemetry Router instance

Section titled “Example of adding a filter to an existing Telemetry Router instance”
Terminal window
curl -X PUT \
'https://telemetry-router.api.eu01.stackit.cloud/v1alpha/projects/16dbfb51-7a75-42d3-a51d-99f87f48cd32/regions/eu01/telemetry-routers/d5b5cdcc-c155-4d66-82ef-4289db8e4557' \
--header 'Authorization: Bearer eyJhbGci0iJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIi0iIxMjM0NTY30DkwIiwibmFtZSI6IkpvaG4gRG91IiwiaXNTb2NpYWwiOnRydWV9.4pcPyMD09o1PSyXnrXCjTwXyr4BsezdI1AVTmud2fU4' \
--header 'Content-Type: application/json' \
--data-raw '{
"filter": {
"attributes": [
{
"key": "my-special-filter",
"level": "scope",
"matcher": "=",
"value": "user"
}
]
}
}'

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
Terminal window
curl -X DELETE \
'https://telemetry-router.api.[regionId].stackit.cloud/v1alpha/projects/[projectId]/regions/[regionId]/telemetry-routers/[telemetryRouterId]' \
--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' \
--header 'Authorization: Bearer eyJhbGci0iJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIi0iIxMjM0NTY30DkwIiwibmFtZSI6IkpvaG4gRG91IiwiaXNTb2NpYWwiOnRydWV9.4pcPyMD09o1PSyXnrXCjTwXyr4BsezdI1AVTmud2fU4' \
--header 'Content-Type: application/json' \