pmg_who_object_update
Update a 'who' object in a PMG RuleDB group. Specify object ID, type, and new values; dry-run by default, execute with confirm=true.
Instructions
MUTATION (MEDIUM): update an object in a PMG RuleDB 'who' object group. Dry-run by default.
id_ comes from pmg_who_group_objects; type_ must match the object's existing type. Only non-None fields are sent, others keep their current value. confirm=True executes and returns {"status": "ok", "result": <PMG's raw API response>}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | No | New IP address; used when type_='ip'. | |
| id_ | Yes | Object ID (numeric string) from pmg_who_group_objects. | |
| cidr | No | New CIDR network; used when type_='network'. | |
| mode | No | LDAP lookup mode; used when type_='ldap'. | |
| No | New email address; used when type_='email'. | ||
| group | No | LDAP group name; used when type_='ldap'. | |
| regex | No | New regex pattern; used when type_='regex'. | |
| type_ | Yes | Object type: email|domain|regex|ip|network|ldap — selects which sub-path/fields apply. | |
| domain | No | New domain; used when type_='domain'. | |
| ogroup | Yes | Numeric 'who' object group ID (e.g. '2') from pmg_who_groups_list. | |
| confirm | No | False (default) returns a dry-run PLAN; True executes the mutation. | |
| profile | No | LDAP profile name; used when type_='ldap'. | |
| proximo_target | No | Which configured Proxmox target to run this call against — a target name from your multi-target config (a specific PVE/PBS/PMG/PDM box). Omit to use the single/default target from the environment; the selection applies only to this call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |