Skip to main content

List Policies

List existing firewall policies in your Fortinet instance.

Parameters

ParameterDescription
VDOMVDOM to list policies of.

Example Output

{
"results": [
{
"policyid": 1,
"q_origin_key": "1",
"name": "test1",
"uuid": "5e793628-1625-51e7-74cf-0eed2b242a2f",
"srcintf": [
{
"name": "port1",
"q_origin_key": "port1"
}
],
"dstintf": [
{
"name": "port1",
"q_origin_key": "port1"
}
],
"srcaddr": [
{
"name": "source-1",
"q_origin_key": "source-1"
}
],
"dstaddr": [
{
"name": "destination-1",
"q_origin_key": "destination-1"
}
],
"action": "accept",
"service": [
{
"name": "service-1",
"q_origin_key": "service-1"
}
],
"status": "enable",
"utm-status": "disable",
"logtraffic": "all",
"comments": "aaa"
},
{
"policyid": 2,
"q_origin_key": "2",
"name": "test-2",
"uuid": "0db50a78-16ca-51e7-18ee-067b008e5e32",
"srcintf": [
{
"name": "port1",
"q_origin_key": "port1"
}
],
"dstintf": [
{
"name": "port1",
"q_origin_key": "port1"
}
],
"srcaddr": [
{
"name": "source-2",
"q_origin_key": "source-2"
}
],
"dstaddr": [
{
"name": "destination-2",
"q_origin_key": "destination-2"
}
],
"action": "accept",
"service": [
{
"name": "service-2",
"q_origin_key": "service-2"
}
],
"status": "enable",
"utm-status": "enable",
"logtraffic": "all",
"comments": ""
}
],
"vdom": "root",
"path": "firewall",
"name": "policy",
"status": "success",
"http_status": 200,
"serial": "FGT123456789",
"version": "vX.X.X",
"build": 1234
}

Workflow Library Example

List Policies with Fortigate and Send Results Via Email

Workflow LibraryPreview this Workflow on desktop