Release NAT gateway
Updated at:2025-10-16
Description
Release the NAT gateway.
- Prepaid NAT gateways cannot be released before their expiration.
Request structure
Plain Text
1Delete /v{version}/nat/{natId}?clientToken={clientToken} HTTP/1.1
2Host: bcc.bj.baidubce.com
3Authorization: authorization string
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 | ID of released NAT gateway |
| clientToken | String | No | Query | Idempotence token, which is an ASCII string with a length not exceeding 64 bits, see details in [ClientToken Idempotence Support](VPC/API Reference/General Description.md#Idempotence) |
Response headers
No additional headers beyond standard ones.
Response parameters
No special response parameters are available.
Request example
Plain Text
1Delete /v1/nat/nat-bbrnz82wk0dr?clientToken=fc31ef8c-5e41-4k38-9ds0-9def00ds5b60 HTTP/1.1
2host: bcc.bj.baidubce.com
3authorization: bce-auth-v1/2830b179831d11e8be57233b1de1e808/2018-07-09T02:38:52Z/3600/host;x-bce-account;x-bce-client-ip;x -bce-date;x-bce-request-id;x-bce-security-token/9c4e21651b58c9d37c5c475f82eeea0ee5c209cfbd25d3638b94ce33ed98125b
Response example
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: f7302165-756d-4c83-bb7a-1d4548fbba8c
3Cache-Control: no-cache
4Server: BWS
