Get a one-time install secret for a CI machine, by name, creating the machine if needed
For a pipeline that holds only an API key. Finds your es-python machine with this machine_name, or creates it when there is none (distro and arch are then required, and your machine limit applies exactly as for POST /api/add_new_machine/). An existing machine is reset for a fresh install, as POST /api/get_eyalsec_install_script_data/ does, and keeps its name, configuration, rules and events, so one machine serves every run of a pipeline. distro and arch sent for an existing machine update its OS. Returns a single-use install secret that expires after 10 minutes, the install script URL, and server_time, the moment to pass as since to GET /api/ci/findings/ after the run. Requires attested=true. Add format=text for key=value lines. 409 when more than one es-python machine has the name, or when python_version differs from the existing machine's; 403 without es-python on your account.
This is a write: a read-only API key is refused with 403.
Request
- Base URL: https://eyalsec.com
- URL: https://eyalsec.com/api/ci/install/
- Auth: one of:
- API key in header X-API-Key
- API key in cookie __Host-es2session
Response
OK.
Changes
No recorded changes to this operation across all 1 revision of this API.