Domain name for API request: teo.intl.tencentcloudapi.com.
This API is used to create a multi-channel security acceleration gateway, including Cloud Gateway and Private Gateway. Use the DescribeMultiPathGateway interface to query the status. If the status is online, the creation succeeded.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: CreateMultiPathGateway. |
| Version | Yes | String | Common Params. The value used for this API: 2022-09-01. |
| Region | No | String | Common Params. This parameter is not required for this API. |
| ZoneId | Yes | String | Zone ID. |
| GatewayType | Yes | String | Gateway type. Valid values: |
| GatewayName | Yes | String | Gateway name, up to 16 characters. Available characters: a-z, A-Z, 0-9, -, _. |
| GatewayPort | Yes | Integer | Gateway port. Range: 1–65535 (excluding 8888). |
| RegionId | No | String | Gateway region. Required when the GatewayType value is cloud (Cloud Gateway). You can query the RegionId list via the DescribeMultiPathGatewayRegions API. |
| GatewayIP | No | String | Gateway address. Required when GatewayType is private. When using this address, please ensure it has been entered into the Tencent Cloud multi-channel security acceleration gateway system. If not entered, the gateway IP address needs to be entered into the Tencent Cloud multi-channel security acceleration gateway system in advance through a ticket or by contacting the architect before calling this API. |
| Parameter Name | Type | Description |
|---|---|---|
| GatewayId | String | Gateway ID. |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
This example shows you how to create a Cloud Gateway in a specified site (ZoneId: zone-27q0p0bal192), with the region (RegionId) set to Beijing (ap-beijing) and the port (GatewayPort) set to 8080.
POST / HTTP/1.1
Host: teo.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateMultiPathGateway
<Common request parameters>
{
"ZoneId": "zone-27q0p0bal192",
"GatewayType": "cloud",
"GatewayName": "EOMPGW-1",
"RegionId": "ap-beijing",
"GatewayPort": 8080
}
{
"Response": {
"GatewayId": "mpgw-9d65563y6p",
"RequestId": "04e15f26-7a59-4e29-b297-1b43ed4ec691"
}
}
Create a private gateway at the specified site (ZoneId: zone-27q0p0bal192) with IP (GatewayIP) 49.7.248.202 and port (GatewayPort) 443.
POST / HTTP/1.1
Host: teo.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateMultiPathGateway
<Common request parameters>
{
"GatewayType": "private",
"GatewayName": "private-1",
"ZoneId": "zone-27q0p0bal192",
"GatewayPort": 443,
"GatewayIP": "49.7.248.202"
}
{
"Response": {
"GatewayId": "mpgw-ajf5qkoync",
"RequestId": "e8fef204-be7b-4a39-aee3-85b617651734"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| InternalError | Internal error. |
| InvalidParameter | Parameter error. |
| InvalidParameterValue | Parameter value error. |
| MissingParameter | Parameters are missing. |
| OperationDenied | Operation denied. |
フィードバック