
Configuration and management
Use the local REST API to configure the AnywhereUSB Plus device
AnywhereUSB® Plus User Guide
87
"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" ]
}
$
Use the POST method to modify device configuration parameters
and list arrays
Use the POST method to modify device configuration parameters
To modify configuration parameters, use the
POST
method with the
path
and
value
parameters.
$ curl -k -u admin "https://
ip-address
/cgi-
bin/config.cgi/value?path=
path
&value=
new_value
" -X POST
where:
n
path
is the path to the configuration parameter, in dot notation (for example,
ssh.service.enable
).
n
new_value
is the new value for the parameter.
For example, to disable the ssh service using
curl
:
$ curl -k -u admin "https://192.168.210.1/cgi-
bin/config.cgi/value?path=service.ssh.enable&value=false" -X POST
Enter host password for user 'admin':
{ "ok": true }
$
Содержание AnywhereUSB Plus
Страница 1: ...AnywhereUSB Plus User Guide Firmware version 21 8 ...
Страница 212: ...Interfaces Bridging AnywhereUSB Plus User Guide 212 ...
Страница 308: ...Services Configure the ping responder service AnywhereUSB Plus User Guide 308 iperf Done ...
Страница 509: ...File system Upload and download files AnywhereUSB Plus User Guide 509 sftp exit ...
Страница 604: ...Virtual Private Networks VPN IPsec AnywhereUSB Plus User Guide 604 ...
Страница 710: ...Command line interface Command line reference AnywhereUSB Plus User Guide 710 more path The file to view Syntax STRING ...
Страница 714: ...Command line interface Command line reference AnywhereUSB Plus User Guide 714 reboot Reboot the system Parameters None ...
Страница 775: ...Configure the AnywhereUSB Manager from the command line power cycle AnywhereUSB Plus User Guide 775 ...