Query elastic network interface status
Updated at:2025-10-16
Description
Retrieve the status of elastic network interfaces.
Request structure
Plain Text
1GET /v{version}/eni/{eniId}/status 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 |
|---|---|---|
| status | String | Elastic network interface status |
Status of elastic network interface: "available" indicates the status of available, "attaching" indicates mounting to instance in progress, "ip_updating" indicates updating elastic network interface IP, "inuse" indicates completion of instance binding, "detaching" indicates unmounting instance in progress, "deleting" indicates deleting in progress
Request example
Plain Text
1GET /v1/eni/eni-aat5ke8fmz51/status HTTP/1.1
2Host: bcc.bj.baidubce.com
3Authorization: bce-auth-v1/de312ca226eb4cb08c7e6924356088d4/2023-05-05T05:26:38Z/1800/content-type;host/6441208e3c84ca13c1f7019e0809839ff8842920113d70ee7cb14e16356c1b43
Response example
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 2c2d56e2-504f-4dfc-ac7f-7fcdfcb3feda
3Date: Fri, 05 May 2023 05:26:39 GMT
4Content-Type: application/json;charset=UTF-8
5Server: BWS
6{
7 "status": "available"
8}
