CreateGateway
Creates a gateway instance.
Try it now
Test
RAM authorization
Request syntax
GET HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterClass |
string |
No |
The cluster specification. |
polar.app.g2.medium |
| RegionId |
string |
Yes |
The region ID. |
cn-beijing |
| ZoneId |
string |
No |
The availability zone ID. |
cn-beijing-l |
| PayType |
string |
Yes |
The billing method. Valid values:
|
Prepaid |
| AutoRenew |
boolean |
No |
Specifies whether to enable auto-renewal. Valid values:
Default value: false. Note
This parameter applies only when PayType is set to Prepaid. |
false |
| Period |
string |
No |
The unit of the subscription duration. This parameter is required when PayType is set to Prepaid.
|
Month |
| UsedTime |
string |
No |
The subscription duration. This parameter is required when PayType is set to Prepaid.
|
3 |
| VPCId |
string |
Yes |
The ID of the virtual private cloud (VPC). |
vpc-******************* |
| VSwitchId |
string |
Yes |
The vSwitch ID. |
vsw-********************* |
| SecurityGroupId |
string |
No |
The security group ID. |
sg-bp************** |
| DBType |
string |
No |
The database engine type. Valid values:
|
MySQL |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID. |
F9F1CB1A-B1D5-4EF5-A53A-************ |
| GwClusterId |
string |
The gateway instance ID. |
pg-2ze2079ueg20**** |
| OrderId |
string |
The order ID. |
2035629****** |
Examples
Success response
JSON format
{
"RequestId": "F9F1CB1A-B1D5-4EF5-A53A-************",
"GwClusterId": "pg-2ze2079ueg20****",
"OrderId": "2035629******"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.