You can call this operation to generate the verification code required for installing a gateway on-premises. This verification code is corresponding to the gateway created on the cloud.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | CreateGatewayVerifyCode |
The operation that you want to perform. Set the value to CreateGatewayVerifyCode. |
GatewayId | String | Yes | dg-yhss6sdlaffaq68 |
The ID of the gateway. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | String | OK |
The response code. |
Data | String | qvCKyMgl |
The verification code required for installing the gateway on-premises. |
ErrorMsg | String | None |
The error message. |
RequestId | String | CDDAAA07-D806-AG67-BEE8-1E43AAE024DF |
The ID of the request. |
Success | Boolean | true |
Indicates whether the call is successful. |
Samples
Sample requests
http(s)://dg.[regionId].aliyuncs.com/?Action=CreateGatewayVerifyCode
&GatewayId=dg-yhss6sdlaffaq68
&<Common request parameters>
Sample success responses
XML
format
<CreateGatewayVerifyCodeResponse>
<Data>qvCKyMgl</Data>
<RequestId>CDDAAA07-D806-AG67-BEE8-1E43AAE024DF</RequestId>
</CreateGatewayVerifyCodeResponse>
JSON
format
{
"Data":"qvCKyMgl",
"RequestId":"CDDAAA07-D806-AG67-BEE8-1E43AAE024DF"
}
Error codes
For a list of error codes, visit the API Error Center.