Overview
This API call only applies to Armor Complete users.
The Create Firewall Group API creates a firewall group.
You can use the Get Firewalls API to find the ovdcId / deviceId, which will appear as id.
Sample request
POST https://api.armor.com/firewall/2/groups { "name": "HTTP", "values": [{ "protocol": "tcp", "port": "80" } ], "description": "", "deviceId": 2, "location": "DFW01" }
Input
The following table describes the different parts of this API call:
API Call / URL | Method / Type |
---|---|
/firewall/{deviceId}/groups | POST |
The following table describes the parameter (or parameters) for this API call:
Parameter | Description | Format | Required or optional | Example |
---|---|---|---|---|
ovdcId | The ID of the device to add the firewall rules to You can use the Get Firewalls API to find the ovdcId / deviceId, which will return as id. | Integer | Required | 2 |
name | The name of the firewall group | String | Required | HTTP |
values | Array of Service objects (protocol, port) | Service [] | Required | tcp, 80 |
description | Description of the service group | String | Optional | ''' |
location | Location of the service group | String | Required | DFW01 |
Sample return
Status | Response |
---|---|
200 | [ { "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, "vcdOrgVdcId": 0 } ] |