Assign zone types to interfaces

The update_interfaces request assigns a zone type to each of a device's interfaces.

The input will be the active session ID, the name of the device, and the zone type for each interface. The output will include a status and message which indicates success or failure.

Note: This request requires permission for All_Firewalls and the Topology action.

Resource Name: /fa/server/interfaces/update

Request Method: POST

Request URL Parameters:

Element

Type

Description

sessionMandatory

String

Session ID returned in login request.

firewallMandatory

String

The display name of the device.

interfaceZoneTypesMandatory

Map

A map of device interfaces and the zone types to assign to each.

Response:

Element

Type

Description

status

String

One of the following:

  • true. Indicates the request succeeded.
  • false. Indicates the request failed.
message

String

A message which indicates success or a reason for failure.

Request example

curl -H "Content-Type: application/json" -X POST -d '{"firewall":"Borscht", "interfaceZoneTypes":{"eth0":"DMZ", "eth2":"INTERNAL"}}' -k 'https://127.0.0.1/fa/server/interfaces/update?session=7d4fe1fc0c8f1c0c6ac2f01a8f915973'

Response example

{   "status": true,   "message": "success"}