list_service_objects
List all network service objects configured on a FortiGate device to view TCP/UDP port definitions, protocols, and descriptions by device and optional VDOM.
Instructions
List all service objects configured on a FortiGate device.
This tool retrieves all network service objects defined on the device, including TCP/UDP port definitions and protocol specifications.
Parameters:
device_id: Identifier of the FortiGate device
vdom: Virtual Domain name (optional, uses device default)
Returns:
Service name and protocol
Port configurations
Comments and descriptions
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": "list_service_objects"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vdom | No | Virtual Domain | |
| device_id | Yes | FortiGate device identifier |