Retrieves SDK dependency information.
Operation description
You can use RAM authorization or role assumption to query call logs across multiple RAM users or Alibaba Cloud accounts. For details about authorization methods, see Cross-account API Error Diagnosis 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 are |
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. If specified, the response contains only dependencies for that language. |
java |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| code |
integer |
The service status code. A value of |
0 |
| data |
array<object> |
An array of objects containing the SDK dependency information. Each object represents the latest dependency for a specific language. |
[{"packageName":"com.aliyun/ecs20140526","sdkVersion":"8.7.5","platform":"maven","install":" |
|
object |
Details of a single SDK dependency. |
{"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. Examples include |
maven |
| install |
string |
The command or configuration for installing the SDK. For Java, this is a 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.