GET /api/omaha_reports
List all omaha reports

参数

参数名字 描述
search
选填

过滤结果

Validations:

  • Must be String

order
选填

结果排序

Validations:

  • Must be String

page
选填

页数

Validations:

  • Must be String

per_page
选填

每个请求中的条目数

Validations:

  • Must be String


GET /api/omaha_reports/:id
Show a omaha report

参数

参数名字 描述
id
必填

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


POST /api/omaha_reports
Create a omaha report

参数

参数名字 描述
report
必填

Validations:

  • Must be a Hash

report[host]
必填

主机名或证书名称

Validations:

  • Must be String

report[status]
必填

Omaha status, can be one of unknown, complete, downloading, downloaded, installed, instance_hold, and error

Validations:

  • Must be String

report[omaha_version]
必填

Omaha OS version

Validations:

  • Must be String


DELETE /api/omaha_reports/:id
Delete a omaha report

参数

参数名字 描述
id
必填

Validations:

  • Must be String


GET /api/hosts/:host_id/omaha_reports/last
显示主机的最新报告

参数

参数名字 描述
id
必填

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.