Get package policy by ID
Query parameters
-
format string
Simplified or legacy format for package inputs
Values are
simplified
orlegacy
.
GET
/api/fleet/package_policies/{packagePolicyId}
curl \
-X GET https://localhost:5601/api/fleet/package_policies/{packagePolicyId}
Response examples (200)
{
"item": {
"id": "string",
"inputs": [
{
"config": {},
"enabled": true,
"processors": [
"string"
],
"streams": [],
"type": "string",
"vars": {}
}
],
"revision": 42.0,
"description": "string",
"enabled": true,
"name": "string",
"namespace": "string",
"output_id": "string",
"overrides": {},
"package": {
"name": "string",
"requires_root": true,
"title": "string",
"version": "string"
},
"policy_id": "string",
"policy_ids": [
"string"
]
}
}
Response examples (400)
{
"error": "string",
"message": "string",
"statusCode": 42.0
}