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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"device_id": "<device_id>",
"name": "<name>",
"service_data": "<service_data>"
},
"name": "update_service_object"
}
}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 |