
********************************************************************************
* 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 "<login><first>%enumeration%</first></login>"  -u admin:password http://%ipaddress%:80/rest/config/running/aaa/authentication/login


curl -v -X PATCH -d "<login><second>%enumeration%</second></login>"  -u admin:password http://%ipaddress%:80/rest/config/running/aaa/authentication/login


curl -v -X PATCH -d "<login><third>%enumeration%</third></login>"  -u admin:password http://%ipaddress%:80/rest/config/running/aaa/authentication/login


curl -v -X PATCH -d "<start-stop><server-type>%acc_srv_type%</server-type></start-stop>"  -u admin:password http://%ipaddress%:80/rest/config/running/aaa/accounting/exec/default/start-stop


curl -v -X PATCH -d "<start-stop><server-type>%acc_srv_type%</server-type></start-stop>"  -u admin:password http://%ipaddress%:80/rest/config/running/aaa/accounting/commands/default/start-stop


curl -v -X PATCH -d "<command><firstauthor>%enumeration%</firstauthor></command>"  -u admin:password http://%ipaddress%:80/rest/config/running/aaa/authorization/command


curl -v -X PATCH -d "[DO NOT USE]<command><secondauthor>%enumeration%</secondauthor></command>"  -u admin:password http://%ipaddress%:80/rest/config/running/aaa/authorization/command


curl -v -X PATCH -d "<username><password>%user-passwd%</password></username>"  -u admin:password http://%ipaddress%:80/rest/config/running/username/%name%


curl -v -X PATCH -d "<username><encryption-level>%enumeration%</encryption-level></username>"  -u admin:password http://%ipaddress%:80/rest/config/running/username/%name%


curl -v -X PATCH -d "<username><role>%string%</role></username>"  -u admin:password http://%ipaddress%:80/rest/config/running/username/%name%


curl -v -X PATCH -d "<username><desc>%string%</desc></username>"  -u admin:password http://%ipaddress%:80/rest/config/running/username/%name%


curl -v -X PATCH -d "<username><enable>%username-enable%</enable></username>"  -u admin:password http://%ipaddress%:80/rest/config/running/username/%name%


curl -v -X PATCH -d "<username><expire>%date%</expire></username>"  -u admin:password http://%ipaddress%:80/rest/config/running/username/%name%


curl -v -X PATCH -d "<username><access-time>%string%</access-time></username>"  -u admin:password http://%ipaddress%:80/rest/config/running/username/%name%


curl -v -X PATCH -d "[DO NOT USE]<username><to>%string%</to></username>"  -u admin:password http://%ipaddress%:80/rest/config/running/username/%name%


curl -v -X PATCH -d "<username><acct-inactivity-expiry-period>%uint32%</acct-inactivity-expiry-period></username>"  -u admin:password http://%ipaddress%:80/rest/config/running/username/%name%


curl -v -X PATCH -d "<username><acct-inactivity-warning-period>%uint32%</acct-inactivity-warning-period></username>"  -u admin:password http://%ipaddress%:80/rest/config/running/username/%name%


curl -v -X PATCH -d "<service><password-encryption>true</password-encryption></service>"  -u admin:password http://%ipaddress%:80/rest/config/running/service


curl -v -X PATCH -d "<name><desc>%string%</desc></name>"  -u admin:password http://%ipaddress%:80/rest/config/running/role/name/%name%


curl -v -X PATCH -d "<host><auth-port>%rad-auth-port%</auth-port></host>"  -u admin:password http://%ipaddress%:80/rest/config/running/radius-server/host/%hostname%/%use-vrf%


curl -v -X PATCH -d "[DO NOT USE]<host><protocol>%rad-auth-protocols%</protocol></host>"  -u admin:password http://%ipaddress%:80/rest/config/running/radius-server/host/%hostname%/%use-vrf%


curl -v -X PATCH -d "<host><key>%string%</key></host>"  -u admin:password http://%ipaddress%:80/rest/config/running/radius-server/host/%hostname%/%use-vrf%


curl -v -X PATCH -d "<host><encryption-level>%enumeration%</encryption-level></host>"  -u admin:password http://%ipaddress%:80/rest/config/running/radius-server/host/%hostname%/%use-vrf%


curl -v -X PATCH -d "<host><retries>%uint32%</retries></host>"  -u admin:password http://%ipaddress%:80/rest/config/running/radius-server/host/%hostname%/%use-vrf%


curl -v -X PATCH -d "<host><timeout>%uint32%</timeout></host>"  -u admin:password http://%ipaddress%:80/rest/config/running/radius-server/host/%hostname%/%use-vrf%


curl -v -X PATCH -d "<host><radsec>true</radsec></host>"  -u admin:password http://%ipaddress%:80/rest/config/running/radius-server/host/%hostname%/%use-vrf%


curl -v -X PATCH -d "<source-interface><source-interface-name>%track-iftype%</source-interface-name><source-interface-value>%interface:interface-type%</source-interface-value></source-interface>"  -u admin:password http://%ipaddress%:80/rest/config/running/radius-server/host/%hostname%/%use-vrf%/source-interface


curl -v -X PATCH -d "[DO NOT USE]<source-interface><source-interface-value>%loopback-iftype%</source-interface-value></source-interface>"  -u admin:password http://%ipaddress%:80/rest/config/running/radius-server/host/%hostname%/%use-vrf%/source-interface


curl -v -X PATCH -d "[DO NOT USE]<source-interface><source-interface-value>%ve-iftype%</source-interface-value></source-interface>"  -u admin:password http://%ipaddress%:80/rest/config/running/radius-server/host/%hostname%/%use-vrf%/source-interface


curl -v -X PATCH -d "<source-interface><source-interface-value>%mm-iftype%</source-interface-value></source-interface>"  -u admin:password http://%ipaddress%:80/rest/config/running/radius-server/host/%hostname%/%use-vrf%/source-interface


curl -v -X PATCH -d "<host><port>%tac-auth-port%</port></host>"  -u admin:password http://%ipaddress%:80/rest/config/running/tacacs-server/host/%hostname%/%use-vrf%


curl -v -X PATCH -d "<host><protocol>%tac-auth-protocols%</protocol></host>"  -u admin:password http://%ipaddress%:80/rest/config/running/tacacs-server/host/%hostname%/%use-vrf%


curl -v -X PATCH -d "<host><key>%string%</key></host>"  -u admin:password http://%ipaddress%:80/rest/config/running/tacacs-server/host/%hostname%/%use-vrf%


curl -v -X PATCH -d "<host><encryption-level>%enumeration%</encryption-level></host>"  -u admin:password http://%ipaddress%:80/rest/config/running/tacacs-server/host/%hostname%/%use-vrf%


curl -v -X PATCH -d "<host><retries>%uint8%</retries></host>"  -u admin:password http://%ipaddress%:80/rest/config/running/tacacs-server/host/%hostname%/%use-vrf%


curl -v -X PATCH -d "<host><timeout>%uint8%</timeout></host>"  -u admin:password http://%ipaddress%:80/rest/config/running/tacacs-server/host/%hostname%/%use-vrf%


curl -v -X PATCH -d "<source-interface><tacacs-source-int-type>%srcip_type%</tacacs-source-int-type><tacacs-source-int-value>%string-type%</tacacs-source-int-value></source-interface>"  -u admin:password http://%ipaddress%:80/rest/config/running/tacacs-server/host/%hostname%/%use-vrf%/source-interface


curl -v -X PATCH -d "<host><ldaps>true</ldaps></host>"  -u admin:password http://%ipaddress%:80/rest/config/running/ldap-server/host/%hostname%/%use-vrf%


curl -v -X PATCH -d "<host><port>%ldap-auth-port%</port></host>"  -u admin:password http://%ipaddress%:80/rest/config/running/ldap-server/host/%hostname%/%use-vrf%


curl -v -X PATCH -d "<host><retries>%uint8%</retries></host>"  -u admin:password http://%ipaddress%:80/rest/config/running/ldap-server/host/%hostname%/%use-vrf%


curl -v -X PATCH -d "<host><timeout>%uint8%</timeout></host>"  -u admin:password http://%ipaddress%:80/rest/config/running/ldap-server/host/%hostname%/%use-vrf%


curl -v -X PATCH -d "<host><basedn>%string%</basedn></host>"  -u admin:password http://%ipaddress%:80/rest/config/running/ldap-server/host/%hostname%/%use-vrf%


curl -v -X PATCH -d "[DO NOT USE]<source-interface><source-intf-type>%source-interface-type%</source-intf-type><source-intf-name>%ethernet-iftype%</source-intf-name></source-interface>"  -u admin:password http://%ipaddress%:80/rest/config/running/ldap-server/host/%hostname%/%use-vrf%/source-interface


curl -v -X PATCH -d "[DO NOT USE]<source-interface><source-intf-name>%loopback-iftype%</source-intf-name></source-interface>"  -u admin:password http://%ipaddress%:80/rest/config/running/ldap-server/host/%hostname%/%use-vrf%/source-interface


curl -v -X PATCH -d "[DO NOT USE]<source-interface><source-intf-name>%ve-iftype%</source-intf-name></source-interface>"  -u admin:password http://%ipaddress%:80/rest/config/running/ldap-server/host/%hostname%/%use-vrf%/source-interface


curl -v -X PATCH -d "<source-interface><source-intf-name>%mm-iftype%</source-intf-name></source-interface>"  -u admin:password http://%ipaddress%:80/rest/config/running/ldap-server/host/%hostname%/%use-vrf%/source-interface


curl -v -X PATCH -d "<group><role>%string%</role></group>"  -u admin:password http://%ipaddress%:80/rest/config/running/ldap-server/maprole/group/%ad-group%


curl -v -X PATCH -d "<password-attributes><min-length>%uint32%</min-length></password-attributes>"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes


curl -v -X PATCH -d "<password-attributes><max-logins>%uint32%</max-logins></password-attributes>"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes


curl -v -X PATCH -d "<password-attributes><max-retry>%uint32%</max-retry></password-attributes>"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes


curl -v -X PATCH -d "<password-attributes><max-lockout-duration>%uint32%</max-lockout-duration></password-attributes>"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes


curl -v -X PATCH -d "<password-attributes><history>%uint32%</history></password-attributes>"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes


curl -v -X PATCH -d "<password-attributes><repeat>%uint32%</repeat></password-attributes>"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes


curl -v -X PATCH -d "<password-attributes><sequence>%uint32%</sequence></password-attributes>"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes


curl -v -X PATCH -d "<password-attributes><force-default-password-change>true</force-default-password-change></password-attributes>"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes


curl -v -X PATCH -d "<password-attributes><max-password-age>%uint32%</max-password-age></password-attributes>"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes


curl -v -X PATCH -d "<expiry-alert-level><info>%uint32%</info></expiry-alert-level>"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes/expiry-alert-level


curl -v -X PATCH -d "<expiry-alert-level><minor>%uint32%</minor></expiry-alert-level>"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes/expiry-alert-level


curl -v -X PATCH -d "<expiry-alert-level><major>%uint32%</major></expiry-alert-level>"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes/expiry-alert-level


curl -v -X PATCH -d "<expiry-alert-level><critical>%uint32%</critical></expiry-alert-level>"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes/expiry-alert-level


curl -v -X PATCH -d "<character-restriction><upper>%uint32%</upper></character-restriction>"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes/character-restriction


curl -v -X PATCH -d "<character-restriction><lower>%uint32%</lower></character-restriction>"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes/character-restriction


curl -v -X PATCH -d "<character-restriction><numeric>%uint32%</numeric></character-restriction>"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes/character-restriction


curl -v -X PATCH -d "<character-restriction><special-char>%uint32%</special-char></character-restriction>"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes/character-restriction


curl -v -X PATCH -d "<password-attributes><admin-lockout>true</admin-lockout></password-attributes>"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes


curl -v -X PATCH -d "<password-attributes><login-notify-duration>%uint32%</login-notify-duration></password-attributes>"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes


curl -v -X PATCH -d "<banner><login>%string%</login></banner>"  -u admin:password http://%ipaddress%:80/rest/config/running/banner


curl -v -X PATCH -d "<banner><motd>%string%</motd></banner>"  -u admin:password http://%ipaddress%:80/rest/config/running/banner


curl -v -X PATCH -d "<banner><incoming>%string%</incoming></banner>"  -u admin:password http://%ipaddress%:80/rest/config/running/banner


curl -v -X PATCH -d "<rule><action>%rule-action%</action></rule>"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%


curl -v -X PATCH -d "<rule><operation>%rule-operation%</operation></rule>"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%


curl -v -X PATCH -d "<rule><role>%string%</role></rule>"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%


curl -v -X PATCH -d "<command><enumList>%enumeration%</enumList></command>"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command


curl -v -X PATCH -d "<command><ethernet>%interface:interface-type%</ethernet></command>"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command


curl -v -X PATCH -d "<command><port-channel>%interface:portchannel-type%</port-channel></command>"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command


curl -v -X PATCH -d "<command><vlan>%interface:vlan-type%</vlan></command>"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command


curl -v -X PATCH -d "[DO NOT USE]<command><management>%interface:man-interface-type%</management></command>"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command


curl -v -X PATCH -d "<command><loopback>%loopback-intf:intf-loopback-port-type%</loopback></command>"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command


curl -v -X PATCH -d "<command><ve>%interface:ve-type%</ve></command>"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command


curl -v -X PATCH -d "<command><fibrechannel>%interface:interface-type%</fibrechannel></command>"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command


curl -v -X PATCH -d "<root><enable>true</enable></root>"  -u admin:password http://%ipaddress%:80/rest/config/running/root


curl -v -X PATCH -d "<root><access>%root_access_type%</access></root>"  -u admin:password http://%ipaddress%:80/rest/config/running/root


curl -v -X PATCH -d "<alias><expansion>%string%</expansion></alias>"  -u admin:password http://%ipaddress%:80/rest/config/running/alias-config/alias/%name%


curl -v -X PATCH -d "<alias><expansion>%string%</expansion></alias>"  -u admin:password http://%ipaddress%:80/rest/config/running/alias-config/user/%name%/alias/%name%

