Skip to main content

Module agent_policies

Module agent_policies 

Source
Expand description

Typed agent-policy models and public Fleet route wrappers.

Structs§

AgentPolicy
A single policy as returned by its read, create, or update route.
AgentPolicyDetail
Safe single-policy output. Raw Fleet items contain audit identities and populated integration configurations, so they never cross the API boundary.
AgentPolicyPage
One page of the paginated list route.
AgentPolicySpec
The portable, author-controlled agent-policy representation.
AgentPolicySummary
A list row. agents is present on list and single reads; ops requires it for mutation planning.
PackageStatus
The installed state of one package, from GET /api/fleet/epm/packages/{name}. The registry’s latestVersion is 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. body is the complete desired spec without id, plus explicit nulls; agent_policy_ops::build_replace_body builds it.