Alibaba Cloud Command Line Interface (CLI) is a tool to manage Alibaba Cloud resources. It is written in Go and built based on Alibaba Cloud APIs. After downloading and configuring this tool, you can use multiple Alibaba Cloud products by using command lines.

For more information about the introduction and installation of the Alibaba Cloud CLI, see Alibaba Cloud Command Line Interface.

Container Service APIs are RESTful APIs. Currently, Container Service supports two scheduling modes: swarm and Kubernetes. The list of APIs that Container Service supports is as follows.

Note For more information about the APIs that Alibaba Cloud Container Service supports, see Container Service API reference.
API Explanations Scope
View all clusters View all the clusters you have created in Container Service, including swarm clusters and Kubernetes clusters. Swarm clusters and Kubernetes clusters.
View a cluster View the cluster details according to the cluster ID. Swarm clusters and Kubernetes clusters.
Create a cluster Create a cluster with a specified number of new nodes. Swarm clusters and Kubernetes clusters.
Expand a cluster Increase the number of nodes in the cluster. Swarm clusters and Kubernetes clusters.
Add existing ECS instances to a cluster Add existing Elastic Compute Service (ECS) instances to a cluster. Swarm clusters and Kubernetes clusters.
Remove a node from a cluster Remove a node from a cluster according to the cluster ID and node IP address. Swarm clusters.
View image list View the list of supported images in the currently supported regions. Swarm clusters.
Reset a node Reset a node in the cluster. Swarm clusters.
Delete a cluster Delete a cluster based on the cluster ID, and release all node resources of the cluster. Swarm clusters and Kubernetes clusters.
Obtain cluster certificate Obtain the cluster certificate according to the cluster ID. Swarm clusters.