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
選填

排序結果

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.