Use Alibaba Cloud CLI to manage ROS
Alibaba Cloud CLI is a command-line tool that allows you to call Alibaba Cloud API operations in a terminal to create, configure, and manage cloud resources. You can use Alibaba Cloud CLI to call ROS API operations to manage Resource Orchestration Service (ROS).
For more information about Alibaba Cloud CLI, see What is Alibaba Cloud CLI?
Use Alibaba Cloud CLI
Install and configure Alibaba Cloud CLI
-
Install Alibaba Cloud CLI.
Alibaba Cloud CLI supports Windows, Linux, and macOS. For installation instructions, see the following topics:
-
Configure Alibaba Cloud CLI.
Configure the credential, region, and language required to access ROS resources. For more information, see Identity credential types.
ImportantTo ensure the security of your Alibaba Cloud account, we recommend that you create a Resource Access Management (RAM) user that is used only for API calls and create an AccessKey pair for the RAM user. For more information, see Identity management.
Use Alibaba Cloud CLI to call ROS API operations
After you install and configure Alibaba Cloud CLI, run commands in the following syntax to call ROS API operations:
For more information about the command syntax, see Syntax.
aliyun ros <API operation name> --<Parameter 1 Value 1> --<Parameter 2 Value 2> ...
Usage examples
The following examples show how to call common ROS API operations by using Alibaba Cloud CLI.
-
The sample requests are for reference only. Modify the CLI commands based on your business requirements.
-
Only some ROS API operations are demonstrated here. For the full list, see List of API operations by function.
Create a custom template
Query a resource type
Create a stack
Query the information about a change set
Related documentation
You can use command-line options to modify the default behavior of commands or add functionality. For more information, see Command-line options.