Update Express Tunnel Gateway
Last Updated:2020-07-20
Description
Update the express tunnel gateway.
Request Structure
PUT /v{version}/etGateway/{etGatewayId}?clientToken={clientToken} HTTP/1.1
Host: bcc.bj.baidubce.com
Authorization: authorization string
{
"name": "dcGateway",
"speed": 200,
"description": "",
"localCidrs": ["192.168.0.0/20"]
}
Request Parameter
Parameter name | Type | Required or not | Parameter position | Description |
---|---|---|---|---|
version | String | Yes | API version number of URL parameter, current value 1. | |
etGatewayId | String | Yes | URL parameter | Id of express tunnel gateway |
name | String | No | RequestBody parameter | The name of the express tunnel gateway is composed by upper and lower case letters, numbers, and -_/. special characters, and must start with letters, with a length of 1-65. |
speed | Integer | No | RequestBody parameter | Speed limit value of dedicated gateway bandwidth, in Mbps. Limited to integral numbers between 2-10000 |
description | String | No | RequestBody parameter | Description of express tunnel gateway, not exceeding 200 characters |
localCidrs | List |
No | RequestBody parameter | For the cloud network of the express tunnel gateway, the users can select the vpc segment or customize one or more network segments. |
Note: The update of the parameter localCidrs is allowed only when the express tunnel gateway is in the status of "Running".
Return Header
There are no other special headers except the public headers.
Return Parameter
There is no special return parameter.
Request Example
PUT /v1/etGateway/dcgw-4ds9x3kmds88?clientToken=8257tf9d-b98n-3r6n-a93m-297ng49io149 HTTP/1.1
host: bcc.bj.baidubce.com
content-type: application/json
Authorization: bce-auth-v1/bf427691810a11e8a106475a8496ca04/2018-07-06T11:02:49Z/3600/host;x-bce-date/e84ee938f6466428ff5c16b3562a1cbf3db5928e7f863cedec8820b5d98aa474
{
"name": "dcGateway";
"speed": 100,
"description": "",
"localCidrs": ["192.168.0.0/20"]
}
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