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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


curl -v -X PUT -d "<support />"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command/copy/support


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


curl -v -X PUT -d "<logging />"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command/clear/logging


curl -v -X PUT -d "<support />"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command/clear/support


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


curl -v -X PUT -d "<spanning-tree />"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command/protocol/spanning-tree


curl -v -X PUT -d "<lldp />"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command/protocol/lldp


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


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


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


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

