Spaces method and path for this operation:
Refer to Spaces for more information.
Install a specific version of a package from the Elastic Package Registry.
[Required authorization] Route required privileges: integrations-all AND fleet-agent-policies-all.
Query parameters
-
When true, allow installing prerelease versions
-
When true, ignore mapping update errors during installation
Default value is
false. -
When true, skip data stream rollover after installation
Default value is
false. -
Skip dependency validation when installing a package with dependencies
Default value is
false.
Body
-
When true, acknowledge the breaking changes listed in the package changelog for the versions being upgraded. Without it, an upgrade whose version range includes breaking changes is rejected. The
forceflag does not bypass this check.Default value is
false. -
When true, allow installing a version older than the latest available. Bypasses only the out-of-date version check.
Default value is
false. -
Default value is
false. -
Default value is
false.
curl \
--request POST 'https://<KIBANA_URL>/api/fleet/epm/packages/{pkgName}/{pkgVersion}' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{
"ignore_constraints": false
}'
{
"ignore_constraints": false
}
{
"_meta": {
"install_source": "registry"
},
"items": [
{
"id": "aws-logs-aws.cloudwatch_logs-default",
"type": "index_template"
}
]
}
{
"error": "Bad Request",
"message": "An error message describing what went wrong",
"statusCode": 400
}