update_local_in_policy
Update specific fields of an existing IPv4 local-in policy in FortiManager, such as action, addresses, services, schedule, or status, while leaving other settings unchanged.
Instructions
Update an existing IPv4 local-in policy.
Only the specified fields will be updated; other fields remain unchanged.
Args: adom: ADOM name package: Policy package name policyid: Local-in policy ID to update action: New action - "accept" or "deny" (optional) intf: New incoming interface(s) (optional) srcaddr: New source addresses (optional) dstaddr: New destination addresses (optional) service: New services (optional) schedule: New schedule (optional) status: New status - "enable" or "disable" (optional) logtraffic: New local-in traffic logging setting (optional) comments: New comments (optional) srcaddr_negate: Match all sources EXCEPT srcaddr (optional) dstaddr_negate: Match all destinations EXCEPT dstaddr (optional) service_negate: Match all services EXCEPT service (optional) ha_mgmt_intf_only: Restrict this policy to the HA management interface only (optional). IPv4-only field. virtual_patch: Enable/disable virtual patching on this policy (optional)
Returns: dict: Update result with keys: - status: "success" or "error" - policyid: Updated policy ID - message: Status or error message
Example: >>> # Disable a local-in policy >>> result = await update_local_in_policy( ... adom="root", ... package="default", ... policyid=1, ... status="disable" ... )
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adom | Yes | ||
| intf | No | ||
| action | No | ||
| status | No | ||
| dstaddr | No | ||
| package | Yes | ||
| service | No | ||
| srcaddr | No | ||
| comments | No | ||
| policyid | Yes | ||
| schedule | No | ||
| logtraffic | No | ||
| virtual_patch | No | ||
| dstaddr_negate | No | ||
| service_negate | No | ||
| srcaddr_negate | No | ||
| ha_mgmt_intf_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||