Dry run package policy upgrade
Body
-
packageVersion string
POST /api/fleet/package_policies/upgrade/dryrun
curl \
-X POST https://localhost:5601/api/fleet/package_policies/upgrade/dryrun \
-H "Content-Type: application/json; Elastic-Api-Version=2023-10-31"
Request examples
{
"packagePolicyIds": [
"string"
],
"packageVersion": "string"
}
Response examples (200)
[
{
"agent_diff": [
[
{
"data_stream": {
"namespace": "string"
},
"id": "string",
"meta": {
"package": {
"name": "string",
"version": "string"
}
},
"name": "string",
"revision": 42.0,
"streams": {
"data_stream": {
"dataset": "string",
"type": "string"
},
"id": "string"
},
"type": "string",
"use_output": "string"
}
]
],
"diff": [
{
"id": "string",
"inputs": [
{
"config": {},
"enabled": true,
"processors": [
"string"
],
"streams": [],
"type": "string",
"vars": {}
}
],
"revision": 42.0,
"description": "string",
"enabled": true,
"name": "string",
"namespace": "string",
"output_id": "string",
"overrides": {},
"package": {
"name": "string",
"requires_root": true,
"title": "string",
"version": "string"
},
"policy_id": "string",
"policy_ids": [
"string"
],
"errors": [
{
"key": "string",
"message": "string"
}
],
"missingVars": [
"string"
]
}
],
"hasErrors": true
}
]
Response examples (400)
{
"error": "string",
"message": "string",
"statusCode": 42.0
}