Update drop action settings

Prev Next

Updates the drop action settings.

Drop Action Data Model:

{
        "name"                    : "A",
        "host_unreachable"        : true|false,
        "tcp_reset_enable"        : true|false,
        "tcp_reset_server_enable" : true|false,
        "insert_confort_page"     : true|false,
        "tcp_reset_client_enable" : true|false
  }

API URL

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

Payload

[{"name" : "B", "host_unreachable":false}, {"name" : "A", "insert_confort_page":false}]

Sample curl requests

Read:

curl -gsk -H "$c" https://172.16.177.50/wsapis/v2.0.0/config/network/opmodeconf/drop_actions | python -m json.tool
[
    {
        "host_unreachable": true,
        "insert_confort_page": true,
        "name": "A",
        "tcp_reset_client_enable": true,
        "tcp_reset_enable": true,
        "tcp_reset_server_enable": true
    },
    {
        "host_unreachable": true,
        "insert_confort_page": true,
        "name": "B",
        "tcp_reset_client_enable": true,
        "tcp_reset_enable": true,
        "tcp_reset_server_enable": true
    }
]

Update:

curl -gsk -H "$c" https://172.16.177.50/wsapis/v2.0.0/config/network/opmodeconf/drop_actions -d '[{"name" : "B", "host_unreachable":false}, {"name" : "A", "insert_confort_page":false}]' -H 'content-type:application/json'

Read-back:

curl -gsk -H "$c" https://172.16.177.50/wsapis/v2.0.0/config/network/opmodeconf/drop_actions | python -m json.tool
[
    {
        "host_unreachable": true,
        "insert_confort_page": false,
        "name": "A",
        "tcp_reset_client_enable": true,
        "tcp_reset_enable": true,
        "tcp_reset_server_enable": true
    },
    {
        "host_unreachable": false,
        "insert_confort_page": true,
        "name": "B",
        "tcp_reset_client_enable": true,
        "tcp_reset_enable": true,
        "tcp_reset_server_enable": true
    }
]

Sample curl response

{"error":false,"message":"Drop action config updated"}

Availability

This command is available on the following platforms:

  • Network Security

  • Helix Enterprise

Authentication

Standard WSAPI authentication

Response mime type

application/json