URI | Description |
---|---|
<base_URI>/config/running/tpvm | Configure TPVM parameters. |
PUT URIs | Payload | Description |
---|---|---|
<base_URI>/config/running/tpvm/TPVM/interface/management/ipv6 | <ipv6><dhcpv6>true</dhcpv6></ipv6> | Configures enabling DHCP for assigning IPv6 address for the management interface (eth0) of the TPVM. |
<base_URI>/config/running/tpvm/TPVM/interface/management/ipv6 | <ipv6-params><ipv6addr> <ipv6-address-and-mask></ipv6addr><gw><gw-ipv6-address> </gw></ipv6-params> | Configures the IPv6 address and gateway for the management interface (eth0) of the TPVM. |
<base_URI>/config/running/tpvm/TPVM/dns | <dns> <dns-params> <primary-server><ipv6-address> </primary-server><secondary-server><ipv6-address> </secondary-server> <domain>domain-name</domain> </dns-params> </dns> | Configures the primary and secondary DNS servers for the management interface (eth0) of the TPVM. Also configures the domain name. |
<base_URI>/config/running/tpvm/TPVM/ntp | <ntp> <server><host-name></server> <server><ipv4-address></server> <server><ipv6-address></server> | Configures the NTP servers for use with this TPVM instance. Up to 5 NTP servers can be configured. NTP servers can be configured as IPv4 or IPv6 address formats or as FQDNs. |
<base_URI>/config/running/tpvm/TPVM/trusted-peer | <trusted-peer> <pwless> <ipv6><ipv6-address></ipv6> <password><password></password></pwless> <sudo-user><sudo-user-account></sudo-user> </trusted-peer> | Configures the trusted peer and sets its access credentials. |
<base_URI>/config/running/tpvm/TPVM/ldap/ca-cert/import | <import> <protocol></protocol-to-use> <user><user-name></user> <ldap-password><password></ldap-password> <ldap-host><hostname:ip-address></ldap-host> <directory><remote-directory></directory> <filename><cert-file-name></filename> </import> | Imports a particular certificate from a remote LDAP server. |
<base_URI>/config/running/tpvm/TPVM/ldap/ldap-server/ldap-server-options | <ldap-server> <host><hostname:ip-address></host> <port><port-number></port> </ldap-server> | Configures a LDAP server using either its FQDN or using its IPv4 or IPv6 address. |
PUT URIs | Payload | Description |
---|---|---|
<base_URI>/config/running/tpvm/upgrade | <upgrade> <protocol><protocol-to-use></protocol> <user><user-name></user> <password><password></password> <host><host-ip-address></host> <directory><remote-directory></directory> <filename><image-file-name></filename> </upgrade> | Configures the parameters to upgrade TPVM. |
<base_URI>/config/running/tpvm/download | <download> <protocol><protocol-to-use></protocol> <user><user-name></user> <password><password></password> <host><host-ip-address></host> <directory><remote-directory></directory> <filename><image-file-name></filename> | Configures the parameters to download a TPVM image file. |
PUT and PATCH operations are supported.
The following example shows the setting of the DHCPv6 option for IPv6 address assignment to the management interface of the TPVM.
URI
http://host:80/rest/config/running/tpvm
curl -v -X PATCH -d "<ipv6><dhcpv6>true</dhcpv6></ipv6>" -u admin:password http://10.20.246.30:80/rest/config/running/tpvm/TPVM/interface/management/ipv6 -k -v
The following example shows manual assignment of IPv6 address to the management interface of the TPVM.
curl -v -X PATCH -d "<ipv6-params><ipv6addr>23::54/24</ipv6addr><gw>12:23::5:32</gw></ipv6-params<" -u admin:password http://10.20.246.30:80/rest/config/running/tpvm/TPVM/interface/management/ipv6/ -k -v
The following example shows the configuration of a trusted peer.
curl -v -X PATCH -d "<pwless><ipv6>12:3::65:76</ipv6><password>welcome123</password></pwless>" -u admin:password http://10.20.246.30:80/rest/config/running/tpvm/TPVM/trusted-peer/ -k -v curl -v -X PATCH -d "<trusted-peer><sudo-user>extrenetwo</sudo-user></trusted-peer>" -u admin:password http://10.20.246.30:80/rest/config/running/tpvm/TPVM/trusted-peer/ -k -v admin:password http://10.20.246.30:80/rest/config/running/tpvm/TPVM/interface/management/ipv6/ -k -v