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


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


curl -v -X PATCH -d "<disk><size>%tpvm:diskSize%</size></disk>"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/disk/%name%


curl -v -X PATCH -d "<ldap><host>%inet:host%</host><port>%uint16%</port></ldap>"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/ldap


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


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


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


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


curl -v -X PATCH -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 PATCH -d "<dns><primary-server>%dns-server-ipv6%</primary-server></dns>"  -u admin:password http://%ipaddress%:80/rest/config/running/tpvm/%tpvm-instance-id%/dns


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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

