RunCommand
Execute commands across multiple ECS instances simultaneously using AlibabaCloud MCP Server, ideal for managing applications, marking resources, and automating tasks efficiently.
Instructions
批量在多台ECS实例上运行云助手命令,适用于需要同时管理多台ECS实例的场景,如应用程序管理和资源标记操作等。
Input Schema
Name | Required | Description | Default |
---|---|---|---|
Command | Yes | Content of the command executed on the ECS instance | |
CommandType | No | The type of command executed on the ECS instance, optional value:RunShellScript,RunPythonScript,RunPerlScript,RunBatScript,RunPowerShellScript | RunShellScript |
InstanceIds | Yes | AlibabaCloud ECS instance ID List | |
RegionId | No | AlibabaCloud region ID | cn-hangzhou |
Input Schema (JSON Schema)
{
"properties": {
"Command": {
"description": "Content of the command executed on the ECS instance",
"title": "Command",
"type": "string"
},
"CommandType": {
"default": "RunShellScript",
"description": "The type of command executed on the ECS instance, optional value:RunShellScript,RunPythonScript,RunPerlScript,RunBatScript,RunPowerShellScript",
"title": "Commandtype",
"type": "string"
},
"InstanceIds": {
"description": "AlibabaCloud ECS instance ID List",
"items": {
"type": "string"
},
"title": "Instanceids",
"type": "array"
},
"RegionId": {
"default": "cn-hangzhou",
"description": "AlibabaCloud region ID",
"title": "Regionid",
"type": "string"
}
},
"required": [
"InstanceIds",
"Command"
],
"title": "RunCommandArguments",
"type": "object"
}