{
"ethernets": [
{
"dhcp": false,
"dns": [
"172.16.0.201",
"172.16.0.202"
],
"gateWay": "192.168.0.1",
"ip": "192.168.0.101",
"mask": "255.255.255.0",
"name": "eth0",
"scopeId": -1
}
]
}curl --location 'http://192.168.0.220:12000/terminal/core/v1/net/ethernet/info' \
--header 'Authorization;' \
--header 'Authorization: 17857457369538LRHKOWdiBwFUnDn5QBZDw==' \
--header 'token: 1785466956901pkbCeqrUQv+PGjEfNTlNoQ==' \
--header 'Content-Type: application/json' \
--data '{
"ethernets": [
{
"dhcp": false,
"dns": [
"172.16.0.201",
"172.16.0.202"
],
"gateWay": "192.168.0.1",
"ip": "192.168.0.101",
"mask": "255.255.255.0",
"name": "eth0",
"scopeId": -1
}
]
}'{
"code": 0,
"message": "success"
}