ECS OpenAPI
For a complete overview of the OpenAPI calling process, along with related information on identity, authorization, and credentials, see What is an API?
Versions
Alibaba Cloud OpenAPI determines how to manage Alibaba Cloud service APIs based on their version number. For example, ECS currently supports the API version 2014-05-26
. It is important to note that 2014-05-26
indicates the API version number, not the date when the API was last updated. You are provided with the latest public API data in each version.
Version | Description |
API Reference (2014-05-26) | Recommended for use. It includes basic features such as ECS instances, images, snapshots, security groups, key pairs, and Elastic Block Storage (EBS). |
API Reference (EBS Advanced) 2021-07-30 | It includes advanced features such as EBS asynchronous replication, data insights, and dedicated block storage clusters. |
Endpoints
An endpoint is used to access Alibaba Cloud services. Select an endpoint based on the region of your resources to reduce latency. For example, the ECS public endpoint in the China (Hangzhou) region is ecs-cn-hangzhou.aliyuncs.com
, and the ECS Virtual Private Cloud (VPC) endpoint is ecs-vpc.cn-hangzhou.aliyuncs.com
.
For more information, see Endpoints.
Identities
By default, after you log on to the OpenAPI portal with your Alibaba Cloud account, the account is used to perform online debugging. An Alibaba Cloud account has permissions on all API operations. If you use an Alibaba Cloud account to call API operations, security risks may arise. We strongly recommend that you use a Resource Access Management (RAM) user to call API operations or perform routine O&M. The following table shows which user identities receive ECS support for accessing OpenAPI:
User identity | Support status |
Integration methods
Note
Alibaba Cloud SDKs can be easily integrated with your applications and cover the widest range of operations. We recommend that you use the SDKs associated with your applications to call API operations.
ECS supports managing cloud resources through Alibaba Cloud SDKs, CLI, and other methods. The following table lists the support status of each integration method:
Integration method | Support status |
Integration method | Support status |
Alibaba Cloud SDKs (recommended) | Supported |
Alibaba Cloud CLI | Supported |
Terraform | Supported |
Resource Orchestration Service (ROS) | Supported Note For a list of orchestrated resources, see ECS. For a quick guide about how to orchestrate ECS with ROS, see ROS reference.
|
Custom API encapsulation | Supported |
Usage notes
If an error occurs after calling an ECS API operation, verify the request parameters and their values based on the returned error code. For more information, see Public error codes.
You can also record the RequestID returned by the call or the SDK error information for self-diagnosis on the Alibaba Cloud OpenAPI Diagnostic Platform.