Create a pack Beta

POST /api/osquery/packs

Create a query pack.

application/json; Elastic-Api-Version=2023-10-31

Body Required

Responses

  • 200 application/json; Elastic-Api-Version=2023-10-31

    OK

    Additional properties are allowed.

POST /api/osquery/packs
curl \
 -X POST https://<KIBANA_URL>/api/osquery/packs \
 -H "Content-Type: application/json; Elastic-Api-Version=2023-10-31"
Request examples
{
  "description": "string",
  "enabled": true,
  "name": "string",
  "policy_ids": [
    "string"
  ],
  "queries": {
    "additionalProperty1": {
      "ecs_mapping": {
        "additionalProperty1": {
          "field": "string",
          "value": "string"
        },
        "additionalProperty2": {
          "field": "string",
          "value": "string"
        }
      },
      "id": "string",
      "platform": "string",
      "query": "string",
      "removed": true,
      "saved_query_id": "string",
      "snapshot": true,
      "version": "string"
    },
    "additionalProperty2": {
      "ecs_mapping": {
        "additionalProperty1": {
          "field": "string",
          "value": "string"
        },
        "additionalProperty2": {
          "field": "string",
          "value": "string"
        }
      },
      "id": "string",
      "platform": "string",
      "query": "string",
      "removed": true,
      "saved_query_id": "string",
      "snapshot": true,
      "version": "string"
    }
  },
  "shards": {
    "additionalProperty1": 42.0,
    "additionalProperty2": 42.0
  }
}
Response examples (200)
{}