Dry run package policy upgrade

View as Markdown
POST /api/fleet/package_policies/upgrade/dryrun

Spaces method and path for this operation:

post /s/{space_id}/api/fleet/package_policies/upgrade/dryrun

Refer to Spaces for more information.

application/json

Body

  • packagePolicyIds array[string] Required
  • packageVersion string

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • agent_diff array[array]
      Hide agent_diff attributes Show agent_diff attributes object
      • data_stream object Required
        Hide data_stream attribute Show data_stream attribute object
        • namespace string Required
      • id string Required
      • meta object

        Additional properties are allowed.

        Hide meta attribute Show meta attribute object
        • package object
          Hide package attributes Show package attributes object
          • name string Required
          • version string Required
      • name string Required
      • revision number Required
      • streams object

        Additional properties are allowed.

        Hide streams attributes Show streams attributes object
        • data_stream object Required
          Hide data_stream attributes Show data_stream attributes object
          • dataset string Required
          • type string Required
        • id string Required
      • type string Required
      • use_output string Required
    • diff array[object]
      Hide diff attributes Show diff attributes object
      • id string Required
      • inputs array | object

      • inputs array[object] Required
        Hide inputs attributes Show inputs attributes object
        • config object
        • enabled boolean Required
        • processors array[string]
        • streams array
        • type string Required
        • vars object
      • revision number Required
      • description string
      • enabled boolean
      • name string Required
      • namespace string
      • output_id string
      • overrides object
      • package object
        Hide package attributes Show package attributes object
        • name string Required
        • requires_root boolean
        • title string
        • version string Required
      • policy_id string | null Deprecated
      • policy_ids array[string]
      • errors array[object]
        Hide errors attributes Show errors attributes object
        • key string
        • message string
      • missingVars array[string]
    • hasErrors boolean Required
  • 400 application/json

    Generic Error

    Hide response attributes Show response attributes object
    • error string
    • message string
    • statusCode number
POST /api/fleet/package_policies/upgrade/dryrun
curl \
 --request POST 'https://localhost:5601/api/fleet/package_policies/upgrade/dryrun' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"packagePolicyIds":["string"],"packageVersion":"string"}'