All Products
Search
Document Center

Elastic Compute Service:ECS SDK V2.0 Overview

Last Updated:Oct 15, 2024

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.

Note

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

Use Alibaba Cloud SDKs for Java in an IDE

Go

SDK for Go

alibabacloud-go/ecs-20140526

Use the Alibaba Cloud SDKs for Go in an IDE

Python

SDK for Python

alibabacloud-python-sdk/ecs-20140526

Use Alibaba Cloud SDKs for Python in an IDE

Node.js

SDK for TypeScript

alibabacloud-typescript-sdk/ecs-20140526

Use Alibaba Cloud SDKs for Node.js in an IDE

C#

SDK for C#

alibabacloud-csharp-sdk/ecs-20140526

/

PHP

alibabacloud-sdk-php/ecs-20140526

Use Alibaba Cloud SDKs for PHP in an IDE

C++

SDK for C++

alibabacloud-sdk-cpp/ecs-20140526

/

Swift

SDK for Swift

alibabacloud-sdk-swift/ecs-20140526

/

Examples

The following examples demonstrate how to call the DescribeInstances API operation with the ECS SDK to query detailed information about ECS instances.