create_service
Create custom TCP or UDP services on FortiGate firewalls by defining a service name and optional port ranges.
Instructions
Create a custom TCP/UDP service.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Service name | |
| vdom | No | VDOM (default: FORTIGATE_VDOM, usually root) | |
| extra | No | Extra FortiOS attributes merged into the request body as-is (hyphenated keys) | |
| comment | No | Comment | |
| tcp_portrange | No | TCP ports, e.g. '6443' or '8000-8080 9000' | |
| udp_portrange | No | UDP ports |