
********************************************************************************
* 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 -H "application/vnd.configuration.resource+json" "{\"first\": \"%enumeration%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/aaa/authentication/login/first


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"second\": \"%enumeration%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/aaa/authentication/login/second


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"third\": \"%enumeration%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/aaa/authentication/login/third


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"server-type\": \"%acc_srv_type%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/aaa/accounting/exec/default/start-stop/server-type


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"server-type\": \"%acc_srv_type%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/aaa/accounting/commands/default/start-stop/server-type


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"firstauthor\": \"%enumeration%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/aaa/authorization/command/firstauthor


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"secondauthor\": \"%enumeration%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/aaa/authorization/command/secondauthor


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"encryption-level\": \"%enumeration%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/username/%name%/encryption-level


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"role\": \"%string%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/username/%name%/role


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"desc\": \"%string%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/username/%name%/desc


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"enable\": \"%username-enable%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/username/%name%/enable


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"expire\": \"%date%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/username/%name%/expire


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"access-time\": \"%string%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/username/%name%/access-time


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"to\": \"%string%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/username/%name%/to


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"acct-inactivity-expiry-period\": \"%uint32%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/username/%name%/acct-inactivity-expiry-period


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"acct-inactivity-warning-period\": \"%uint32%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/username/%name%/acct-inactivity-warning-period


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"password-encryption\": \"true\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/service/password-encryption


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"desc\": \"%string%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/role/name/%name%/desc


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"auth-port\": \"%rad-auth-port%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/radius-server/host/%hostname%/%use-vrf%/auth-port


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"protocol\": \"%rad-auth-protocols%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/radius-server/host/%hostname%/%use-vrf%/protocol


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"key\": \"%string%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/radius-server/host/%hostname%/%use-vrf%/key


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"encryption-level\": \"%enumeration%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/radius-server/host/%hostname%/%use-vrf%/encryption-level


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"retries\": \"%uint32%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/radius-server/host/%hostname%/%use-vrf%/retries


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"timeout\": \"%uint32%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/radius-server/host/%hostname%/%use-vrf%/timeout


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"radsec\": \"true\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/radius-server/host/%hostname%/%use-vrf%/radsec


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"source-interface-value\": \"%loopback-iftype%\"}"  -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 -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"source-interface-value\": \"%ve-iftype%\"}"  -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 -H "application/vnd.configuration.resource+json" "{\"source-interface-value\": \"%mm-iftype%\"}"  -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 -H "application/vnd.configuration.resource+json" "{\"port\": \"%tac-auth-port%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/tacacs-server/host/%hostname%/%use-vrf%/port


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"protocol\": \"%tac-auth-protocols%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/tacacs-server/host/%hostname%/%use-vrf%/protocol


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"key\": \"%string%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/tacacs-server/host/%hostname%/%use-vrf%/key


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"encryption-level\": \"%enumeration%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/tacacs-server/host/%hostname%/%use-vrf%/encryption-level


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"retries\": \"%uint8%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/tacacs-server/host/%hostname%/%use-vrf%/retries


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"timeout\": \"%uint8%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/tacacs-server/host/%hostname%/%use-vrf%/timeout


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"source-interface\": {\"tacacs-source-int-type\": \"%srcip_type%\", \"tacacs-source-int-value\": \"%string-type%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/tacacs-server/host/%hostname%/%use-vrf%/source-interface


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"ldaps\": \"true\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/ldap-server/host/%hostname%/%use-vrf%/ldaps


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"port\": \"%ldap-auth-port%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/ldap-server/host/%hostname%/%use-vrf%/port


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"retries\": \"%uint8%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/ldap-server/host/%hostname%/%use-vrf%/retries


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"timeout\": \"%uint8%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/ldap-server/host/%hostname%/%use-vrf%/timeout


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"basedn\": \"%string%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/ldap-server/host/%hostname%/%use-vrf%/basedn


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"source-intf-name\": \"%loopback-iftype%\"}"  -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 -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"source-intf-name\": \"%ve-iftype%\"}"  -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 -H "application/vnd.configuration.resource+json" "{\"source-intf-name\": \"%mm-iftype%\"}"  -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 -H "application/vnd.configuration.resource+json" "{\"role\": \"%string%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/ldap-server/maprole/group/%ad-group%/role


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"min-length\": \"%uint32%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes/min-length


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"max-logins\": \"%uint32%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes/max-logins


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


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"max-lockout-duration\": \"%uint32%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes/max-lockout-duration


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"history\": \"%uint32%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes/history


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"repeat\": \"%uint32%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes/repeat


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"sequence\": \"%uint32%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes/sequence


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"force-default-password-change\": \"true\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes/force-default-password-change


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"max-password-age\": \"%uint32%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes/max-password-age


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"info\": \"%uint32%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes/expiry-alert-level/info


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"minor\": \"%uint32%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes/expiry-alert-level/minor


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"major\": \"%uint32%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes/expiry-alert-level/major


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"critical\": \"%uint32%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes/expiry-alert-level/critical


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"upper\": \"%uint32%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes/character-restriction/upper


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"lower\": \"%uint32%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes/character-restriction/lower


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"numeric\": \"%uint32%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes/character-restriction/numeric


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"special-char\": \"%uint32%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes/character-restriction/special-char


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"admin-lockout\": \"true\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes/admin-lockout


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"login-notify-duration\": \"%uint32%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/password-attributes/login-notify-duration


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"login\": \"%string%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/banner/login


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"motd\": \"%string%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/banner/motd


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"incoming\": \"%string%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/banner/incoming


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"operation\": \"%rule-operation%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/operation


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"role\": \"%string%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/role


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"enumList\": \"%enumeration%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command/enumList


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"ethernet\": \"%interface:interface-type%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command/ethernet


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"port-channel\": \"%interface:portchannel-type%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command/port-channel


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"vlan\": \"%interface:vlan-type%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command/vlan


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"management\": \"%interface:man-interface-type%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command/management


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"loopback\": \"%loopback-intf:intf-loopback-port-type%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command/loopback


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"ve\": \"%interface:ve-type%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command/ve


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"fibrechannel\": \"%interface:interface-type%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command/fibrechannel


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"interface\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command/interface


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"ethernet\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command/interface/ethernet


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"management\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command/interface/management


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"port-channel\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command/interface/port-channel


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"loopback\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command/interface/loopback


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"ve\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command/interface/ve


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"copy\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command/copy


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"running-config\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command/copy/running-config


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"support\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command/copy/support


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"clear\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command/clear


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"logging\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command/clear/logging


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"support\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command/clear/support


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"protocol\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command/protocol


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"spanning-tree\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command/protocol/spanning-tree


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"lldp\": {}}"  -u admin:password http://%ipaddress%:80/rest/config/running/rule/%index%/command/protocol/lldp


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"enable\": \"true\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/root/enable


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"access\": \"%root_access_type%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/root/access


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"expansion\": \"%string%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/alias-config/alias/%name%/expansion


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"expansion\": \"%string%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/alias-config/user/%name%/alias/%name%/expansion

