DownloadGatewayProgram
Retrieves the download URL for the gateway program. Any Alibaba Cloud user can call this operation without requiring permissions.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| UserOS |
string |
No |
The operating system of the gateway. |
LINUX |
| DgVersion |
string |
No |
The DG version. |
3.0 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The response code. |
200 |
| Data |
string |
The response data. |
https://dg-prod-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/dg3-pkgs/DBGateway_linux?Expires=170833****&OSSAccessKeyId=*************&Signature=**************** |
| ErrorMsg |
string |
The error message. |
Gateway exception, please launch local dg first |
| RequestId |
string |
The request ID. Use this ID to track and troubleshoot your request. |
15D856B8-A95C-5DA5-B0FC-67246286EA7F |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| AccessDeniedDetail |
object |
The request failure details. |
|
| AuthAction |
string |
The API operation name. |
dms-dg:DownloadGatewayProgram |
| AuthPrincipalDisplayName |
string |
The identity that is used to access the resource. |
23894333884425**** |
| AuthPrincipalOwnerId |
string |
The ID of the Alibaba Cloud account that owns the principal. |
1218522260143*** |
| AuthPrincipalType |
string |
The type of the principal. |
SubUser |
| EncodedDiagnosticMessage |
string |
The encoded diagnostic information. |
AQEAAAAAaGXktUZBOTgwNkQwLTY5ODYtNTlGNC1CQTlELTk1NjlEMjA2NDAyRA== |
| NoPermissionType |
string |
The reason for the authorization failure. |
ExplicitDeny |
| PolicyType |
string |
The type of the policy that denies the access. |
COST_OPTIMIZED |
Examples
Success response
JSON format
{
"Code": "200",
"Data": "https://dg-prod-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/dg3-pkgs/DBGateway_linux?Expires=170833****&OSSAccessKeyId=*************&Signature=****************",
"ErrorMsg": "Gateway exception, please launch local dg first",
"RequestId": "15D856B8-A95C-5DA5-B0FC-67246286EA7F",
"Success": true,
"AccessDeniedDetail": {
"AuthAction": "dms-dg:DownloadGatewayProgram",
"AuthPrincipalDisplayName": "23894333884425****",
"AuthPrincipalOwnerId": "1218522260143***",
"AuthPrincipalType": "SubUser",
"EncodedDiagnosticMessage": "AQEAAAAAaGXktUZBOTgwNkQwLTY5ODYtNTlGNC1CQTlELTk1NjlEMjA2NDAyRA==",
"NoPermissionType": "ExplicitDeny",
"PolicyType": "COST_OPTIMIZED"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.