PUT /aicc/network/interfaces/<interface>

Use the method to configure the settings for a specific network interface.

Authentication

Authentication with user name and password is required.

Request URL

GET https://<management_server_IP>/aicc/network/interfaces/<interface>

where <interface> is the network interface, such as eth0 or eth1.

Query parameters

None

Request body

Attributes Required / Optional Type Description
id Required String Network ID (such as "eth0" or "eth1")
ip_address Required Array Information about the IP addresses
  assign_method Required String Assignment method used for this IP address. This can be one of the following values.
  • static
  • dhcp
  • auto
  ip Required String IPv4 or IPv6 address
  prefix_length Required Integer Prefix length (in bits) for this IP address
  version Required Integer IP version of this address. This can be one of the following values.
  • 4

  • 6

Request example

This example request sets a static IPv4 address and a static IPv6 address.
{
    "id": "eth0",
    "ip_addresses": [{
        "assign_method": "static",
        "ip": "1.1.1.1",
        "prefix_length": 24,
        "version": 4
    },
    {
        "assign_method": "static",
        "ip": "2002:97b:c2bb:83d:5054:ff:feed:face",
        "prefix_length": 64,
        "version": 6
    }]
}
This example request sets an IPv4 address using DHCP.
{
    "id": "eth0",
    "ip_addresses": [{
        "assign_method": "dhcp"
        "version": 4,
    }]
}

This example request sets an IPv6 address using DHCP.

{
    "id": "eth0",
    "ip_addresses": [{
        "assign_method": "dhcp",
        "version": 6
    },
    {
        ...
    }]
}
This example request sets an IPv6 address using auto configuration.
{
    "id": "eth0",
    "ip_addresses": [{
        "assign_method": "auto",
        "version": 6
    },
    {
        ...
    }]
}

Response codes

Code Description
200 OK
400 Bad request
401 Unauthorized
403 Forbidden
404 Not found
409 Conflict
500 Internal server error

Response body

None