Digi IX20-WAG4 User Manual page 574

Table of Contents

Advertisement

Applications
modbus_gateway
multicast
ntp
ping
snmp
ssh
telnet
web_admin
(config)> service
For example, to use curl to return the ssh configuration:
$ curl -k -u admin https://192.168.210.1/cgi-bin/config.cgi/value/service/ssh -
X GET
Enter host password for user 'admin':
{
ok": true,
"result": {
,
"acl.zone.0": "internal"
,
"acl.zone.1": "edge"
,
"acl.zone.2": "ipsec"
,
"acl.zone.3": "setup"
,
"enable": "true"
,
"key": ""
,
"mdns.enable": "true"
,
"mdns.name": ""
,
"mdns.type": "_ssh._tcp."
,
"port": "22"
,
"protocol.0": "tcp"
}
}
$
You can also use the GET method to return the configuration parameters associated with an item:
curl -k -u admin https://192.168.210.1/cgi-bin/config.cgi/keys/service/ssh -X
GET
Enter host password for user 'admin':
{ "ok": true, "result": [ "acl", "enable", "key", "mdns", "port", "protocol" ]
}
$
IX20 User Guide
"type": "object",
"path": "service.ssh"
"collapsed": {
}
Use the local REST API to configure the IX20 device
Modbus Gateway
Multicast
NTP
Ping responder
SNMP
SSH
Telnet
Web administration
574

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ix20

Table of Contents