create_service_icmp
Create an ICMP service object specifying ICMP type and code for firewall policies in FortiManager.
Instructions
Create an ICMP service object.
Args: adom: ADOM name name: Service object name icmp_type: ICMP type (0-255, optional for all types) icmp_code: ICMP code (0-255, optional) comment: Optional comment
Returns: dict: Create result with keys: - status: "success" or "error" - name: Created service name - message: Status or error message
Example: >>> # Create ping service (ICMP echo request) >>> result = await create_service_icmp( ... adom="root", ... name="Custom-Ping", ... icmp_type=8, ... comment="ICMP Echo Request" ... )
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adom | Yes | ||
| name | Yes | ||
| comment | No | ||
| icmp_code | No | ||
| icmp_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||