The Elastic Compute Service (ECS) SDK is a comprehensive dependency package that streamlines the development process. It encapsulates underlying API calls, enabling developers to easily manage ECS resources such as instances, security groups, and images. The ECS SDK handles complex tasks such as network communication, request formatting, and response parsing internally. It supports multiple programming languages and allows developers to focus on business logic rather than underlying infrastructure.
SDK versions
The ECS SDK includes the SDK V2.0 and the SDK V1.0. The SDK V2.0, as the latest version, supports a wider range of programming languages, addresses the thread safety issue found in the SDK V1.0, and enhances robustness and usability, thereby offering developers an improved development experience.
The SDK V2.0 is recommended. If you are currently using the SDK V1.0, consider upgrading to the SDK V2.0. For more information, see Upgrade Alibaba Cloud SDK V1.0 to V2.0.
SDK download
The ECS SDK V2.0 supports multiple programming languages. You can view the installation methods on the OpenAPI portal or view the source code and installation guides on GitHub. For each programming language, we recommend that you use mainstream dependency management tools for installation.
Language | SDK Installation Method | GitHub Address | Quick Start |
Java | |||
Go | |||
Python | |||
Node.js | |||
C# | / | ||
PHP | |||
C++ | / | ||
Swift | / |
Examples
The following examples demonstrate how to call the DescribeInstances
API operation with the ECS SDK to query detailed information about ECS instances.