appliance techpreview networking ipv4: set
Set IPv4 network configuration.
Request:
HTTP request
PUT https://{server}/rest/appliance/techpreview/networking/ipv4
Request Body Structure:
{
"config" : [
{
"mode" : "dhcp",
"default_gateway" : "string",
"address" : "string",
"prefix" : 1,
"interface_name" : "string"
},
{
"mode" : "dhcp",
"default_gateway" : "string",
"address" : "string",
"prefix" : 1,
"interface_name" : "string"
}
]
}
"config" : [
{
"mode" : "dhcp",
"default_gateway" : "string",
"address" : "string",
"prefix" : 1,
"interface_name" : "string"
},
{
"mode" : "dhcp",
"default_gateway" : "string",
"address" : "string",
"prefix" : 1,
"interface_name" : "string"
}
]
}
Request Body Parameters:
Name | Type | Description |
---|---|---|
bold = required | ||
config | I_pv4_config[] | List of IPv4 configurations. |
config[].interface_name | string | Interface name, for example, "nic0", "nic1". |
config[].mode | string | Address assignment mode. Defines different IPv4 modes. Value is one of: dhcp: IPv4 address is automatically assigned by a DHCP server. is_static: IPv4 address is static. unconfigured: The IPv4 protocol is not configured. |
config[].address | string | IPv4 address, for example, "10.20.80.191". Set this argument to an empty string "", if the mode is "unconfigured" or "dhcp". |
config[].prefix | long | IPv4 CIDR prefix, for example , 24. See http://www.oav.net/mirrors/cidr.html for netmask-to-prefix conversion. Set this argument to 0 if the mode is "unconfigured" or "dhcp". |
config[].default_gateway | string | IPv4 address of the default gateway. This default gateway value is used if the mode argument is set to "static" This configures the global default gateway on the appliance with the specified gateway address and interface. This gateway replaces the existing default gateway configured on the appliance. However, if the gateway address is link-local, then it is added for that interface. This does not support configuration of multiple global default gateways through different interfaces. |
Response:
HTTP Status Code: 200
NoneErrors:
HTTP Status Code | Type | Description |
---|---|---|
500 | error | Generic error |