Assign a policy to endpoints
apply_policy_to_endpointsAssign a policy to endpoints by resolving endpoint IDs or a hostname pattern, previewing the target set, then applying it after confirmation.
Instructions
Resolves either an explicit endpoint_ids list or a hostname_pattern (glob) into a concrete set of endpoints, then previews the concrete assignment. Rerun with confirm=true after human approval to apply it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Set true only after a human approves the resolved preview | |
| platform | No | Optional platform filter, applied when resolving hostname_pattern | |
| policy_id | Yes | The policy UUID to assign | |
| endpoint_ids | No | Explicit list of endpoint UUIDs. Mutually exclusive with hostname_pattern. | |
| hostname_pattern | No | Glob pattern (case-insensitive) matched against computer_name. Mutually exclusive with endpoint_ids. |