GET /api/compliance/tailoring_files
列出定制文件

参数

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

搜索字段

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

GET /api/compliance/tailoring_files/:id/xml
将一个 Tailoring 文件下载为 XML

参数

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


GET /api/compliance/tailoring_files/: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.


POST /api/compliance/tailoring_files
创建定制文件

参数

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

tailoring_file
必填

Validations:

  • Must be a Hash

tailoring_file[name]
必填

定制文件名称

Validations:

  • Must be a String

tailoring_file[scap_file]
必填

包含定制文件的 XML

Validations:

  • Must be a String

tailoring_file[original_filename]
选填 , 允许空值

XML 文件的原文件名称

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
更新定制文件

参数

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

tailoring_file
必填

Validations:

  • Must be a Hash

tailoring_file[name]
选填

定制文件名称

Validations:

  • Must be a String

tailoring_file[scap_file]
选填

包含定制文件的 XML

Validations:

  • Must be a String

tailoring_file[original_filename]
选填 , 允许空值

XML 文件的原文件名称

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
删除定制文件

参数

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