裸金属服务器 BMS-元数据:Network data(OpenStack元数据API)

时间:2024-10-28 18:24:39

Network data(OpenStack元数据API)

查询裸金属服务器的网络信息。

  • URI

    /openstack/latest/network_data.json

  • 方法

    支持GET请求

  • 示例

    curl http://169.254.169.254/openstack/latest/network_data.json

    {
        "services": [{
            "type": "dns",
            "address": "100.125.1.250"
        },
        {
            "type": "dns",
            "address": "100.125.21.250"
        }],
        "networks": [{
            "network_id": "67dc10ce-441f-4592-9a80-cc709f6436e7",
            "type": "ipv4_dhcp",
            "link": "tap68a9272d-71",
            "id": "network0"
        }],
        "links": [{
            "type": "cascading",
            "vif_id": "68a9272d-7152-4ae7-a138-3ef53af669e7",
            "ethernet_mac_address": "fa:16:3e:f7:c1:47",
            "id": "tap68a9272d-71",
            "mtu": null
        }]
    }
support.huaweicloud.com/usermanual-bms/bms_01_0040.html