Install and use Auto Scaling SDKs
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.
-
Go to OpenAPI Explorer.
The following table describes each step:
|
No. |
Actions |
|
① |
At the top of the OpenAPI Explorer page, click the icon |
|
② |
Select an API version. For example, select |
|
③ |
In the search box, enter the name of the api operation, and then click the operation from the search results. For example, enter |
|
④ |
Configure the request parameters for |
|
⑤ |
(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 |
|
⑧ |
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. |
-
In the upper-right corner of the SDK sample code area, click the
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.
and enter a service name in the search box. For example, enter Auto Scaling.