GetSdkDependencies

Updated at:

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

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:

  • typed: product-specific SDK mode.

  • generic: Common generalized calls mode.

Default value: typed.

Valid values:

  • typed :

    product-specific SDK mode.

  • generic :

    Common generalized calls mode.

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:

  • python :

    Python

  • csharp :

    C#

  • cpp :

    C++

  • java :

    Java

  • java-async :

    Java async.

  • go :

    Go

  • php :

    PHP

  • typescript :

    TypeScript

  • nodejs :

    Node.js

  • swift :

    Swift

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 XML block. For other languages, this is the corresponding package manager installation command.

\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.