Configure-Second-Network-Interface -DHCP

POST https://{{composer}}/rest/appliance/network-interfaces

You must provide in your payload only the new interface configuration details like in my example below.   Important note, you must provide the ipv4NameServers information of your existing first interface like included below: 192.168.2.1, 192.168.2.3. If you don't do that, the DNS entries will be removed from the appliance during the POST.   The response returned should be 200 OK.   Make sure you check the status of the task generated by your POST (the task URI is returned in the Location response header) : taskState should be Completed and taskStatus Succeeded.

Request Body

{"applianceNetworks"=>[{"interfaceName"=>"WAN_interface", "device"=>"eth1", "macAddress"=>"b4:7a:f1:5b:63:e0", "ipv4Type"=>"DHCP", "ipv6Type"=>"UNCONFIGURE", "overrideIpv4DhcpDnsServers"=>false, "overrideIpv6DhcpDnsServers"=>false, "confOneNode"=>true, "activeNode"=>1, "hostname"=>"composer.lj.lab", "app2Ipv4Addr"=>"", "virtIpv4Addr"=>nil, "app1Ipv6Addr"=>"", "app2Ipv6Addr"=>"", "virtIpv6Addr"=>nil, "ipv6Subnet"=>"", "ipv6Gateway"=>"", "app1Ipv4Alias"=>nil, "app2Ipv4Alias"=>nil, "app1Ipv6Alias"=>nil, "app2Ipv6Alias"=>nil, "domainName"=>nil, "ipv4NameServers"=>["192.168.2.1", "192.168.2.3"], "bondedTo"=>nil, "unconfigure"=>false, "aliasDisabled"=>false}]}

HEADERS

KeyDatatypeRequiredDescription
X-API-Versionstring
Authstring
Content-Typestring