Spaces method and path for this operation:
get /s/{space_id}/api/apm/settings/agent-configuration/view
Refer to Spaces for more information.
Retrieve a single agent configuration matching the given service name and environment. You must have read privileges for the APM and User Experience feature in Kibana. If no matching configuration is found, the API returns a 404.
GET
/api/apm/settings/agent-configuration/view
curl \
--request GET 'https://<KIBANA_URL>/api/apm/settings/agent-configuration/view' \
--header "Authorization: $API_KEY" \
--header "elastic-api-version: 2023-10-31"
Response examples (200)
An example of a successful response from `GET /api/apm/settings/agent-configuration/view`.
{
"@timestamp": 1582031336265,
"agent_name": "nodejs",
"applied_by_agent": true,
"etag": "5080ed25785b7b19f32713681e79f46996801a5b",
"id": "CIaqXXABmQCdPphWj8EJ",
"service": {
"environment": "production",
"name": "frontend"
},
"settings": {
"capture_body": "off",
"transaction_max_spans": "500",
"transaction_sample_rate": "0.4"
}
}
Response examples (400)
An example of a 400 Bad Request response, returned when the request payload or query parameters fail validation.
{
"error": "Bad Request",
"message": "[request body]: expected value of type [string] but got [undefined]",
"statusCode": 400
}
Response examples (401)
An example of a 401 Unauthorized response, returned when the request is missing valid authentication credentials.
{
"error": "Unauthorized",
"message": "[security_exception]: missing authentication credentials for REST request",
"statusCode": 401
}
Response examples (404)
An example of a 404 Not Found response, returned when the requested resource does not exist or the feature is not available on the current deployment.
{
"error": "Not Found",
"message": "Not Found",
"statusCode": 404
}