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


curl -v -X PUT -d "<auto-boot>true</auto-boot>"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/auto-boot


curl -v -X PUT -d "<secure>true</secure>"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/ldap/secure


curl -v -X PUT -d "<basedn>%string%</basedn>"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/ldap/basedn


curl -v -X PUT -d "<rootdn>%string%</rootdn>"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/ldap/rootdn


curl -v -X PUT -d "<rootdnpw>%string%</rootdnpw>"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/ldap/rootdnpw


curl -v -X PUT -d "<import><protocol>%enumeration%</protocol><user>%string%</user><password>%string%</password><host>%inet:host%</host><directory>%string%</directory><filename>%string%</filename></import>"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/ldap/ca-cert/import


curl -v -X PUT -d "<primary-server>%dns-server-ipv6%</primary-server>"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/dns/primary-server


curl -v -X PUT -d "<secondary-server>%dns-server-ipv6%</secondary-server>"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/dns/secondary-server


curl -v -X PUT -d "<domain>%string%</domain>"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/dns/domain


curl -v -X PUT -d "<hostname>%string%</hostname>"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/hostname


curl -v -X PUT -d "<timezone>%common-def:timezone%</timezone>"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/timezone


curl -v -X PUT -d "<trusted-peer><ip>%inet:ipv4-address%</ip><password>%string%</password></trusted-peer>"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/trusted-peer

curl -v -X PUT -d "<trusted-peer><ipv6>%inet:ipv6-address%</ipv6><password>%string%</password></trusted-peer>"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/trusted-peer


curl -v -X PUT -d "<sudo-user>%string%</sudo-user>"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/trusted-peer/sudo-user


curl -v -X PUT -d "<ipaddr>%common-def:ipv4-prefix-mask%</ipaddr>"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/interface/management/ip/ipaddr


curl -v -X PUT -d "<gw>%inet:ipv4-address%</gw>"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/interface/management/ip/gw


curl -v -X PUT -d "<dhcp>true</dhcp>"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/interface/management/ip/dhcp


curl -v -X PUT -d "<ipv6addr>%common-def:ipv6-address-prefix%</ipv6addr>"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/interface/management/ipv6/ipv6addr


curl -v -X PUT -d "<gw>%inet:ipv6-address%</gw>"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/interface/management/ipv6/gw


curl -v -X PUT -d "<dhcpv6>true</dhcpv6>"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/interface/management/ipv6/dhcpv6


curl -v -X PUT -d "<insight-ipaddr>%common-def:ipv4-prefix-mask%</insight-ipaddr>"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/interface/insight/ip/insight-ipaddr


curl -v -X PUT -d "<gw>%inet:ipv4-address%</gw>"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/interface/insight/ip/gw


curl -v -X PUT -d "<dhcp>true</dhcp>"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/interface/insight/ip/dhcp


curl -v -X PUT -d "<deploy>true</deploy>"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/deploy


curl -v -X PUT -d "<undeploy-force>true</undeploy-force>"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/undeploy-force


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


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


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


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


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

