POST /api/fleet/epm/packages/{pkgName}/{pkgVersion}/transforms/authorize

Spaces method and path for this operation:

post /s/{space_id}/api/fleet/epm/packages/{pkgName}/{pkgVersion}/transforms/authorize

Refer to Spaces for more information.

Reauthorize Elasticsearch transforms installed by a package with secondary authorization headers.

Headers

  • kbn-xsrf string Required

    A required header to protect against CSRF attacks

Path parameters

  • pkgName string Required

    Package name

  • pkgVersion string Required

    Package version

Query parameters

  • prerelease boolean

    When true, allow prerelease versions

application/json

Body

  • transforms array[object] Required

    Not more than 1000 elements.

    Hide transforms attribute Show transforms attribute object
    • transformId string Required

Responses

  • 200 application/json

    Successful response

    Hide response attributes Show response attributes object
    • error Required
    • success boolean Required
    • transformId string Required
  • 400 application/json

    Bad Request

    Hide response attributes Show response attributes object
    • attributes Required
    • error string
    • errorType string
    • message string Required
    • statusCode number
POST /api/fleet/epm/packages/{pkgName}/{pkgVersion}/transforms/authorize
curl \
 --request POST 'https://localhost:5601/api/fleet/epm/packages/{pkgName}/{pkgVersion}/transforms/authorize' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --header "kbn-xsrf: true" \
 --data '{"transforms":[{"destinations":[{"index":"logs-transform-dest"}],"transformId":"logs-transform-1"}]}'
Request example
Reauthorize transforms for a package
{
  "transforms": [
    {
      "destinations": [
        {
          "index": "logs-transform-dest"
        }
      ],
      "transformId": "logs-transform-1"
    }
  ]
}
Response examples (200)
Transforms successfully reauthorized
[
  {
    "success": true,
    "transformId": "logs-transform-1"
  }
]
Response examples (400)
Example of a generic error response
{
  "error": "Bad Request",
  "message": "An error message describing what went wrong",
  "statusCode": 400
}