GET /api/omaha_reports
List all omaha reports

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Must be a Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Must be a Integer

search
选填

过滤结果

Validations:

  • Must be a String

order
选填

排序项和顺序,例如 ‘id DESC’

Validations:

  • Must be a String

page
选填

编页结果

Validations:

  • Must be a String

per_page
选填

每个请求中的条目数

Validations:

  • Must be a String


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

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Must be a Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Must be a Integer

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

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Must be a Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Must be a Integer

report
必填

Validations:

  • Must be a Hash

report[host]
必填

主机名或证书名称

Validations:

  • Must be a String

report[status]
必填

Omaha update status

Validations:

  • Must be one of: unknown, complete, downloading, downloaded, installed, instance_hold, error.

report[omaha_version]
必填

Omaha OS version using semantic versioning, e.g. 1590.0.0

Validations:

  • Must be a String

report[machineid]
必填

Unique machine id of the host

Validations:

  • Must be a String

report[omaha_group]
必填

The uuid if the channel that the host is attached to. Use alpha, beta or stable for built-in channels.

Validations:

  • Must be a String

report[oem]
选填 , 允许空值

OEM identifier

Validations:

  • Must be a String


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

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Must be a Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Must be a Integer

id
必填

Validations:

  • Must be a String


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

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Must be a Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Must be a Integer

host_id
必填

主机 ID

Validations:

  • Must be a String

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.