How to create elastic Agent Policy and Toekns using Curl

Trying to setup automatic sandbox environment that requires destroy and rebuild quiet often.
Every time building the sandbox using the docker compose had to manually login to the GUI and add fleet host, create fleet policy, create agent policy, enrolment tokens manually.

What are the Equivalent API for Generate Fleet Server Policy, Agent Policy, Fleet Service Token, Elastic Agent Enrolment Token, Add Fleet Server

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.