虚拟私有云

根据主机查询网卡信息

2022-06-13 09:47:51

接口名

URI

请求方法

根据主机查询网卡信息

/v3/queryNetworkCards

GET

参数列表

参数名

类型

是否必选

描述


regionId

String

资源池ID, 例:100054c0416811e9a6690242ac110002


vmId

 

 

String

主机ID, 例: 295310fd-e72c-490a-9254-a1645764ece1

 

 


请求示例


HTTP Header:

 

regionId: 100054xxxx

vmId: 295310fd-e72c-490a-9254-a1645764ece1


返回示例


{

    "returnObj": {

        "interfaceAttachments": [

            {

                "port_id": "1b37abad-9c20-4575-8f46-cf7a94e66e86",

                "net_id": "ade21a01-fd2f-47d3-b94c-23eabe5a44b7",

                "port_state": "ACTIVE",

                "mac_addr": "02:00:7f:9a:00:02",

                "fixed_ips": [

                    {

                        "subnet_id": "759742c8-b3d8-4c5e-8bf4-b601f5fb3256",

                        "ip_address": "192.168.0.91"

                    }

                ],

                "id": "1b37abad-9c20-4575-8f46-cf7a94e66e86"

            }

        ]

    },

    "statusCode": 800

}