appliance networking interfaces ipv6: set

Set IPv6 network configuration for specific interface. This operation was added in vSphere API 6.7

Request:

HTTP request

PUT https://{server}/rest/appliance/networking/interfaces/{interface_name}/ipv6

Path Parameters

Name Type Description
Required
interface_name string Network interface to update, for example, "nic0".

Request Body Structure:

{
    "config"{
        "addresses"[
            {
                "address""string",
                "prefix"1
            },
            {
                "address""string",
                "prefix"1
            }
        ],
        "autoconf"true,
        "default_gateway""string",
        "dhcp"true
    }
}

Request Body Parameters:

Name Type Description
bold = required
config config The IPv6 configuration.
config.dhcp boolean An address will be assigned by a DHCP server. This attribute was added in vSphere API 6.7

config.autoconf boolean An address will be assigned by Stateless Address Autoconfiguration (SLAAC). This attribute was added in vSphere API 6.7

config.addresses address[] The list of addresses to be statically assigned. This attribute was added in vSphere API 6.7

config.addresses[].address string The IPv6 address, for example, fc00:10:20:83:20c:29ff:fe94:bb5a. This attribute was added in vSphere API 6.7

config.addresses[].prefix long The IPv6 CIDR prefix, for example, 64. This attribute was added in vSphere API 6.7

config.default_gateway string The default gateway for static IP address assignment. This configures the global IPv6 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. This attribute was added in vSphere API 6.7

Response:

HTTP Status Code: 200

None

Errors:

HTTP Status Code Type Description
400 resource_busy The specified NIC is busy.
404 not_found The specified NIC is not found.
500 error Generic error.