GET /api/audits
列出所有审核

GET /api/hosts/:host_id/audits
列出给定主机的所有审核

参数

参数名字 描述
location_id
选填

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
选填

Set the current organization context for the request

Validations:

  • Must be a Integer

search
选填

过滤结果

Validations:

  • Must be a String

order
选填

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

Validations:

  • Must be a String

page
选填

页号,从 1 开始

Validations:

  • Must be a number.

per_page
选填

每页中显示的返回结果数

Validations:

  • Must be a number.

搜索字段

字段名 类型 可能的值
action
auditable_id
changes
comment
host
hostgroup
hostgroup_title
id
interface_fqdn
interface_ip
interface_mac
location
location_id
organization
organization_id
os
os_title
parameter
partition_table
provisioning_template
puppetclass
remote_address
request_uuid
setting
time
type operatingsystem, setting, role, user, auth_source, compute_resource, host, interface, location, organization, os, override_value, parameter, partition_table, smart_class_parameter, subnet, provisioning_template
user
username

GET /api/audits/:id
显示审核

参数

参数名字 描述
location_id
选填

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
选填

Set the current organization context for the request

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.