GET /api/compliance/tailoring_files
List Tailoring files

参数

参数名字 描述
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
选填

页号,从 1 开始

Validations:

  • Must be a number.

per_page
选填

每页中显示的返回结果数

Validations:

  • Must be a number.

搜索字段

字段名 类型 可能的值
created_at datetime
filename string
location string
location_id integer
name string
organization string
organization_id integer

GET /api/compliance/tailoring_files/:id/xml
Download a Tailoring file as XML

参数

参数名字 描述
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.


GET /api/compliance/tailoring_files/:id
Show a Tailoring file

参数

参数名字 描述
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/compliance/tailoring_files
Create a Tailoring file

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Must be a Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Must be a Integer

tailoring_file
必填

Validations:

  • Must be a Hash

tailoring_file[name]
必填

Tailoring file name

Validations:

  • Must be a String

tailoring_file[scap_file]
必填

XML containing tailoring file

Validations:

  • Must be a String

tailoring_file[original_filename]
选填 , 允许空值

Original file name of the XML file

Validations:

  • Must be a String

tailoring_file[location_ids]
选填 , 允许空值

使用给定 id 替换位置

Validations:

  • Must be an array of any type

tailoring_file[organization_ids]
选填 , 允许空值

使用给定 id 替换机构

Validations:

  • Must be an array of any type


PUT /api/compliance/tailoring_files/:id
Update a Tailoring file

参数

参数名字 描述
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.

tailoring_file
必填

Validations:

  • Must be a Hash

tailoring_file[name]
选填

Tailoring file name

Validations:

  • Must be a String

tailoring_file[scap_file]
选填

XML containing tailoring file

Validations:

  • Must be a String

tailoring_file[original_filename]
选填 , 允许空值

Original file name of the XML file

Validations:

  • Must be a String

tailoring_file[location_ids]
选填 , 允许空值

使用给定 id 替换位置

Validations:

  • Must be an array of any type

tailoring_file[organization_ids]
选填 , 允许空值

使用给定 id 替换机构

Validations:

  • Must be an array of any type


DELETE /api/compliance/tailoring_files/:id
Deletes a Tailoring file

参数

参数名字 描述
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.