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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"source-interface\": {\"source-interface-name\": \"%track-iftype%\", \"source-interface-value\": \"%interface:interface-type%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/radius-server/host/%hostname%/%use-vrf%/source-interface


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"source-interface\": {\"source-interface-value\": \"%loopback-iftype%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/radius-server/host/%hostname%/%use-vrf%/source-interface


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"source-interface\": {\"source-interface-value\": \"%ve-iftype%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/radius-server/host/%hostname%/%use-vrf%/source-interface


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"source-interface\": {\"source-interface-value\": \"%mm-iftype%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/radius-server/host/%hostname%/%use-vrf%/source-interface


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


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


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


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


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


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


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


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


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


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


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


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"source-interface\": {\"source-intf-type\": \"%source-interface-type%\", \"source-intf-name\": \"%ethernet-iftype%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/ldap-server/host/%hostname%/%use-vrf%/source-interface


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"source-interface\": {\"source-intf-name\": \"%loopback-iftype%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/ldap-server/host/%hostname%/%use-vrf%/source-interface


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "[DO NOT USE]{\"source-interface\": {\"source-intf-name\": \"%ve-iftype%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/ldap-server/host/%hostname%/%use-vrf%/source-interface


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"source-interface\": {\"source-intf-name\": \"%mm-iftype%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/ldap-server/host/%hostname%/%use-vrf%/source-interface


curl -v -X PATCH -d -H "application/vnd.configuration.resource+json" "{\"group\": {\"role\": \"%string%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/ldap-server/maprole/group/%ad-group%


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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

