Update NAT gateway name
Updated at:2025-10-16
Description
Rename the NAT gateway.
Request structure
Plain Text
1PUT /v{version}/nat/{natId}?clientToken={clientToken} HTTP/1.1
2Host: bcc.bj.baidubce.com
3Authorization: authorization string
4{ "name":name }
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 |
| 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) |
| name | String | Yes | Request Body parameters | NAT (Network Address Translation) name |
Response headers
No additional headers beyond standard ones.
Response parameters
No special response parameters are available.
Request example
Plain Text
1PUT /v1/nat/nat-b58rnkn1g98h?clientToken=be31b98c-5e41-4838-9d30-9be700de5a20 HTTP/1.1
2host: bcc.bj.baidubce.com
3content-type: application/json
4authorization: bce-auth-v1/a512b86f810f11e8a106475a8496ca04/2018-07-06T11:29:59Z/3600/host;x-bce-account;x-bce-client-ip;x -bce-date;x-bce-request-id;x-bce-security-token/b7a3b5982425be943ec93591f4ef4607c82f257693fab476bd26a45e9acb4fb1
5
6{
7 "name" : "nattest"
8}
Response example
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: d758dd78-aa10-4bcb-9679-d258aac94491
3Date: Fri, 06 Jul 2018 11:29:59 GMT
4Content-Type: application/json;charset=UTF-8
5Server: BWS
