get: summary: List agent policies tags: - Agent policies responses: '200': description: OK content: application/json: schema: type: object properties: items: type: array items: $ref: ../components/schemas/agent_policy.yaml total: type: number page: type: number perPage: type: number required: - items - total - page - perPage '400': $ref: ../components/responses/error.yaml operationId: agent-policy-list parameters: - $ref: ../components/parameters/page_size.yaml - $ref: ../components/parameters/page_index.yaml - $ref: ../components/parameters/kuery.yaml - schema: type: boolean in: query name: full description: When set to true, retrieve the related package policies for each agent policy. - schema: type: boolean in: query name: noAgentCount description: When set to true, do not count how many agents are in the agent policy, this can improve performance if you are searching over a large number of agent policies. The "agents" property will always be 0 if set to true. description: '' post: summary: Create agent policy tags: - Agent policies responses: '200': description: OK content: application/json: schema: type: object properties: item: $ref: ../components/schemas/agent_policy.yaml '400': $ref: ../components/responses/error.yaml operationId: create-agent-policy requestBody: content: application/json: schema: $ref: ../components/schemas/agent_policy_create_request.yaml security: [] parameters: - $ref: ../components/headers/kbn_xsrf.yaml