This topic describes how to use Cloud Shell to call API operations.
Cloud Shell
Cloud Shell is a web-based command-line tool. You can use Cloud Shell on a web browser to run commands to manage Alibaba Cloud resources. When you start Cloud Shell, it automatically creates a Linux virtual machine (VM) free of charge. The VM is pre-installed with cloud management tools and system tools, including Python, Java, Node.js, Alibaba Cloud CLI, cURL, SSH, Kubectl, Fun, Terraform, Ansible, and Vim. You can use the tools and the code editor of Cloud Shell to manage cloud resources.
Check whether CLI is supported
Read the documentation for the corresponding Alibaba Cloud product.
Go to OpenAPI Explorer. Search for the API operation you want to call. Click API Debugging in the top navigation bar. On the page that appears, click the CLI Example tab. If sample commands are displayed, the current product supports CLI.
Usage method
Visit by link
Go to the Cloud Shell website.
Alibaba Cloud console
Log on to the Alibaba Cloud Console.
Click the icon in the top navigation bar to launch Cloud Shell.
After the environment initialization is completed, run the commands.
OpenAPI Explorer
Go to OpenAPI Explorer. Search for the API you want to call. Click API Debugging in the top navigation bar.
On the page that appears, click the CLI Example tab. Click the icon to the right of the example to launch Cloud Shell.
After the environment initialization is completed, execute the command.
Documentation
The documentation for some Alibaba Cloud products provides the entry to the command debugging feature. You can launch Cloud Shell from the documentation.