System Settings

Json structures

Apply date json structure

GET:

{
    "type": "ntp",
    "timezone": "Europe/Amsterdam",
    "ntp_servers": [
        "0.debian.pool.ntp.org",
        "1.debian.pool.ntp.org"
    ],
    "date": 1548771939, // Epoch timestamp
    "timezone_available": [ "Africa/Abidjan", ...,  Europe/Amsterdam, ...]
}

PUT:

{
    "type": "ntp", // use "user" to only update local system time
    "timezone": "Europe/Amsterdam", // Must be among the available timezones
    "ntp_servers": [ // must not be empty when "ntp" type is specified
        "0.debian.pool.ntp.org",
        "1.debian.pool.ntp.org"
    ],
    "date": 1548771939 // Epoch timestamp
}

Network json structure

{
    "configuration": "[Network conf, can be one of: 'disable', 'dhcp', 'dhcp_v4', 'dhcp_v6', 'static', 'eui-64']",
    "link":"['up' or 'down']",
    "hostname":"xxseries",
    "ip": "[A valid IPv4 address if status is STATIC]",
    "ip_v6": "[A valid IPv6 address if status is STATIC]",
    "prefix": [A valid IPv4 prefix length],
    "prefix_v6": [A valid IPv6 prefix length],
    "gw": "[A valid IPv4 address if status is STATIC]",
    "gw_v6": "[A valid IPv6 address if status is STATIC]",
    "dns": "[A valid IPv4 address if status is STATIC]",
    "dns_v6": "[A valid IPv6 address if status is STATIC]",
    "dns2": "[A valid IPv4 address if status is STATIC]",
    "dns2_v6": "[A valid IPv6 address if status is STATIC]",
    "mac":"70:b3:d5:cc:f0:2d"
}

Back to X2-SERIES API Home