API overview

Updated at:

API standards and multilingual preset SDKs

The OpenAPI of this product (eais/2019-06-24) uses the RPC signature style. We have encapsulated SDKs for common programming languages for developers. Developers can download the SDK to directly call this product's OpenAPI without worrying about technical details. If the existing SDK does not meet your needs, you can use the signature mechanism for self-signing integration. Since the details of self-signing are very complex, it may take around 5 business days. Therefore, we recommend joining our DingTalk service group (147535001692) and conducting signature integration under expert guidance.

Before using the API, you need to prepare your identity account and access key (AccessKey) to effectively access the API through client tools (such as SDK and CLI). For details, see Obtain an AccessKey.

Custom signature scenarios

If your business scenario has special requirements and you need to integrate the API through self-signing, we recommend consulting our technical support team first (DingTalk service group: 147535001692) to obtain professional guidance and ensure efficient integration.

Account and security preparation

Alibaba Cloud accounts have full administrative permissions over all resources. Once an AccessKey is compromised, all associated resources will be at risk of unauthorized access. To ensure security, it is recommended to create a RAM user with only API access permissions and configure its AccessKey, while configuring RAM policies based on the principle of least privilege (PoLP). Use the Alibaba Cloud account only in specific scenarios where Alibaba Cloud account permissions are explicitly required.

Region

API

Title

Description

DescribeRegions Query Regions List the Alibaba Cloud regions that are available to you.

Instance

API

Title

Description

CreateEaisEi (Recommended) Create an EAIS Instance You can invoke the CreateEaisEi API to create an Elastic Accelerated Computing Instances (EAIS) instance and attach it to a client instance (an ECS instance or an ECI instance) to flexibly provide the GPU resources required by your business workloads and reduce costs. Taking an ECS instance as an example, you can bind an EAIS instance to a non-GPU ECS instance to create a new type of GPU-accelerated instance. Compared with directly purchasing a GPU-accelerated instance, this approach enables elastic usage of GPU resources (you can attach, detach, or release EAIS instances as needed), effectively reducing your deployment and usage costs.
AttachEaisEi Attach an EAIS Instance After creating an Elastic Accelerated Computing Instances (EAIS) instance, you can call the AttachEaisEi API to attach the EAIS instance to a client instance (an ECS instance or an ECI instance) to provide it with GPU resources.
StartEaisEi Start an EAIS instance After you create an EAIS instance and attach it to a client instance, call the StartEaisEi API. This API starts an Elastic Accelerated Computing (EAIS) instance to provide GPU resources for your client, enabling flexible scaling of GPU resources.
StopEaisEi Stop an EAIS instance Call the StopEaisEi API to stop an EAIS instance when you no longer need Elastic Accelerated Computing Instances to provide GPU resources for your client instance. This action prevents resource waste and reduces costs.
DetachEaisEi Detach an EAIS instance For business flexibility, you can call the DetachEaisEi operation to detach an Elastic Accelerated Computing Instances (EAIS) instance from a client instance, such as an ECS or ECI instance. After the EAIS instance is detached, the client instance loses the acceleration benefits from the EAIS instance.
DeleteEaisEi Release an EAIS instance If you no longer need an Elastic Accelerated Computing Instance (EAIS), you can call the DeleteEaisEi operation to release the instance.
DescribeEais Query the list of EAIS instances Call this API to retrieve details about one or more Elastic Accelerated Computing Instances (EAIS). The response includes the EAIS instance ID, instance status, instance type, and any attached client instances—such as ECS instances or ECI instances.
CreateEaiJupyter Create a Jupyter EAIS Instance Creates an Elastic Accelerated Computing Instance (EAIS) with a notebook deployed.
StopEaiJupyter Stop a Jupyter EAIS instance Stop an Elastic Accelerated Computing Instances (EAIS) instance that has a Jupyter notebook deployed.
StartEaiJupyter Start a Jupyter EAIS instance Start a notebook on an Elastic Accelerated Computing Instance.
GetInstanceMetrics Query Monitoring Data of an EAIS Jupyter Instance Retrieves monitoring data for an EAIS Jupyter instance. The data includes GPU utilization, GPU memory utilization, CPU utilization, and memory utilization.
CreateEai Create an EAIS Instance You can invoke the CreateEai API to create an Elastic Accelerated Computing Instance (EAIS) and attach it to a client instance (an ECS instance or an ECI instance) to flexibly provide the GPU resources required by your business and reduce costs. Taking an ECS instance as an example, by attaching an EAIS to a non-GPU ECS instance, you can effectively create a new type of GPU-accelerated instance. Compared with directly purchasing a GPU-accelerated instance, this approach enables elastic usage of GPU resources—you can attach, detach, or release EAIS instances based on actual needs—thereby significantly lowering both deployment and usage costs.
AttachEai Attach an EAIS instance After creating an Elastic Accelerated Computing Instances (EAIS) instance, call the AttachEai API to attach the EAIS instance to a client instance—either an ECS instance or an ECI instance—to provide GPU resources.
DetachEai Detach an EAIS instance To improve business flexibility, you can call the DetachEai API to detach a target Elastic Accelerated Computing Instance (EAIS) from a client instance, such as an ECS or ECI instance. After detachment, the client instance no longer has access to the acceleration provided by the EAIS instance.
DeleteEai Release an EAIS instance If you no longer need an Elastic Accelerated Computing Instance (EAIS), you can call the DeleteEai API to release it.
CreateEaiEci Create an EAIS instance and attach it to a client instance Creates an Elastic Accelerated Computing Instance (EAIS) and a client Elastic Container Instance (ECI), and attaches the EAIS to the ECI instance.
CreateEaiEcs Create an EAIS instance and attach it to a client instance Creates an Elastic Accelerated Computing Instance and a client ECS instance, and then attaches the Elastic Accelerated Computing Instance to the ECS instance.
DeleteEaiAll Release an EAIS instance and its attached client instance Releases an Elastic Accelerated Computing Instance (EAIS) and its attached client instance. The client instance can be an Elastic Compute Service (ECS) instance or an Elastic Container Instance (ECI) instance.
ChangeResourceGroup Change Resource Group Modify the resource group for an Elastic Accelerated Computing Instance.

Tag

API

Title

Description

TagResources Create and Attach Tags Create and attach tags to specified EAIS resources.
UntagResources Detach and Delete Tags Detaches tags from one or more specified EAIS resources. When a tag is detached, it is automatically deleted if it is not attached to any other resources.
ListTagResources Query Tag List Queries the tags attached to one or more EAIS resources.