This topic describes how to use Alibaba Cloud CLI version 3.0.25 or later to call the Resource Orchestration Service (ROS) API of the 20190910 version.
Install and configure Alibaba Cloud CLI
For more information about how to install and configure Alibaba Cloud CLI, see What is Alibaba Cloud CLI?
View the version of Alibaba Cloud CLI
aliyun version
Use Alibaba Cloud CLI to call the ROS API of the 20190910 version
ROS API operations of the 20190910 version are RPC-based. Parameters are passed together with GET requests.
After you install Alibaba Cloud CLI, enter aliyun ros to use the tool.
Run the aliyun ros command to view the help information about ROS:
aliyun ros --help
Run the following command to view the help information about an API operation:
# aliyun ros <ApiName> --help aliyun ros ListStacks --help
Run the following command to specify the format of an API call:
aliyun ros <ApiName> --parameter1 value1 --parameter2 value2 ...
For more information about the ROS API of the 20190910 version, see List of API operations by function.