Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GET /agent_policies doesn't return any package_policies #1865

Closed
kpashko opened this issue Sep 14, 2022 · 5 comments · Fixed by elastic/kibana#140857
Closed

GET /agent_policies doesn't return any package_policies #1865

kpashko opened this issue Sep 14, 2022 · 5 comments · Fixed by elastic/kibana#140857
Labels
Project:FleetScaling Team:Fleet Label for the Fleet team

Comments

@kpashko
Copy link

kpashko commented Sep 14, 2022

Hi, in 8.5.0 we noticed that /agent_policies endpont of Fleet API doesn't return any package_policies for policies.

At the same time /agent_policy/{id} response has package_policies.

Version 8.4.1 returned list of package policies for both requests.

Vesion 8.5.0

  • /agent_policies response. policy-elastic-agent-on-cloud don't have package policies

    image

  • /agent_policies/policy-elastic-agent-on-cloud. package policies are present

    image

Version 8.4.1

  • /agent_policies response

    image

@kpashko kpashko added Team:Fleet Label for the Fleet team Project:FleetScaling labels Sep 14, 2022
@nchaulet
Copy link
Member

Hi @kpashko

We made a breaking change in 8.5 elastic/kibana#138677 (Fleet API are still beta)
If you need the package policies in the GET /agent_policies this could be done by calling the API with ?full=true

@kpashko
Copy link
Author

kpashko commented Sep 15, 2022

@nchaulet got it, thanks!
Should I open an issue to kibana team to update the api doc?

@pjbertels
Copy link

There should already be an issue for it. @nchaulet Please add the link to this issue. Thanks.

@nchaulet
Copy link
Member

Thanks for catching this I created the following PR to fix the documentation elastic/kibana#140857

@kpashko
Copy link
Author

kpashko commented Sep 19, 2022

Thanks @nchaulet! Feel free to close the issue. All good on our side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Project:FleetScaling Team:Fleet Label for the Fleet team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants