List package policies

GET /api/fleet/package_policies

Query parameters

  • perPage integer

    The number of items to return

    Default value is 20.

  • page integer

    Default value is 1.

  • kuery string
  • format string

    Simplified or legacy format for package inputs

    Values are simplified or legacy.

Responses

GET /api/fleet/package_policies
curl \
 -X GET https://localhost:5601/api/fleet/package_policies
Response examples (200)
{
  "items": [
    {
      "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"
      ]
    }
  ],
  "page": 42.0,
  "perPage": 42.0,
  "total": 42.0
}
Response examples (400)
{
  "error": "string",
  "message": "string",
  "statusCode": 42.0
}