[Fleet] Differences between Output API spec and what is returned by the API #167181
Labels
bug
Fixes for quality problems that affect the customer experience
Team:Fleet
Team label for Observability Data Collection Fleet team
While working on updating the terraform provider for fleet, I noticed that when moving to v8.10.0 of the OpenAPI spec (https://raw.githubusercontent.com/elastic/kibana/v8.10.0/x-pack/plugins/fleet/common/openapi/bundled.json), there's a mismatch between what the spec claims the schema should be, and what is actually returned by the API.
The 8.10.0 and later schema seems to remove embedding the output data in an
item
object, but the API still returns the pre-8.10.0 style, where the output object is embedded in anitem
object.In the terraform provider project, we are using the following paths/methods:
GET /outputs/{outputId}
(Affected)PUT /outputs/{outputId}
(Affected)POST /outputs
(Not affected)DELETE /outputs/{outputId}
(Not affected)So from what I can tell, only the
GET
andPUT
methods are affected by this.Before
8.10.0
:In
8.10.0
and later:I'm not sure if dropping the
output
type in favor ofoutput_create_request
was intentional, but when I at least account for theitem
issue, I can unmarshal responses seemingly okay, so I don't think that is a major issue.Here's what's returned by the API on 8.10.2:
GET https://localhost:5601/api/fleet/outputs/fleet-default-output
The text was updated successfully, but these errors were encountered: