Creating an IP GroupΒΆ

When creating IP Groups with the API, use the saveRule action. The following are the additional fields that can be used:

  • new_fc - Provides a name for the IP Group

  • added - Specifies a JSON array of rules to add to/define the IP Group

Below is an example of how to use the added field for tagging a single IP address:

JSON object expected:

[
 {
  "type": "ip",
  "address": "10.1.4.66"
 }
]

Example API call:

curl --location  --insecure --request POST '{{scrutinizer}}/fcgi/scrut_fcgi.fcgi' \
--form 'authToken={{authToken}}' \
--form 'rm=ipgroups' \
--form 'action=saveRule' \
--form 'new_fc=UK Data Center' \
--form 'added=[
        {
                "type": "ip",
                "address": "10.30.10.1"
        }
]'

JSON object returned:

{
  "removed": [],
  "updated": [],
  "added": [
      {
          "rule_id": 506588,
          "cid": null,
          "type": "ip",
          "address": "10.30.10.1"
      }
  ],
  "warnings": [],
  "fc_id": 16900006,
  "myrules": "IP Address:10.30.10.1",
  "fc_name": "UK Datacenter",
  "rule_id": 506588,
  "total": 1
}