Install and use Auto Scaling SDKs

Updated at:
Copy as MD

Integrating an SDK lets you call api operations directly. The SDKs handle tasks such as request signing, timeouts, and retries, and return structured response objects.

Install Auto Scaling SDKs

To install and integrate the Auto Scaling SDK for your preferred language, visit the SDK Center.

On this page, select your target language, such as Java (Async), from the All languages list. This page lists the environment requirements, release address, and source code repository. In the Installation Method section, select a build tool such as Apache Maven, Gradle Groovy DSL, or Gradle Kotlin DSL to get its dependency configuration.

Use Auto Scaling SDKs

For information about Alibaba Cloud SDK usage guidelines and request structures, see Get started with Alibaba Cloud Darabonba SDK for Java.

Generate SDK sample code for an API

You can use Alibaba Cloud OpenAPI Explorer to call Auto Scaling api operations and automatically generate SDK sample code.

  1. Go to OpenAPI Explorer.

The following table describes each step:

No.

Actions

At the top of the OpenAPI Explorer page, click the iconimage.png and enter a service name in the search box. For example, enter Auto Scaling.

Select an API version. For example, select 2022-02-22.

In the search box, enter the name of the api operation, and then click the operation from the search results.

For example, enter ModifyScalingGroup.

Configure the request parameters for ModifyScalingGroup.

(Optional) Click Initiate Call. Calling a billable api operation may incur charges.

At the top of the right-side panel, click the SDK Sample Code tab.

Select an SDK version and language as needed.

For example, select V2.0 for the SDK version and Java for the language.

Download the complete sample project.

Copy the generated code sample and integrate it into your project.

View the SDK information to get the dependency installation command and release notes.

Note
  • In the upper-right corner of the SDK sample code area, click the 复制..png icon to copy the SDK sample code.

  • In the SDK sample code area, click Download Project to download the complete SDK project.

For more information about automatically generating SDK sample code, see Automatically generate SDK sample code.