Update NAT Gateway Name
Last Updated:2020-07-20
Description
Update the NAT gateway name.
Request Structure
PUT /v{version}/nat/{natId}?clientToken={clientToken} HTTP/1.1
Host: bcc.bj.baidubce.com
Authorization: authorization string
{ "name":name }
Request Parameter
Parameter name | Type | Required or not | Parameter position | Description |
---|---|---|---|---|
version | String | Yes | URL parameter | API version number (the current value is 1) |
natId | String | Yes | URL parameter | ID of NAT gateway |
clientToken | String | No | Query parameter | Idempotence Token is an ASCII string with length not exceeding 64 bytes, for details, please see ClientToken Idempotence |
name | String | Yes | Request Body parameters | NAT gateway name |
Return Header
There are no other special headers except the public headers.
Return Parameter
There is no special return parameter.
Request Example
PUT /v1/nat/nat-b58rnkn1g98h?clientToken=be31b98c-5e41-4838-9d30-9be700de5a20 HTTP/1.1
host: bcc.bj.baidubce.com
content-type: application/json
authorization: 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
{
"name" : "nattest"
}
Return Example
HTTP/1.1 200 OK
x-bce-request-id: d758dd78-aa10-4bcb-9679-d258aac94491
Date: Fri, 06 Jul 2018 11:29:59 GMT
Content-Type: application/json;charset=UTF-8
Server: BWS