
********************************************************************************
* 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 "<shutdown>true</shutdown>"  -u admin:password http://%ipaddress%:80/rest/config/running/telnet/server/use-vrf/%use-vrf-name%/shutdown


curl -v -X PUT -d "<key-exchange>%string%</key-exchange>"  -u admin:password http://%ipaddress%:80/rest/config/running/ssh/server/key-exchange


curl -v -X PUT -d "<rekey-interval>%uint32%</rekey-interval>"  -u admin:password http://%ipaddress%:80/rest/config/running/ssh/server/rekey-interval


curl -v -X PUT -d "<rekey-volume>%uint32%</rekey-volume>"  -u admin:password http://%ipaddress%:80/rest/config/running/ssh/server/rekey-volume


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


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


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


curl -v -X PUT -d "<max-auth-tries>%uint32%</max-auth-tries>"  -u admin:password http://%ipaddress%:80/rest/config/running/ssh/server/max-auth-tries


curl -v -X PUT -d "<max-idle-timeout>%uint32%</max-idle-timeout>"  -u admin:password http://%ipaddress%:80/rest/config/running/ssh/server/max-idle-timeout


curl -v -X PUT -d "<max-login-timeout>%uint32%</max-login-timeout>"  -u admin:password http://%ipaddress%:80/rest/config/running/ssh/server/max-login-timeout


curl -v -X PUT -d "<rsa>%rsa-bits-size%</rsa>"  -u admin:password http://%ipaddress%:80/rest/config/running/ssh/server/key/rsa


curl -v -X PUT -d "<ecdsa>%ecdsa-bits-size%</ecdsa>"  -u admin:password http://%ipaddress%:80/rest/config/running/ssh/server/key/ecdsa


curl -v -X PUT -d "<dsa>true</dsa>"  -u admin:password http://%ipaddress%:80/rest/config/running/ssh/server/key/dsa


curl -v -X PUT -d "<shutdown>true</shutdown>"  -u admin:password http://%ipaddress%:80/rest/config/running/ssh/server/use-vrf/%use-vrf-name%/shutdown


curl -v -X PUT -d "<hostkey>%string%</hostkey>"  -u admin:password http://%ipaddress%:80/rest/config/running/ssh/server/algorithm/hostkey


curl -v -X PUT -d "<sign>%string%</sign>"  -u admin:password http://%ipaddress%:80/rest/config/running/ssh/server/certificate/profile/server/trustpoint/sign


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


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


curl -v -X PUT -d "<key-exchange>%string%</key-exchange>"  -u admin:password http://%ipaddress%:80/rest/config/running/ssh/client/key-exchange


curl -v -X PUT -d "[DO NOT USE]<interface-name>%loopback:intf-loopback-port-type%</interface-name>"  -u admin:password http://%ipaddress%:80/rest/config/running/ssh/client/source-interface/interface-name


curl -v -X PUT -d "[DO NOT USE]<interface-name>%interface:ve-type%</interface-name>"  -u admin:password http://%ipaddress%:80/rest/config/running/ssh/client/source-interface/interface-name


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


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


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

