
********************************************************************************
* 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" "[DO NOT USE]{\"stp\": {\"hello-time\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/stp


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"stp\": {\"forward-delay\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/stp


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"stp\": {\"max-age\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/stp


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"stp\": {\"description\": \"%string%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/stp


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"stp\": {\"bridge-priority\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/stp


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"error-disable-timeout\": {\"enable\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/stp/error-disable-timeout


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"error-disable-timeout\": {\"interval\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/stp/error-disable-timeout


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"port-channel\": {\"path-cost\": \"%enumeration%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/stp/port-channel


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"stp\": {\"shutdown\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/stp


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"rstp\": {\"hello-time\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/rstp


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"rstp\": {\"forward-delay\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/rstp


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"rstp\": {\"max-age\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/rstp


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"rstp\": {\"description\": \"%string%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/rstp


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"rstp\": {\"bridge-priority\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/rstp


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"error-disable-timeout\": {\"enable\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/rstp/error-disable-timeout


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"error-disable-timeout\": {\"interval\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/rstp/error-disable-timeout


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"port-channel\": {\"path-cost\": \"%enumeration%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/rstp/port-channel


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"rstp\": {\"shutdown\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/rstp


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"rstp\": {\"transmit-holdcount\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/rstp


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"pvst\": {\"hello-time\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/pvst


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"pvst\": {\"forward-delay\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/pvst


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"pvst\": {\"max-age\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/pvst


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"pvst\": {\"description\": \"%string%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/pvst


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"pvst\": {\"bridge-priority\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/pvst


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"error-disable-timeout\": {\"enable\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/pvst/error-disable-timeout


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"error-disable-timeout\": {\"interval\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/pvst/error-disable-timeout


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"port-channel\": {\"path-cost\": \"%enumeration%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/pvst/port-channel


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"pvst\": {\"shutdown\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/pvst


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"vlan\": {\"priority\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/pvst/vlan/%id%


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"vlan\": {\"hello-time\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/pvst/vlan/%id%


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"vlan\": {\"forward-delay\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/pvst/vlan/%id%


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"vlan\": {\"max-age\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/pvst/vlan/%id%


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"rpvst\": {\"hello-time\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/rpvst


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"rpvst\": {\"forward-delay\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/rpvst


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"rpvst\": {\"max-age\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/rpvst


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"rpvst\": {\"description\": \"%string%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/rpvst


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"rpvst\": {\"bridge-priority\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/rpvst


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"error-disable-timeout\": {\"enable\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/rpvst/error-disable-timeout


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"error-disable-timeout\": {\"interval\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/rpvst/error-disable-timeout


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"port-channel\": {\"path-cost\": \"%enumeration%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/rpvst/port-channel


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"rpvst\": {\"shutdown\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/rpvst


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"vlan\": {\"priority\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/rpvst/vlan/%id%


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"vlan\": {\"hello-time\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/rpvst/vlan/%id%


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"vlan\": {\"forward-delay\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/rpvst/vlan/%id%


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"vlan\": {\"max-age\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/rpvst/vlan/%id%


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"rpvst\": {\"transmit-holdcount\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/rpvst


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"mstp\": {\"hello-time\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/mstp


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"mstp\": {\"forward-delay\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/mstp


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"mstp\": {\"max-age\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/mstp


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"mstp\": {\"description\": \"%string%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/mstp


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"mstp\": {\"bridge-priority\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/mstp


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"error-disable-timeout\": {\"enable\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/mstp/error-disable-timeout


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"error-disable-timeout\": {\"interval\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/mstp/error-disable-timeout


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"port-channel\": {\"path-cost\": \"%enumeration%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/mstp/port-channel


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"mstp\": {\"shutdown\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/mstp


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"mstp\": {\"cisco-interoperability\": \"%enumeration%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/mstp


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"instance\": {\"vlan\": \"%xstp-ui32-vlan-range%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/mstp/instance/%id%


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"instance\": {\"priority\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/mstp/instance/%id%


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"mstp\": {\"region\": \"%string%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/mstp


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"mstp\": {\"revision\": \"%uint16%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/mstp


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"mstp\": {\"max-hops\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/mstp


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"mstp\": {\"transmit-holdcount\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/protocol/spanning-tree/mstp


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"spanning-tree\": {\"autoedge\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/spanning-tree


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"spanning-tree\": {\"cost\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/spanning-tree


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"portfast\": {\"portfastbasic\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/spanning-tree/portfast


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"portfast\": {\"bpdu-guard\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/spanning-tree/portfast


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"edgeport\": {\"edgeportbasic\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/spanning-tree/edgeport


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"edgeport\": {\"bpdu-guard\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/spanning-tree/edgeport


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"guard\": {\"root\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/spanning-tree/guard


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"spanning-tree\": {\"bpdu-mac\": \"%enumeration%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/spanning-tree


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"spanning-tree\": {\"link-type\": \"%enumeration%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/spanning-tree


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"spanning-tree\": {\"priority\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/spanning-tree


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"spanning-tree\": {\"restricted-role\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/spanning-tree


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"spanning-tree\": {\"restricted-tcn\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/spanning-tree


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"spanning-tree\": {\"shutdown\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/spanning-tree


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"vlan\": {\"cost\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/spanning-tree/vlan/%id%


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"vlan\": {\"priority\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/spanning-tree/vlan/%id%


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"guard\": {\"root\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/spanning-tree/vlan/%id%/guard


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"instance\": {\"cost\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/spanning-tree/instance/%id%


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"instance\": {\"priority\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/spanning-tree/instance/%id%


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"instance\": {\"restricted-role\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/spanning-tree/instance/%id%


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"instance\": {\"restricted-tcn\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Ethernet/%name%/spanning-tree/instance/%id%


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"spanning-tree\": {\"autoedge\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/spanning-tree


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"spanning-tree\": {\"cost\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/spanning-tree


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"portfast\": {\"portfastbasic\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/spanning-tree/portfast


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"portfast\": {\"bpdu-guard\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/spanning-tree/portfast


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"edgeport\": {\"edgeportbasic\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/spanning-tree/edgeport


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"edgeport\": {\"bpdu-guard\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/spanning-tree/edgeport


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"guard\": {\"root\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/spanning-tree/guard


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"spanning-tree\": {\"bpdu-mac\": \"%enumeration%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/spanning-tree


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"spanning-tree\": {\"link-type\": \"%enumeration%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/spanning-tree


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"spanning-tree\": {\"priority\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/spanning-tree


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"spanning-tree\": {\"restricted-role\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/spanning-tree


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"spanning-tree\": {\"restricted-tcn\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/spanning-tree


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"spanning-tree\": {\"shutdown\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/spanning-tree


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"vlan\": {\"cost\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/spanning-tree/vlan/%id%


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"vlan\": {\"priority\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/spanning-tree/vlan/%id%


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"guard\": {\"root\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/spanning-tree/vlan/%id%/guard


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"instance\": {\"cost\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/spanning-tree/instance/%id%


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"instance\": {\"priority\": \"%uint32%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/spanning-tree/instance/%id%


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"instance\": {\"restricted-role\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/spanning-tree/instance/%id%


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"instance\": {\"restricted-tcn\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/interface/Port-channel/%name%/spanning-tree/instance/%id%


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"spanning-tree\": {\"shutdown\": \"true\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/vlan/%name%/spanning-tree

