Use The Local Rest Api To Configure The Tx40 Device; Use The Get Method To Return Device Configuration Information - Digi TX40 User Manual

Table of Contents

Advertisement

Firmware configuration

Use the local REST API to configure the TX40 device

Your TX40 device includes a REST API that can be used to return information about the device's
configuration and to make modifications to the configuration. You can view the REST API specification
from your web browser by opening the URL:
https://ip-address/cgi-bin/config.cgi
For example:
https://192.168.210.1/cgi-bin/config.cgi

Use the GET method to return device configuration information

To return device configuration, issue the GET method. For example, using curl:
$ curl -k -u admin https://ip-address/cgi-bin/config.cgi/value/path -X GET
where:
ip-address is the IP address of the TX40 device.
n
path is the path location in the configuration for the information being returned.
n
To determine allowed values for path from the Admin CLI:
1. Select the device in Remote Manager and click Actions > Open Console, or log into the
TX40 local command line as a user with full Admin access rights.
Depending on your device configuration, you may be presented with an Access
selection menu. Type admin to access the Admin CLI.
2. At the command line, type config to enter configuration mode:
> config
(config)>
3. At the config prompt, type ? (question mark):
(config)> ?
auth
cloud
firewall
monitoring
network
serial
service
system
vpn
(config)>
The allowed values for path are listed in the first (left) column.
4. To determine further allowed path location values by using the ? (question mark) with
the path name:
TX40 User Guide
Use the local REST API to configure the TX40 device
Authentication
Central management
Firewall
Monitoring
Network
Serial
Services
System
VPN
45

Advertisement

Table of Contents
loading

Table of Contents