Expand description
Typed agent-policy models and public Fleet route wrappers.
Structs§
- Agent
Policy - A single policy as returned by its read, create, or update route.
- Agent
Policy Detail - Safe single-policy output. Raw Fleet items contain audit identities and populated integration configurations, so they never cross the API boundary.
- Agent
Policy Page - One page of the paginated list route.
- Agent
Policy Spec - The portable, author-controlled agent-policy representation.
- Agent
Policy Summary - A list row.
agentsis present on list and single reads; ops requires it for mutation planning. - Package
Status - The installed state of one package, from
GET /api/fleet/epm/packages/{name}. The registry’slatestVersionis deliberately not kept: it moves on a registry refresh and would make two snapshots of one installation unequal.
Constants§
- AGENTLESS_
FIELD - Nullable object that marks an agentless policy when present.
- DEFAULT_
INACTIVITY_ TIMEOUT - Fleet’s create-time default for
inactivity_timeout, in seconds. - ENVIRONMENT_
IDS - Target-local infrastructure references. Sorted.
- PLATFORM_
FLAGS - Boolean flags that mark a policy Fleet or the deployment owns. Sorted.
Functions§
- create
- Create a policy with its explicit id and no implicit System integration.
- delete
- Delete one policy by id. Never sends
force. - get
- Read one policy by its stable id.
- list_
page - Read one page of the list route with the measured deterministic ordering.
- package_
status - Read a package’s installation state. The full item is registry metadata; only the installation facts are kept.
- update
- Replace a policy.
bodyis the complete desired spec withoutid, plus explicit nulls;agent_policy_ops::build_replace_bodybuilds it.