You can call this operation to create a gateway.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | CreateGateway |
The operation that you want to perform. Set the value to CreateGateway. |
GatewayDesc | String | Yes | Gateway used in the cloud-based environment |
The description of the gateway. |
GatewayName | String | Yes | Cloud-based environment |
The name of the gateway. |
RegionId | String | No | cn-hangzhou |
The region ID. |
Response parameters
Samples
Sample requests
http(s)://dg.[regionId].aliyuncs.com/?Action=CreateGateway
&GatewayDesc=Gateway used in the cloud-based environment
&GatewayName=Cloud-based environment
&<Common request parameters>
Sample success responses
XML
format
<CreateGatewayResponse>
<Data>dg-yhss6sdlaffaq68</Data>
<RequestId>A7D17E3E-358C-4A80-986C-F6C3B048AD17</RequestId>
</CreateGatewayResponse>
JSON
format
{
"Data":"dg-yhss6sdlaffaq68",
"RequestId":"A7D17E3E-358C-4A80-986C-F6C3B048AD17"
}
Error codes
For a list of error codes, visit the API Error Center.