应用运维管理 AOM-快速创建并执行脚本:请求示例

时间:2023-11-01 16:21:41

请求示例

快速执行脚本可指定脚本类型、执行用户、名称为 name的脚本、脚本参数 script_args,指定的执行机器列表 ecs_id_list来快速下发脚本在对应的机器上。

https://{Endpoint}/v1/{project_id}/cms/fast-execute-script{  "script_type" : "SHELL",  "cmd_user" : "root",  "name" : "12avvvs",  "script_args" : "arg1 arg2",  "ecs_id_list" : "[\"a6c58afe6d4b4017b12e8205159f1045\",\"608856d0e88a444ca4a6e2afa9120685\"]",  "script_content" : "cd / && ls",  "project_id" : "2axxx75bxxxx"}
support.huaweicloud.com/api-aom/CreateFastExecuteScript.html