5. API for Acquiring/Changing Parameters of VN-E4 _
Setting Default Gateway for VN-E4
Format
Example
Example of Response
Interpretation
Allowed user
Acquiring Host Name from VN-E4
Format
Example of Response
Interpretation
Allowed users
Setting Host Name for VN-E4
Format
Example
Example of Response
Interpretation
Example when leaving
field blank
Allowed user
Acquiring Domain Name from VN-E4
Format
Example of Response
Interpretation
Allowed users
/api/param?network.gateway(ipv4)=data
/api/param?network.gateway(ipv4)=10.0.0.254
network.gateway&200 OK
Change the default gateway of IPv4. Default gateway of IPv6 can not be changed. Upon setting this API,
execute the "network.interface.status=restart" API for enabling network setting changes to enable the new
settings.
Specify as 0.0.0.0 to cancel the default gateway setting. However, multicast transmission will be disabled if the
default gateway is not set.
admin
/api/param?network.hostname
network.hostname=localhost&200 OK
Acquire the current host name.
admin, operator, user
/api/param?network.hostname=data
/api/param?network.hostname=somename
network.hostname&202 Required(network.interface.status=restart)
Change the host name. Characters that may be used for the host name are alphanumerics, underscores (_),
hyphens (-) and percents (%). Upon setting this API, execute the "network.interface.status=restart" API for
enabling network setting changes to enable the new settings.
Specify as %00 when the host name setting is to be left blank.
/api/param?network.hostname=%00
admin
/api/param?network.domainname
network.domainname=somename&200 OK
Acquire the current domain name.
admin, operator, user
5.8. Network Basics
45