监控与采集相关接口/自动修复
POSTMonitoring起始版本 1.0同步需要认证
触发修复
立即触发修复策略执行特定代理。
调试可用性
在线调试
使用当前认证信息和示例参数提交 Mock 请求。
路径参数
请求参数
路径参数
policyIdString必填策略ID。
请求体字段
agentIdString必填代理ID。
示例: agent-001-xyz
响应状态
请求地址
POST/api/v1/monitoring/remediation-policies/{policyId}/trigger
/api/v1/monitoring/remediation-policies/{policyId}/trigger
请求示例
curl -X POST '{host}/api/v1/monitoring/remediation-policies/{policyId}/trigger' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"agentId":"agent-001-xyz"}'
响应示例
200{
"id": "exec-001-abc",
"policyId": "policy-001-abc",
"agentId": "agent-001-xyz",
"triggeredAt": "example",
"action": "restart_service",
"status": "succeeded",
"verifiedAt": "example",
"error": "connection refused"
}变更历史
此 API 暂无变更历史记录。
