示例

POST /api/config_reports
{
  "config_report": {}
}
403
{
  "error": {
    "message": "Access denied",
    "details": "Missing one of the required permissions: upload_config_reports"
  }
}

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Must be a Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Must be a Integer

config_report
必填

Validations:

  • Must be a Hash

config_report[host]
必填

主机名或证书名称

Validations:

  • Must be a String

config_report[reported_at]
必填

报告的 UTC 时间

Validations:

  • Must be a String

config_report[status]
必填

状态类型哈希总计

Validations:

  • Must be a Hash

config_report[metrics]
必填

报告指标哈希,可只为 {}

Validations:

  • Must be a Hash

config_report[logs]
选填 , 允许空值

日志哈希的自选阵列

Validations:

  • Must be an array of any type