Request
Body Params application/json
{
"id": "GSF_ID_BSP_ETH",
"op": "G1C0S0",
"data": {
"token": "eth0",
"name": "",
"dhcp": 0,
"ipv6": 0,
"ipaddr": "192.168.0.168",
"netmask": "255.255.255.0",
"gateway": "192.168.0.1",
"dns1": "114.114.114.114",
"dns2": "202.96.128.86"
}
}
Request Code Samples
curl --location --request POST 'http://192.168.0.168/api/network/config' \
--header 'Cookie: access_token=;access_token=' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "GSF_ID_BSP_ETH",
"op": "G1C0S0",
"data": {
"token": "eth0",
"name": "",
"dhcp": 0,
"ipv6": 0,
"ipaddr": "192.168.0.168",
"netmask": "255.255.255.0",
"gateway": "192.168.0.1",
"dns1": "114.114.114.114",
"dns2": "202.96.128.86"
}
}'
Responses
application/json {
"code": 0,
"data": {}
}
Modified at 2024-12-27 07:17:13