Update a package policy
Update a package policy by ID.
Body
object
-
Additional datastream permissions, that will be added to the agent policy.
-
Package policy description
-
Hide inputs attributes Show inputs 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)
-
-
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
. -
Package variable (see integration documentation for more information)
-
Additional datastream permissions, that will be added to the agent policy.
-
Package policy inputs (see integration documentation to know what inputs are available)
Hide inputs attribute Show inputs attribute object
-
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)
-
-
-
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
-
-
Indicates whether the package policy belongs to an agentless agent policy.
Default value is
false
. -
Input/stream level variable (see integration documentation for more information)
Responses
-
Hide response attribute Show response attribute object
-
Additional properties are NOT allowed.
Hide item attributes Show item 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
.
-
-
-
-
curl \
--request PUT 'https://<KIBANA_URL>/api/fleet/package_policies/{packagePolicyId}' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{"additional_datastreams_permissions":["string"],"description":"string","enabled":true,"force":true,"inputs":[{"config":{"additionalProperty1":{"frozen":true,"type":"string"},"additionalProperty2":{"frozen":true,"type":"string"}},"enabled":true,"id":"string","keep_enabled":true,"policy_template":"string","streams":[{"config":{"additionalProperty1":{"frozen":true,"type":"string"},"additionalProperty2":{"frozen":true,"type":"string"}},"data_stream":{"dataset":"string","elasticsearch":{"dynamic_dataset":true,"dynamic_namespace":true,"privileges":{"indices":["string"]}},"type":"string"},"enabled":true,"id":"string","keep_enabled":true,"release":"ga","vars":{"additionalProperty1":{"frozen":true,"type":"string"},"additionalProperty2":{"frozen":true,"type":"string"}}}],"type":"string","vars":{"additionalProperty1":{"frozen":true,"type":"string"},"additionalProperty2":{"frozen":true,"type":"string"}}}],"is_managed":true,"name":"string","namespace":"string","output_id":"string","overrides":{"inputs":{}},"package":{"experimental_data_stream_features":[{"data_stream":"string","features":{"doc_value_only_numeric":true,"doc_value_only_other":true,"synthetic_source":true,"tsdb":true}}],"name":"string","requires_root":true,"title":"string","version":"string"},"policy_id":"string","policy_ids":["string"],"spaceIds":["string"],"supports_agentless":false,"vars":{"additionalProperty1":{"frozen":true,"type":"string"},"additionalProperty2":{"frozen":true,"type":"string"}},"version":"string"}'