GetSdkDependencies
Retrieves SDK information.
Operation description
Through RAM authorization or role assumption, cross-account or cross-RAM user query of call logs is supported. For more information about authorization, see Cross-account API error diagnostics authorization.
Try it now
Test
RAM authorization
Request syntax
GET /api/sdk/dependencies HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| callType |
string |
No |
The SDK call type. Valid values:
Default value: typed. Valid values:
|
typed |
| product |
string |
Yes |
The cloud product code. |
Ecs |
| version |
string |
No |
The OpenAPI version. |
2014-05-26 |
| language |
string |
Yes |
The SDK programming language, used to filter the returned SDK version information. Valid values:
|
java |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| code |
integer |
The business status code. A value of 0 indicates success. |
0 |
| data |
array<object> |
The list of SDK dependency information. Each item corresponds to the latest SDK dependency for a specific programming language. |
[{"packageName":"com.aliyun/ecs20140526","sdkVersion":"8.7.5","platform":"maven","install":" |
|
object |
The SDK dependency information for a single language. |
{"packageName":"com.aliyun/ecs20140526","sdkVersion":"8.7.5","platform":"maven","install":" |
|
| packageName |
string |
The SDK package name. |
com.aliyun/ecs20140526 |
| sdkVersion |
string |
The SDK package version. |
8.7.5 |
| platform |
string |
The SDK package management platform, such as github/maven/pypi/nuget/npm. |
maven |
| install |
string |
The SDK installation command. For Java, this is the Maven |
|
Examples
Success response
JSON format
{
"code": 0,
"data": [
{
"packageName": "com.aliyun/ecs20140526",
"sdkVersion": "8.7.5",
"platform": "maven",
"install": "\\n com.aliyun\\n ecs20140526\\n 8.7.5\\n"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParam.Product | Product name is required and cannot be null or empty. | |
| 400 | InvalidParam.ApiVersion | API version is required and cannot be null or empty. | |
| 400 | InvalidParam.Format | Product/version format is invalid. | |
| 400 | InvalidParam.Language | Language format is invalid. | |
| 502 | WorkbenchProxy.RequestFailed | Failed to get sdk info. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.