
********************************************************************************
* 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" "{\"password\": \"%string%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/password


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


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


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


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


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


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"import\": {\"protocol\": \"%enumeration%\", \"user\": \"%string%\", \"password\": \"%string%\", \"host\": \"%inet:host%\", \"directory\": \"%string%\", \"filename\": \"%string%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/ldap/ca-cert/import


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"primary-server\": \"%dns-server-ipv6%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/dns/primary-server


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"secondary-server\": \"%dns-server-ipv6%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/dns/secondary-server


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


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


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"timezone\": \"%common-def:timezone%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/timezone


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"trusted-peer\": {\"ip\": \"%inet:ipv4-address%\", \"password\": \"%string%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/trusted-peer

curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"trusted-peer\": {\"ipv6\": \"%inet:ipv6-address%\", \"password\": \"%string%\"}}"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/trusted-peer


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"sudo-user\": \"%string%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/trusted-peer/sudo-user


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"ipaddr\": \"%common-def:ipv4-prefix-mask%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/interface/management/ip/ipaddr


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"gw\": \"%inet:ipv4-address%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/interface/management/ip/gw


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"dhcp\": \"true\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/interface/management/ip/dhcp


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"ipv6addr\": \"%common-def:ipv6-address-prefix%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/interface/management/ipv6/ipv6addr


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"gw\": \"%inet:ipv6-address%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/interface/management/ipv6/gw


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"dhcpv6\": \"true\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/interface/management/ipv6/dhcpv6


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"insight-ipaddr\": \"%common-def:ipv4-prefix-mask%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/interface/insight/ip/insight-ipaddr


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"gw\": \"%inet:ipv4-address%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/interface/insight/ip/gw


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"dhcp\": \"true\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/interface/insight/ip/dhcp


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


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


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


curl -v -X PUT -d -H "application/vnd.configuration.resource+json" "{\"upper\": \"%uint32%\"}"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/password-policy/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/tpvm/%tpvm-instance-id%/password-policy/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/tpvm/%tpvm-instance-id%/password-policy/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/tpvm/%tpvm-instance-id%/password-policy/character-restriction/special-char

