Get agent policies
[Required authorization] Route required privileges: fleet-agent-policies-read OR fleet-agents-read OR fleet-setup.
Query parameters
-
Values are
desc
orasc
. -
use withAgentCount instead
-
get policies with agent count
-
get full policies with package policies populated
-
Values are
simplified
orlegacy
.
Responses
-
Hide response attributes Show response attributes object
-
Hide items attributes Show items attributes object
-
Additional properties are NOT allowed.
Hide advanced_settings attributes Show advanced_settings attributes object
-
Additional properties are NOT allowed.
Hide agentless attributes Show agentless attributes object
-
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
-
-
User defined data tags that are added to all of the inputs. The values can be strings or numbers.
Hide global_data_tags attributes Show global_data_tags attributes object
-
Minimum value is
0
. Default value is1209600
. -
Indicates whether the agent policy has tamper protection enabled. Default false.
-
When set to true, monitoring will be enabled but logs/metrics collection will be disabled
Default value is
false
. -
Additional properties are NOT allowed.
Hide monitoring_diagnostics attributes Show monitoring_diagnostics attributes object
-
Values are
logs
,metrics
, ortraces
. -
Additional properties are NOT allowed.
-
Minimum length is
1
. -
Minimum length is
1
. -
Override settings that are defined in the agent policy. Input settings cannot be overridden. The override option should be used only in unusual circumstances and not as a routine procedure.
Additional properties are allowed.
package_policies
array[string] | array[object] Any of: This field is present only when retrieving a single agent policy, or when retrieving a list of agent policies with the ?full=true parameter
Hide attributes Show attributes object
-
Additional datastream permissions, that will be added to the agent policy.
-
Package policy description
-
Additional properties are allowed.
inputs
array[object] | object Required Any of: Hide attributes Show attributes object
-
Package variable (see integration documentation for more information)
-
Hide streams attributes Show streams attributes object
-
Package variable (see integration documentation for more information)
-
Additional properties are NOT allowed.
Hide data_stream attributes Show data_stream attributes object
-
Additional properties are NOT allowed.
-
Values are
ga
,beta
, orexperimental
. -
Package variable (see integration documentation for more information)
-
-
Package variable (see integration documentation for more information)
Package policy inputs (see integration documentation to know what inputs are available)
Hide attribute Show attribute
-
Additional properties are NOT allowed.
Hide * attributes Show * attributes object
-
enable or disable that input, (default to true)
-
Input streams (see integration documentation to know what streams are available)
Hide streams attribute Show streams attribute object
-
Input/stream level variable (see integration documentation for more information)
-
-
-
Package policy name (should be unique)
-
The package policy namespace. Leave blank to inherit the agent policy's namespace.
-
Override settings that are defined in the package policy. The override option should be used only in unusual circumstances and not as a routine procedure.
Additional properties are NOT allowed.
-
Additional properties are NOT allowed.
Hide package attributes Show package attributes object
-
Hide experimental_data_stream_features attributes Show experimental_data_stream_features attributes object
-
Package name
-
Package version
-
-
Agent policy ID where that package policy will be added
-
Agent policy IDs where that package policy will be added
-
Indicates whether the package policy belongs to an agentless agent policy.
Default value is
false
.
-
-
Values are
active
orinactive
. -
Indicates whether the agent policy supports agentless integrations.
Default value is
false
. -
Minimum value is
0
.
-
-
-
curl \
--request GET 'https://<KIBANA_URL>/api/fleet/agent_policies' \
--header "Authorization: $API_KEY"