Update dedicated gateway
Updated at:2025-10-16
Description
Update the dedicated gateway.
Request structure
Plain Text
1PUT /v{version}/etGateway/{etGatewayId}?clientToken={clientToken} HTTP/1.1
2Host: bcc.bj.baidubce.com
3Authorization: authorization string
4{
5 "name": {name},
6 "speed": {speed},
7 "description": {description},
8 "localCidrs": {localCidrs},
9 "enableIpv6": {enableIpv6},
10 "ipv6LocalCidrs": {ipv6LocalCidrs}
11}
Request parameters
| Parameter name | Types | Whether required | Parameter location | Description |
|---|---|---|---|---|
| version | String | Yes | URL parameter | API version number, current value is 1. |
| etGatewayId | String | Yes | URL parameter | ID of the dedicated 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) |
| name | String | No | RequestBody | Name of dedicated gateway, which supports uppercase and lowercase letters, numbers, and special characters such as-, _, / and., starting with a letter, with a length of 1-65. |
| speed | Integer | No | RequestBody | Set the bandwidth limit for the dedicated gateway in Mbps. Valid range: integers from 2 to 100,000. |
| description | String | No | RequestBody | Description of dedicated gateway, with a maximum length of 200 characters |
| localCidrs | List |
No | RequestBody | IPv4 cloud network of dedicated gateway. Users can select this VPC segment or customize one or more segments |
| enableIpv6 | Integer | No | RequestBody | Whether the IPv6 function is enabled: 1 for yes and 0 for no. IPv6 features an allow list function |
| ipv6LocalCidrs | List |
No | RequestBody | IPv6 cloud network of dedicated gateway. Users can select this VPC segment or customize one or more IPv6 segments |
Description: Parameter localCidrs can only be updated when dedicated gateway is in running status.
Response headers
No additional headers beyond standard ones.
Response parameters
No special response parameters are available.
Request example
Plain Text
1PUT /v1/etGateway/dcgw-4ds9x3kmds88?clientToken=8257tf9d-b98n-3r6n-a93m-297ng49io149 HTTP/1.1
2Host: bcc.bj.baidubce.com
3Authorization: bce-auth-v1/bf427691810a11e8a106475a8496ca04/2018-07-06T11:02:49Z/3600/host;x-bce-date/e84ee938f6466428ff5c16b3562a1cbf3db5928e7f863cedec8820b5d98aa474
4{
5 "name": "dcGateway",
6 "speed": 100,
7 "description": "dcGateway description",
8 "localCidrs": ["192.168.0.0/20"],
9 "enableIpv6": 1,
10 "ipv6LocalCidrs": ["2400:da00:e003:0:15f::/87"]
11}
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
