Create a package policy
Spaces method and path for this operation:
Refer to Spaces for more information.
Body
object
You should use inputs as an object and not use the deprecated inputs array.
-
Additional datastream permissions, that will be added to the agent policy.
-
ID of the cloud connector associated with this package policy.
-
Package policy description
-
Force package policy creation even if the package is not verified, or if the agent policy is managed.
-
Package policy unique identifier
-
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)
-
-
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.
-
Indicates whether the package policy belongs to an agentless agent policy. Deprecated in favor of the Fleet agentless policies API.
Default value is
false. -
Indicates whether the package policy supports cloud connectors.
Default value is
false. -
Package variable (see integration documentation for more information)
-
Additional datastream permissions, that will be added to the agent policy.
-
Policy description.
-
Force package policy creation even if the package is not verified, or if the agent policy is managed.
-
Policy unique identifier.
-
Package policy inputs. Refer to the integration documentation to know which 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. 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 policy.
-
Policy namespace. When not specified, it inherits the agent policy namespace.
-
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
-
-
Deprecated. Use policy_ids instead.
-
IDs of the agent policies which that package policy will be added to.
-
Indicates whether the package policy belongs to an agentless agent policy. Deprecated in favor of the Fleet agentless policies API.
Default value is
false. -
Input/stream level variable. Refer to the integration documentation for more information.
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 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.
-
-
-
A bad request.
-
A conflict occurred.
curl \
--request POST 'https://localhost:5601/api/fleet/package_policies' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{"additional_datastreams_permissions":["string"],"cloud_connector_id":"string","description":"string","enabled":true,"force":true,"id":"string","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}}],"fips_compatible":true,"name":"string","requires_root":true,"title":"string","version":"string"},"policy_id":"string","policy_ids":["string"],"spaceIds":["string"],"supports_agentless":false,"supports_cloud_connector":false,"vars":{"additionalProperty1":{"frozen":true,"type":"string"},"additionalProperty2":{"frozen":true,"type":"string"}}}'