GetSdkDependencies

更新时间:
复制 MD 格式

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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 for the product-specific SDK mode and generic for the generic call mode. The default is typed.

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 indicates a successful request.

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 github, maven, pypi, nuget, and npm.

maven

install

string

The command or configuration for installing the SDK. For Java, this is a Maven XML block. For other languages, it is the installation command for the appropriate package manager.

\n com.aliyun\n ecs20140526\n 8.7.5\n

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.