Page tree

Versions Compared

Key

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

...

Code Block
languagetext
PUT https://api.armor.com/firewall/2/services/4
{
      "id": 4,
      "deviceId": 2,
      "location": "DFW01",
      "accountId": 0,
      "name": "HTTP",
      "description": "Use this for inbound HTTP traffic",
      "values": [{
                  "protocol": "tcp",
                  "port": "80"
            }
      ]
}

...

ParameterDescriptionFormatRequired or optionalExample
deviceId (Route)Id for The ID of the device to retrieve rulesIntegerRequired2
serviceGroupId (Route)The ID of the service groupIntegerRequired4

...

StatusResponse
200
Code Block
languagetext
{
      "id": 4,
      "deviceId": 2,
      "location": "DFW01 ",
      "name": "HTTP",
      "description": "Use this for inbound HTTP traffic",
      "values": [{
                  "port": 80,
                  "protocol": "tcp",
                  "subprotocol": null
            }
      ]
}

Output

...


...