CreateCustomerGateway
Description
call the CreateCustomerGateway interface to create a user gateway.
Request Method
POST
Request Path
/apsara/route/Vpc/CreateCustomerGateway
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
Description | BODY | string | No | Gateway | description information of the user gateway. is described between 2 and 256 characters, starting with upper and lower case letters or Chinese, and can contain numbers, dashes (-), underscores (_), and full-width periods (.) , full-width comma (,) and full-width colon (:), but cannot be http:// or https:// start. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
IpAddress | BODY | string | Yes | 116.XX.XX.222 | the IP address of the user gateway. |
RegionId | BODY | string | Yes | cn-qingdao-env66-d01 | the region ID where the user gateway is located. you can obtain the region by calling DescribeRegions interface ID. |
ClientToken | BODY | string | No | 02fb3da4-130e-11e9-8e44-0016e04115b | is used to ensure the idempotence of the request. The parameter value is generated by the client. It must be unique between different requests, and the maximum value does not exceed 64 ASCII characters. |
version | BODY | string | No | 2016-01-01 | version of api |
Name | BODY | string | No | Gateway | the name of the user gateway. is 2 to 128 characters in length, must start with a letter or Chinese, and can contain numbers, half-width periods (.), underscores (_), and dashes (-). But you cannot use http:// or https:// start. |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}