Get an agent policy
Spaces method and path for this operation:
Refer to Spaces for more information.
Get an agent policy by ID.
[Required authorization] Route required privileges: fleet-agent-policies-read OR fleet-agents-read OR fleet-setup.
Responses
-
OK: A successful request.
Hide response attribute Show response attribute object
-
Additional properties are NOT allowed.
Hide item attributes Show item 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.
-
ID of the cloud connector associated with this package policy.
-
Package policy description
-
Additional properties are allowed.
-
Package policy unique identifier.
inputs
array[object] | object Required Package policy inputs.
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. Refer to the integration documentation to know which inputs are available.
Hide attribute Show attribute
-
Additional properties are NOT allowed.
Hide * attributes Show * attributes object
-
Enable or disable that input. Defaults to
true(enabled). -
Input streams. Refer to the integration documentation to know which streams are available.
Hide streams attribute Show streams attribute object
-
Input/stream level variable. Refer to the integration documentation for more information.
-
-
-
Unique name for the package policy.
-
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
-
-
ID of the agent policy which the package policy will be added to.
-
IDs of the agent policies which that package policy will be added to.
-
Package policy revision.
-
Indicates whether the package policy belongs to an agentless agent policy.
Default value is
false. -
Indicates whether the package policy supports cloud connectors.
Default value is
false. -
Package policy ES version.
-
-
Values are
activeorinactive. -
Indicates whether the agent policy supports agentless integrations.
Default value is
false. -
Minimum value is
0.
-
-
-
A bad request.
curl \
--request GET 'https://<KIBANA_URL>/api/fleet/agent_policies/{agentPolicyId}' \
--header "Authorization: $API_KEY"