Type to search.

Deprecated: Preview a managed integrations upgrade

Base URL
https://{kibana_url}
  • POST /api/fleet/agentless_policies/_upgrade/dryrun
Auth The Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats. Availability Experimental since 9.5 This functionality is experimental and is not ready for production usage. Experimental features may change or be removed at any time. Elastic will work to fix any issues, but experimental features are not subject to the support SLA of official GA features. Specific Support terms apply. Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments. This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.

Deprecated. Use POST /api/fleet/managed_integrations/_upgrade/dryrun instead. Preview upgrading multiple managed integrations without applying any change. Targets the installed package version by default; pass pkgVersion to preview a specific (for example, not-yet-installed) version. Each result returns the current/proposed version and any migration errors, plus — only on a clean dry-run (hasErrors: false) — the migrated proposedPolicy. proposedPolicy is for the edit-and-upgrade flow (edit it, then save via the update (PUT) endpoint); to apply an upgrade as-is, use _upgrade.

Header parameters

kbn-xsrf string required

A required header to protect against CSRF attacks

Request body

pkgVersion string · max length: 256

Target package version to preview the upgrade against. Defaults to the installed package version.

policyIds string[] · max items: 1000 required

IDs of the managed integrations to preview upgrading.

Responses

Indicates a successful response. Each clean item (hasErrors: false) previews the migrated policy as a consumable managed integration (proposedPolicy); a missing id, an id that is not a managed integration, or a migration error, is reported as a per-item failure (hasErrors: true, with proposedPolicy omitted) without failing the batch. Inspect every item.

application/json
<array> object[] · max items: 10000
currentVersion string · max length: 256

The current installed package version of the policy.

hasErrors boolean required

Whether the dry-run migration produced any errors.

id string · max length: 256 required

The ID of the managed integration.

name string · max length: 256

The name of the managed integration.

proposedVersion string · max length: 256

The package version the policy would be upgraded to.

statusCode number

HTTP-like status code when the dry-run failed for this policy.