Spaces method and path for this operation:
get /s/{space_id}/api/fleet/agent_policies/{agentPolicyId}/outputs
Refer to Spaces for more information.
Get a list of outputs associated with agent policy by policy id.
[Required authorization] Route required privileges: fleet-agent-policies-read AND fleet-settings-read.
GET
/api/fleet/agent_policies/{agentPolicyId}/outputs
curl \
--request GET 'https://localhost:5601/api/fleet/agent_policies/{agentPolicyId}/outputs' \
--header "Authorization: $API_KEY"
Response examples (200)
Outputs associated with the agent policy
{
"item": {
"data_output": {
"id": "output-id-1",
"name": "Default output",
"type": "elasticsearch"
},
"monitoring_output": {
"id": "output-id-1",
"name": "Default output",
"type": "elasticsearch"
}
}
}
Response examples (400)
Example of a generic error response
{
"error": "Bad Request",
"message": "An error message describing what went wrong",
"statusCode": 400
}
Response examples (404)
No agent policy was found with the given ID
{
"error": "Not Found",
"message": "Agent policy not found",
"statusCode": 404
}