Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Create Firewall Group API creates a firewall group.   


Note

You can use

the 

the Get Firewalls

 API

API to find the

device ID (id)

ovdcId / deviceId, which will appear as id.


...

Sample request

Code Block
languagetext
POST https://api.armor.com/firewall/2/groups

{
      "name": "HTTP",
      "values": [{
                  "protocol": "tcp",
                  "port": "80"
            }
      ],
      "description": "",
      "deviceId": 2,
      "location": "DFW01"
}

...

ParameterDescriptionFormatRequired or optionalExample
deviceIDovdcId

The ID of the device to add the firewall rules to

Note

You can use the Get Firewalls API to find the ovdcId / deviceId, which will return as id.

IntegerRequired2
nameThe name of the firewall groupStringRequiredHTTP
valuesArray of Service objects (protocol, port)Service []Requiredtcp, 80
descriptionDescription of the service groupStringOptional'''
deviceIdThelocationLocation of the service groupStringRequiredDFW01

...

StatusResponse
200
Code Block
languagetext
[
  {
    "id": 1,
    "deviceId": 2,
    "name": "ANY",
    "description": "The CIDR 0.0.0.0/0 represents ANY Ip, range, or CIDR.",
    "type": "any",
    "values": [
      "0.0.0.0/0"
    ],
    "isReadonly": false,
    "vcdOrgVdcId": 0
  },
  {
    "id": 2,
    "deviceId": 2,
    "name": "SSL VPN (100-127-255-192--026)",
    "description": "SSL VPN for CIDR",
    "type": "group",
    "values": [
      "100.127.255.192/26"
    ],
    "isReadonly": true,
 } ]
400
Code Block
languagetext
{  "errorvcdOrgVdcId": true,0
 "message": "Validation error."
} }
]


...