Set operational modes for a set of interfaces

Prev Next

Sets the operational modes for the specified interfaces.

API URL

POST https://<host>/wsapis/v2.0.0/config/network/opmodeconf/opmode -d <payload>

Payload

[{"name":"A", "opmode":"bypass"}, {"name":"B", "opmode":"block", "fail_safe":"close"}]

Sample curl requests

curl -gsk -H "$c" https://172.16.177.50/wsapis/v2.0.0/config/network/opmodeconf/opmode -d '[{"name":"A", "opmode":"bypass"}, {"name":"B", "opmode":"block", "fail_safe":"close"}]' -H 'content-type:application/json'

Sample curl response

{"error":false,"message":"Config updated"}

Availability

This command is available on the following platforms:

  • Network Security

  • Helix Enterprise

Authentication

Standard WSAPI authentication

Response mime type

application/json