Update TGW information
Updated at:2025-11-11
Description
Modify the name and description of the TGW.
Request structure
Plain Text
1PUT /v{version}/csn/{csnId}/tgw/{tgwId}?clientToken={clientToken} HTTP/1.1
2Host: csn.baidubce.com
3Authorization: authorization string
4{
5 "name": {name},
6 "description": {description}
7}
Request headers
There are no special headers required beyond the common headers.
Request parameters
| Parameter name | Type | Is it required | Parameter position | Description |
|---|---|---|---|---|
| version | String | Yes | URL parameter | API version number, current value is 1. |
| csnId | String | Yes | URL parameter | Cloud Smart Network ID |
| tgwId | String | Yes | URL parameter | ID of the TGW instance |
| name | String | No | ResponseBody parameter | Name of TGW |
| description | String | No | ResponseBody parameter | Description information of the TGW |
Response headers
No additional headers beyond standard ones.
Response parameters
No special response parameters are available.
Request example
Plain Text
1PUT /v1/csn/csn-c5s0isempeiscgyc/tgw/tgw-jhnw6fj4wts1eyjt?clientToken=be31b98c-5e41-4838-9830-9be700de5a20 HTTP/1.1
2Host: csn.baidubce.com
3Authorization: bce-auth-v1/5e5a8adf11ae475ba95f1bd38228b44f/2016-04-10T08:26:52Z/1800/host;x-bce-date/ec3c0069f9abb1e247773a62707224124b2b31b4c171133677f9042969791f02
4{
5 "name": "tgw_1",
6 "description": "desc"
7}
Response example
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 1214cca7-4ad5-451d-9215-71cb844c0a50
3Date: Thu, 16 Mar 2017 06:29:48 GMT
4Content-Type: application/json;charset=UTF-8
5Server: BWS
