update_service_object
Modify an existing FortiGate custom service object's ports, protocol, or comment by device and VDOM so firewall rules reference updated definitions.
Instructions
Update an existing custom service object (ports, protocol, comment).
Example service_data: {"tcp-portrange": "3389", "comment": "RDP"}
Parameters:
device_id: Identifier of the FortiGate device
name: Service object name
service_data: Fields to change as JSON object
vdom: Virtual Domain name (optional)
Returns:
Update status
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Service object name | |
| vdom | No | Virtual Domain | |
| device_id | Yes | FortiGate device identifier | |
| service_data | Yes | Fields to change |