Get agent name for service
Retrieve agentName
for a service.
Headers
-
The version of the API to use
Value is
2023-10-31
. Default value is2023-10-31
.
Query parameters
-
The name of the service
GET /api/apm/settings/agent-configuration/agent_name
curl \
-X GET https://localhost:5601/api/apm/settings/agent-configuration/agent_name?serviceName=node \
-H "elastic-api-version: 2023-10-31"
Response examples (200)
{
"agentName": "nodejs"
}
Response examples (400)
{
"error": "Not Found",
"message": "Not Found",
"statusCode": 400
}
Response examples (401)
{
"error": "Unauthorized",
"message": "string",
"statusCode": 401
}
Response examples (404)
{
"error": "Not Found",
"message": "Not Found",
"statusCode": 404
}