Get Destinations
GET/accounts/{account_id}/workers/observability/destinations
List your Workers Observability Telemetry Destinations.
Security
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
User Service Key
Used when interacting with the Origin CA certificates API. View/change your key.
Example:
Accepted Permissions (at least one required)
Get Destinations
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/workers/observability/destinations \
-H "X-Auth-Email: $CLOUDFLARE_EMAIL" \
-H "X-Auth-Key: $CLOUDFLARE_API_KEY"{
"errors": [
{
"message": "message"
}
],
"messages": [
{
"message": "Successful request"
}
],
"result": [
{
"configuration": {
"destination_conf": "destination_conf",
"headers": {
"foo": "string"
},
"jobStatus": {
"error_message": "error_message",
"last_complete": "last_complete",
"last_error": "last_error"
},
"logpushDataset": "opentelemetry-traces",
"type": "logpush",
"url": "url"
},
"enabled": true,
"name": "name",
"scripts": [
"string"
],
"slug": "slug"
}
],
"success": true
}Returns Examples
{
"errors": [
{
"message": "message"
}
],
"messages": [
{
"message": "Successful request"
}
],
"result": [
{
"configuration": {
"destination_conf": "destination_conf",
"headers": {
"foo": "string"
},
"jobStatus": {
"error_message": "error_message",
"last_complete": "last_complete",
"last_error": "last_error"
},
"logpushDataset": "opentelemetry-traces",
"type": "logpush",
"url": "url"
},
"enabled": true,
"name": "name",
"scripts": [
"string"
],
"slug": "slug"
}
],
"success": true
}