
********************************************************************************
* Copyright (C) 2019-2024 by Extreme Networks , Inc.                           *
* This file is part of rBreeze Dump                                            *
*                                                                              *
* Author: Pradeep Raj.                                                         *
*                                                                              *
*                                                                              *
* Directions to Use:                                                           *
* 1. Replace all the values enclosed in the "%" with                           *
*    the values to be configured. The string present with in the braces        * 
*    indicates its type.                                                       *
* 2. To pass "" in the request replace the " with %22.                         *
* 3. To pass multiple keys in the URI enclose seperate them with %2c or        *
*    comma(",").                                                               *
* 4. Avoid using the requests with [DO NOT USE] tag in the payload. These could*
*    be defective because of the tailf extensions they have.                   *
*                                                                              *
* Disclaimer:                                                                  *
* 1. The queries mentioned here do not have a one-to-one correlation with CLI. *
* 2. The queries inferred here are based on an automated tool and are not      *
*    gauranteed to work. Its the functional teams responsibilty to ensure its  *
*    working.                                                                  *
* 3. In case if you find any discrepancy you can always contact the author to  *
*    get it fixed.                                                             *
* 4. Avoid using the requests with [DO NOT USE] tag in the payload. These could*
*    be defective because of the tailf extensions they have.                   *
********************************************************************************

curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"sfp\": {\"apply\": \"%supported-config%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/sfp


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"sfp\": {\"pause\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/sfp



curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"threshold\": {\"high-threshold\": \"%int32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/sfp/policy/%policy_name%/area/%type%/%area%/threshold


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"threshold\": {\"low-threshold\": \"%int32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/sfp/policy/%policy_name%/area/%type%/%area%/threshold


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"threshold\": {\"buffer\": \"%int32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/sfp/policy/%policy_name%/area/%type%/%area%/threshold


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"above\": {\"highthresh-action\": \"%supported-actions%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/sfp/policy/%policy_name%/area/%type%/%area%/alert/above


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"below\": {\"highthresh-action\": \"%supported-actions%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/sfp/policy/%policy_name%/area/%type%/%area%/alert/below


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"below\": {\"lowthresh-action\": \"%supported-actions%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/sfp/policy/%policy_name%/area/%type%/%area%/alert/below


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"Cpu\": {\"poll\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/Cpu


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"Cpu\": {\"retry\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/Cpu


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"Cpu\": {\"limit\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/Cpu


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"Cpu\": {\"actions\": \"%enumeration%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/Cpu


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"Memory\": {\"poll\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/Memory


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"Memory\": {\"retry\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/Memory


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"Memory\": {\"high-limit\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/Memory


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"Memory\": {\"actions\": \"%enumeration%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/Memory


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"Buffer\": {\"poll\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/Buffer


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"Buffer\": {\"retry\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/Buffer


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"Buffer\": {\"limit\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/Buffer


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"Buffer\": {\"actions\": \"%enumeration%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/Buffer


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"bfd-session\": {\"high-limit\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/bfd-session


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"bfd-session\": {\"low-limit\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/bfd-session


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"bfd-session\": {\"actions\": \"%enumeration%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/bfd-session


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"vxlan-tunnel\": {\"high-limit\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/vxlan-tunnel


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"vxlan-tunnel\": {\"low-limit\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/vxlan-tunnel


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"vxlan-tunnel\": {\"actions\": \"%enumeration%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/vxlan-tunnel


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"lif\": {\"high-limit\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/lif


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"lif\": {\"low-limit\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/lif


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"lif\": {\"actions\": \"%enumeration%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/lif


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"mac-table\": {\"high-limit\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/mac-table


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"mac-table\": {\"low-limit\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/mac-table


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"mac-table\": {\"actions\": \"%enumeration%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/mac-table


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"route\": {\"high-limit\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/route


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"route\": {\"low-limit\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/route


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"route\": {\"actions\": \"%enumeration%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/route


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"host\": {\"high-limit\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/host


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"host\": {\"low-limit\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/host


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"host\": {\"actions\": \"%enumeration%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/host


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"nexthop\": {\"high-limit\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/nexthop


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"nexthop\": {\"low-limit\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/nexthop


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"nexthop\": {\"actions\": \"%enumeration%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/nexthop


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"ecmp\": {\"high-limit\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/ecmp


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"ecmp\": {\"low-limit\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/ecmp


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"ecmp\": {\"actions\": \"%enumeration%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/ecmp


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"hardware-resources\": {\"count\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/hardware-resources


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"hardware-resources\": {\"interval\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/hardware-resources


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"mac-in\": {\"high-limit\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/acl/mac-in


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"mac-in\": {\"low-limit\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/acl/mac-in


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"mac-in\": {\"actions\": \"%enumeration%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/acl/mac-in


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"mac-out\": {\"high-limit\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/acl/mac-out


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"mac-out\": {\"low-limit\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/acl/mac-out


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"mac-out\": {\"actions\": \"%enumeration%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/acl/mac-out


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"ip-in\": {\"high-limit\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/acl/ip-in


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"ip-in\": {\"low-limit\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/acl/ip-in


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"ip-in\": {\"actions\": \"%enumeration%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/acl/ip-in


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"ip-out\": {\"high-limit\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/acl/ip-out


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"ip-out\": {\"low-limit\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/acl/ip-out


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"ip-out\": {\"actions\": \"%enumeration%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/acl/ip-out


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"ipv6-in\": {\"high-limit\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/acl/ipv6-in


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"ipv6-in\": {\"low-limit\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/acl/ipv6-in


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"ipv6-in\": {\"actions\": \"%enumeration%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/acl/ipv6-in


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"ipv6-out\": {\"high-limit\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/acl/ipv6-out


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"ipv6-out\": {\"low-limit\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/acl/ipv6-out


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"ipv6-out\": {\"actions\": \"%enumeration%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/threshold-monitor/acl/ipv6-out

