API7 Docs

Get Observability Exporter by ID

GET /environments/{env_id}/observability_exporters/{exporter_id}

GET /environments/{env_id}/observability_exporters/{exporter_id}

Interactive request editor loads with JavaScript.

Authorization

BearerAdminToken
AuthorizationBearer <token>

Organization-scoped admin token. Read operations require a valid token, and write operations require a token with write permission.

In: header

Path Parameters

env_id*string

Environment ID that scopes the request.

Formatuuid
exporter_id*string

Observability exporter ID within the environment.

Formatuuid

Response Body

application/json

application/json

application/json

application/json

curl -X GET "$AISIX_CP/environments/$ENV_ID/observability_exporters/$EXPORTER_ID" \  -H "Authorization: Bearer $AISIX_TOKEN"

OK

{
  "observability_exporter": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "env_id": "3f917d0d-4dff-42f3-97c4-6a5455dfe8c2",
    "name": "string",
    "enabled": true,
    "kind": "otlp_http",
    "endpoint": "string",
    "header_keys": [
      "string"
    ],
    "headers_set": true,
    "trace_ui_url_template": "string",
    "sample_rate": 0,
    "project": "string",
    "logstore": "string",
    "content_mode": "metadata_only",
    "content_max_bytes": 0,
    "provider": "s3",
    "bucket": "string",
    "prefix": "string",
    "region": "string",
    "compression": "gzip",
    "auth_mode": "credential_ref",
    "site": "string",
    "service": "string",
    "ddsource": "string",
    "tags": [
      "string"
    ],
    "credential_ref": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  }
}
Complete operation details and schema variants

GET /environments/{env_id}/observability_exporters/{exporter_id}

Get Observability Exporter by ID

Return one telemetry exporter in the environment. Secret header values and credential material are not returned.

Parameters

  • env_id (path, string, required): Environment ID that scopes the request.
  • exporter_id (path, string, required): Observability exporter ID within the environment.

Responses

  • 200: OK

  • observability_exporter (object, required): A configured telemetry exporter. The gateway ships telemetry directly to the target; the AISIX Cloud control plane stores the configuration only. Fields other than name, enabled, and kind are present when the exporter's kind uses them. Secrets are never returned: otlp_http reads expose header_keys and headers_set instead of header values, and the other kinds expose only the credential_ref pointer.

  • observability_exporter.id (string, required): Observability exporter ID.

  • observability_exporter.env_id (string, required): Environment ID that owns this exporter.

  • observability_exporter.name (string, required): Human-readable exporter name, unique within the environment. Fixed at creation.

  • observability_exporter.enabled (boolean, required): Disabled exporters are kept but the gateway stops shipping telemetry to them.

  • observability_exporter.kind (string, required): Telemetry destination type, fixed at creation. otlp_http sends traces over OTLP/HTTP to an OpenTelemetry-compatible receiver. aliyun_sls delivers request logs to an Alibaba Cloud SLS logstore. object_store writes newline-delimited JSON telemetry files to S3, Google Cloud Storage, or Azure Blob Storage. datadog delivers request logs to the Datadog Logs intake.

  • observability_exporter.endpoint (string, optional): For otlp_http, the receiver URL. For aliyun_sls, the bare SLS region host. For object_store, the optional S3-compatible host override.

  • observability_exporter.header_keys (array, optional): Names of the static headers attached to every export request (otlp_http). Header values are never returned.

  • observability_exporter.headers_set (boolean, optional): Whether encrypted header values are stored for this exporter (otlp_http).

  • observability_exporter.trace_ui_url_template (string, optional): Deep-link template used by log views to open a request's trace in an external UI (otlp_http). Contains a {request_id} placeholder, a {trace_id} placeholder, or both — {trace_id} addresses the trace by the trace ID the gateway exported its spans under; {request_id} suits backends that search the request-ID span attribute.

  • observability_exporter.sample_rate (number, optional): Fraction of requests whose traces are exported, between 0 and 1 (otlp_http). Absent means every request is exported.

  • observability_exporter.project (string, optional): SLS project name (aliyun_sls).

  • observability_exporter.logstore (string, optional): SLS logstore name (aliyun_sls).

  • observability_exporter.content_mode (string, optional): What the exporter captures per request. metadata_only ships operational metadata such as latency, token counts, and status. full additionally captures the prompt and the assembled response, each truncated to content_max_bytes.

  • observability_exporter.content_max_bytes (integer, optional): Per-field capture cap in bytes when content_mode is full (otlp_http, aliyun_sls, datadog).

  • observability_exporter.provider (string, optional): Object-storage service for object_store exporters. Fixed at creation because it selects the credential family the gateway resolves.

  • observability_exporter.bucket (string, optional): Bucket or container name (object_store).

  • observability_exporter.prefix (string, optional): Key prefix for written objects (object_store).

  • observability_exporter.region (string, optional): Cloud region of the bucket (object_store).

  • observability_exporter.compression (string, optional): Compression for the telemetry files an object_store exporter writes. Defaults to gzip when omitted.

  • observability_exporter.auth_mode (string, optional): How the gateway authenticates to the object store. credential_ref (the default) resolves a static cloud key from a named credential the gateway holds locally. cloud_identity uses the gateway's own attached cloud identity — supported for s3 and gcs, and incompatible with a custom endpoint or a credential_ref.

  • observability_exporter.site (string, optional): Datadog site host, such as datadoghq.com or datadoghq.eu (datadog).

  • observability_exporter.service (string, optional): Datadog service attribute (datadog).

  • observability_exporter.ddsource (string, optional): Datadog ddsource attribute (datadog).

  • observability_exporter.tags (array, optional): Tags rendered into Datadog's ddtags attribute (datadog).

  • observability_exporter.credential_ref (string, optional): Name of the credential the gateway resolves from its own runtime environment (aliyun_sls, object_store, datadog). The referenced secret never leaves the gateway host.

  • observability_exporter.created_at (string, required): Time when the exporter was created.

  • observability_exporter.updated_at (string, required): Time when the exporter was last updated.

  • 400: Request body or parameters failed validation.

  • error (object, required): Error details.

  • error.code (string, required): Machine-readable identifier. Examples: UNAUTHENTICATED, INVALID_REQUEST, MASTER_KEY_UNSET, INTERNAL.

  • error.message (string, required): Human-readable explanation; safe to surface to operators.

  • 401: Missing or invalid bearer. Response fields (application/json): identical to GET /environments/{env_id}/observability_exporters/{exporter_id}, response 400 above.

  • 404: Resource not found. Response fields (application/json): identical to GET /environments/{env_id}/observability_exporters/{exporter_id}, response 400 above.

cURL

curl -X GET '$AISIX_CP/environments/{env_id}/observability_exporters/{exporter_id}' -H 'Authorization: Bearer $AISIX_TOKEN'