1get:
2  summary: Agent policies - List
3  tags: []
4  responses:
5    '200':
6      description: OK
7      content:
8        application/json:
9          schema:
10            type: object
11            properties:
12              items:
13                type: array
14                items:
15                  $ref: ../components/schemas/agent_policy.yaml
16              total:
17                type: number
18              page:
19                type: number
20              perPage:
21                type: number
22            required:
23              - items
24              - total
25              - page
26              - perPage
27  operationId: agent-policy-list
28  parameters:
29    - $ref: ../components/parameters/page_size.yaml
30    - $ref: ../components/parameters/page_index.yaml
31    - $ref: ../components/parameters/kuery.yaml
32  description: ''
33post:
34  summary: Agent policy - Create
35  tags: []
36  responses:
37    '200':
38      description: OK
39      content:
40        application/json:
41          schema:
42            type: object
43            properties:
44              item:
45                $ref: ../components/schemas/agent_policy.yaml
46  operationId: create-agent-policy
47  requestBody:
48    content:
49      application/json:
50        schema:
51          $ref: ../components/schemas/new_agent_policy.yaml
52  security: []
53  parameters:
54    - $ref: ../components/headers/kbn_xsrf.yaml
55