创建批量执行脚本任务

接口URL

/api/v1/resource/host/scripts/task

请求方式

POST

Content-Type

application/json

请求Body参数

{
    "IPList": [
        "10.2.7.119"
    ],
    "ScriptsList": [
        {
            "ID": "shell-034346e982344204",
            "Parameters": "p1"
        }
    ]
}
参数名 示例值 参数类型 是否必填 参数描述
IPList 10.2.7.119 Array 主机 IP 列表
ScriptsList - Array 脚本列表,按执行顺序排列
ScriptsList.ID shell-034346e982344204 String 脚本 ID
ScriptsList.Parameters p1 String 执行参数

认证方式

Bearer auth

成功响应示例

{
    "Data": null,
    "Success": true
}
参数名 示例值 参数类型 参数描述
Data null Null -
Success true Boolean 请求是否成功
© 2024 平凯星辰(北京)科技有限公司 all right reserved,powered by GitbookFile Modify: 2024-04-02 15:37:04

results matching ""

    No results matching ""