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 Organization-scoped admin token. Read operations require a valid token, and write operations require a token with write permission.
In: header
Path Parameters
Environment ID that scopes the request.
uuidObservability exporter ID within the environment.
uuidResponse 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"
}
}Request body or parameters failed validation.
{
"error": {
"code": "string",
"message": "string"
}
}Missing or invalid bearer.
{
"error": {
"code": "UNAUTHENTICATED",
"message": "no org context"
}
}Resource not found.
{
"error": {
"code": "NOT_FOUND",
"message": "provider key not found"
}
}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 thanname,enabled, andkindare present when the exporter's kind uses them. Secrets are never returned:otlp_httpreads exposeheader_keysandheaders_setinstead of header values, and the other kinds expose only thecredential_refpointer. -
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_httpsends traces over OTLP/HTTP to an OpenTelemetry-compatible receiver.aliyun_slsdelivers request logs to an Alibaba Cloud SLS logstore.object_storewrites newline-delimited JSON telemetry files to S3, Google Cloud Storage, or Azure Blob Storage.datadogdelivers request logs to the Datadog Logs intake. -
observability_exporter.endpoint(string, optional): Forotlp_http, the receiver URL. Foraliyun_sls, the bare SLS region host. Forobject_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_onlyships operational metadata such as latency, token counts, and status.fulladditionally captures the prompt and the assembled response, each truncated tocontent_max_bytes. -
observability_exporter.content_max_bytes(integer, optional): Per-field capture cap in bytes whencontent_modeisfull(otlp_http,aliyun_sls,datadog). -
observability_exporter.provider(string, optional): Object-storage service forobject_storeexporters. 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 anobject_storeexporter writes. Defaults togzipwhen 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_identityuses the gateway's own attached cloud identity — supported fors3andgcs, and incompatible with a customendpointor acredential_ref. -
observability_exporter.site(string, optional): Datadog site host, such asdatadoghq.comordatadoghq.eu(datadog). -
observability_exporter.service(string, optional): Datadogserviceattribute (datadog). -
observability_exporter.ddsource(string, optional): Datadogddsourceattribute (datadog). -
observability_exporter.tags(array, optional): Tags rendered into Datadog'sddtagsattribute (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 toGET /environments/{env_id}/observability_exporters/{exporter_id}, response 400 above. -
404: Resource not found. Response fields (application/json): identical toGET /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'