自愈脚本详情
开发中
GET
https://api.flashcat.cloud/api/n9e/busi-group/{gid}/task-tpl/{tpl_id}
最后修改时间:2025-03-09 10:37:00
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.flashcat.cloud/api/n9e/busi-group//task-tpl/' \
--header 'X-User-Token;'
响应示例响应示例
{
"dat": {
"hosts": [
"jiedeMacBook-Pro.local",
"oa",
"a098"
],
"tpl": {
"id": 3,
"group_id": 2,
"title": "自愈脚本2",
"batch": 2,
"tolerance": 1,
"timeout": 300,
"pause": "jiedeMacBook-Pro.local",
"script": "#!/bin/bash\n# e.g.\nexport PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:~/bin\nss -tln",
"args": "12,13",
"tags": [
"job=task"
],
"account": "root",
"create_at": 1741346426,
"create_by": "root",
"update_at": 1741346426,
"update_by": "root"
}
},
"err": ""
}
请求参数
Path 参数
gid
string
必需
tpl_id
string
自愈脚本任务id
返回响应
修改于 2025-03-09 10:37:00