Create Express Tunnel Gateway
Last Updated:2020-07-20
Description
To create a express tunnel gateway, you can select to simultaneously bind the physical express tunnel and express tunnel channel.
Request Structure
POST /v{version}/etGateway?clientToken={clientToken} HTTP/1.1
Host: bcc.bj.baidubce.com
Authorization: authorization string
{
"name": "dcGateway",
"vpcId": "vpc-IyrqYIQ7",
"speed": 200,
"description": "",
"etId": "dcphy-478px3km77dh",
"channelId": "dedicatedconn-i7c1skfd0djs",
"localCidrs": ["192.168.0.0/20"]
}
Request Header
There are no other special headers except the public headers.
Request Parameter
Parameter name | Type | Required or not | Parameter position | Description |
---|---|---|---|---|
version | String | Yes | URL parameter | API version number (the current value is 1) |
clientToken | String | Yes | Query parameter | The idempotence Token is a ASCII string with a length not exceeding 64 bits. Refer to ClientToken idempotence for details. |
name | String | Yes | 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. |
vpcId | String | Yes | RequestBody parameter | Id of vpc to which the express tunnel gateway belongs |
speed | Integer | Yes | 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 |
etId | String | No | RequestBody parameter | The id, etid and channelId of the bound physical express tunnel must coexist. |
channelId | String | No | RequestBody parameter | The id, etid and channelId of the bound express tunnel channel must coexist. |
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, and the setting is available only when the parameters etId and channelId exist. |
Return Header
There are no other special headers except the public headers.
Return Parameter
Parameter name | Type | Description |
---|---|---|
etGatewayId | String | Id of created express tunnel gateway |
Request Example
POST /v1/etGateway?clientToken=8257tf9d-b98n-3r6n-a93m-297ng49io149 HTTP/1.1
Host: bcc.bj.baidubce.com
ContentType: application/json
Authorization: bce-auth-v1/bf427691810a11e8a106475a8496ca04/2018-07-06T11:02:49Z/3600/host;x-bce-date/e84ee938f6466428ff5c16b3562a1cbf3db5928e7f863cedec8820b5d98aa474
{
"name": "dcGateway",
"vpcId": "vpc-IyrqYIQ7",
"speed": 200,
"description": "",
"etId": "dcphy-478px3km77dh",
"channelId": "dedicatedconn-i7c1skfd0djs",
"localCidrs": ["192.168.0.0/20"]
}
Return Example
HTTP/1.1 200 OK
x-bce-request-id: 1214cca7-4ad5-451d-9215-71cb844c0a50
Date: Fri, 06 July 2018 07:06:06 GMT
Content-Type: application/json;charset=UTF-8
Server: BWS
{
"etGatewayId": "dcgw-4ds9x3kmds88"
}