RunCommand
Execute commands across multiple ECS instances simultaneously for efficient management of applications and resource tagging using Alibaba Cloud MCP Server.
Instructions
批量在多台ECS实例上运行云助手命令,适用于需要同时管理多台ECS实例的场景,如应用程序管理和资源标记操作等。
Input Schema
Name | Required | Description | Default |
---|---|---|---|
Command | Yes | ECS实例上执行的命令内容 | |
CommandType | No | ECS实例上执行的命令类型,可选值: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": "ECS实例上执行的命令内容",
"title": "Command",
"type": "string"
},
"CommandType": {
"default": "RunShellScript",
"description": "ECS实例上执行的命令类型,可选值: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"
}