Query the specified elastic network interface
Updated at:2025-10-16
Description
Query the specified elastic network interface.
Request structure
Plain Text
1GET /v{version}/eni/{eniId} HTTP/1.1
2Host: bcc.bj.baidubce.com
3Authorization: authorization string
Request headers
There are no special headers required beyond the common headers.
Request parameters
| Parameter name | Types | Whether required | Parameter location | Description |
|---|---|---|---|---|
| version | String | Yes | URL parameter | For API version No., the current value is 1 |
| eniId | String | Yes | URL parameter | Elastic network interface ID |
Response headers
No special headers are required beyond the standard ones.
Response parameters
| Parameter name | Types | Description |
|---|---|---|
| eniId | String | Elastic network interface ID |
| name | String | Name of elastic network interface |
| description | String | Description of elastic network interface |
| vpcId | String | ID of VPC to which the elastic network interface belongs |
| subnetId | String | ID of subnet to which the elastic network interface belongs |
| macAddress | String | MAC address of network interface card |
| status | String | Elastic network interface status: available: unmounted inuse: mounted attaching: mounting in progress detaching: unmounting in progress |
| zoneName | String | Availability zone to which the elastic network interface belongs |
| instanceId | String | Virtual machine ID where the elastic network interface is mounted |
| privateIpSet | List<[PrivateIP](VPC/API Reference/Appendix.md#PrivateIP)> | IPv4 IP of elastic network interface |
| ipv6PrivateIpSet | List<[PrivateIP](VPC/API Reference/Appendix.md#PrivateIP)> | IPv6 IP of elastic network interface |
| securityGroupIds | List<String> | List of bound regular security group IDs bound to elastic network interface |
| enterpriseSecurityGroupIds | List<String> | List of bound enterprise security group IDs bound to elastic network interface |
| createdTime | String | Creation time |
| tags | List<[TagModel](VPC/API Reference/Appendix.md#TagModel)> | Tag |
Request example
Plain Text
1GET /v1/eni/eni-w2d4kgc3x0y1 HTTP/1.1
2Host: bcc.bj.baidubce.com
3Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2017-03-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
Response example
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 7e789a40-adac-414a-8bd4-916d6be61112
3Date: Mon, 02 Apr 2019 08:14:25 GMT
4Content-Type: application/json;charset=UTF-8
5Server: BWS
6{
7 "zoneName":"zoneA",
8 "createdTime":"2019-04-12 18:53:07.0",
9 "description":"",
10 "instanceId":"i-Z2iJfB90",
11 "eniId":"eni-9kewqunek5sc",
12 "privateIpSet":[
13 {
14 "publicIpAddress":"180.76.245.166",
15 "primary":true,
16 "privateIpAddress":"192.168.1.221"
17 }
18 ],
19 "ipv6PrivateIpSet":[
20 {
21 "publicIpAddress": "240c:409f::5:0:49",
22 "primary":false,
23 "privateIpAddress":"2400:da00:e003:0:1d2:100:0:f"
24 }
25 ],
26 "macAddress":"fa:16:3e:c0:e4:3d",
27 "name":"test",
28 "securityGroupIds":[
29 "g-SY5smEG9"
30 ],
31 "tags": [
32 {
33 "tagKey": "hikwnf",
34 "tagValue": "nwklwmflk"
35 }
36 ],
37 "status":"available",
38 "subnetId":"sbn-053m53r01z3h",
39 "vpcId":"vpc-7hueyu2089wf"
40}
