NAT Gateway Unbinds EIP
Updated at:2025-10-16
Description
Detach the EIP from the NAT gateway.
- This API supports only enhanced NAT gateways.
Request structure
Plain Text
1PUT /v{version}/nat/{natId}?{action}&clientToken={clientToken} HTTP/1.1
2Host: bcc.bj.baidubce.com
3Authorization: authorization string
4{ "bindEips":[bindEips] }
Request parameters
| Parameter name | Types | Whether required | Parameter location | Description |
|---|---|---|---|---|
| version | String | Yes | URL parameter | API version number, current value is 1. |
| natId | String | Yes | URL parameter | NAT gateway ID from which the EIP is unbound |
| action | String | Yes | Query | Action executed on the NAT gateway. In this API, the value of this parameter is unbind. |
| clientToken | String | No | Query | Idempotence Token, which is an ASCII string with a length not exceeding 64 bits, see details in [ClientToken Idempotence](VPC/API Reference/General Description.md#Idempotence). |
| bindEips | Yes | RequestBody | List of unbound EIPs |
Response headers
No additional headers beyond standard ones.
Response parameters
No special response parameters are available.
Request example
Plain Text
1PUT /v1/nat/nat-b7ze574srr4g?unbind&clientToken=ac31ef8c-5e41-4k38-9ds0-9de700ds5b20 HTTP/1.1
2host: bcc.bj.baidubce.com
3content-type: application/json
4authorization: bce-auth-v1/2830b179831d11e8be57233b1de1e808/2018-07-09T02:18:42Z/3600/host;x-bce-account;x-bce-client-ip;x -bce-date;x-bce-request-id;x-bce-security-token/0d237d5281bdb003840eae23f6ffcd32c5dbe597d6abc5d4a91a11ddacb72701
5
6{
7 "bindEips" : [ "180.76.186.174" ]
8}
Response example
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: f76a08db-59dc-4d6e-841d-b36989d75d15
3Date: Mon, 09 Jul 2018 02:18:41 GMT
4Content-Type: application/json;charset=UTF-8
5Server: BWS
