endpoint_assign_profile
Assign a config profile to an endpoint while preserving the previous profile for audit and rollback. Use dry_run to preview the replacement before applying.
Instructions
[WRITE][risk=high] Assign a config profile to an endpoint (reversible).
Captures the prior profile before switching, so the harness records an undo (reassign the prior profile) and a faithful audit trail. Pass dry_run=True to preview: it resolves the same path and reads the same before-state as the real call, so it reports the profile that would actually be replaced and refuses on the same grounds the write would.
Args: endpoint_id: Endpoint id as returned by endpoint_list. profile_id: Config profile to assign. dry_run: If True, preview without assigning. target: Endpoint-management target name from config; omit for the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| dry_run | No | ||
| profile_id | Yes | ||
| endpoint_id | Yes |