数据库安全服务 DBSS-查询数据库Agent列表:响应示例

时间:2024-10-21 18:38:50

响应示例

状态码: 200

成功

{
  "agents" : [ {
    "agent_id" : "X1miCo8BDdIO3rwSbhug",
    "agent_type" : "DB",
    "agent_os" : "LINUX64_X86",
    "agent_ip" : "2407:c080:11f0:23b:59d5:7ddf:5650:447b",
    "agent_nic" : "",
    "cpu_threshold" : 80,
    "mem_threshold" : 80,
    "db_name" : "",
    "status" : 1,
    "datacap_status" : 1,
    "agent_url" : "/opt/dbss_audit/audit_server/agent/",
    "universal" : false,
    "sha256" : "2619a4fc8ff3b3dda48c4347630bc8d7ece2e1f046eab7ac044e7d0df49886e3"
  } ]
}

状态码: 400

请求参数错误

{
  "error" : {
    "error_code" : "DBSS.XXXX",
    "error_msg" : "XXX"
  }
}

状态码: 500

服务器内部错误

{
  "error" : {
    "error_code" : "DBSS.XXXX",
    "error_msg" : "XXX"
  }
}
support.huaweicloud.com/api-dbss/ListAuditAgent.html