All Products
Search
Document Center

Auto Scaling:Install and use Auto Scaling SDKs

Last Updated:Sep 30, 2024

Alibaba Cloud provides Auto Scaling SDKs for Java, TypeScript, Go, PHP, Python, C#, C++, and Swift. You can integrate Auto Scaling SDKs into your applications to directly call API operations. Auto Scaling SDKs encapsulate information, such as the signature logic, timeout mechanism, and retry mechanism, and return structured response objects based on the specifications.

Install Auto Scaling SDKs

For information about how to install and integrate Auto Scaling SDKs for different programming languages, see SDK Center.

2024-06-26_11-37-55.png

Use Auto Scaling SDKs

For information about the request structure and how to use an Alibaba Cloud SDK, see Get started with Alibaba Cloud Darabonba SDK for Java.

Automatically generate SDK sample code for an API operation

You can use Alibaba Cloud OpenAPI Portal to call Auto Scaling API operations to automatically generate SDK sample code.

  1. Click OpenAPI Explorer.

  2. Perform the steps shown in the following figure to generate SDK sample code.

The following table describes the specific operations of each step in the preceding figure.

No.

Action

On the OpenAPI Explorer homepage, move the pointer over Cloud Products in the top navigation bar. Then, enter the name of the cloud service that you want to manage in the search box image.png. In this example, enter Auto Scaling.

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

Enter the name of the API operation that you want to call in the search box. Then, click the API operation in the search results.

In this example, enter ModifyScalingGroup.

Configure the request parameters of the ModifyScalingGroup operation.

(Optional) Click Initiate Call. You may be charged based on the billing rules of the API operation.

In the upper part of the rightmost column, click the SDK Sample Code tab.

Select the SDK version and programming language based on your business requirements.

In this example, V2.0 is selected as the SDK version and Java is selected as the programming language.

Download the complete sample code for a sample SDK project.

Copy the sample code that is generated in the code editor.

View the SDK installation information, including the installation command and release report.

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

  • In the upper part of the SDK Sample Code tab, you can click Download Project to download the complete sample code for the sample SDK project.

For information about how to automatically generate SDK sample code, see Automatically generate SDK sample code.