參數

參數名字 描述
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.

policy
必填

Validations:

  • Must be a Hash

policy[name]
選填

Policy name

Validations:

  • Must be String

policy[description]
選填 , 允許空值

Policy description

Validations:

  • Must be String

policy[scap_content_id]
選填

Policy SCAP content ID

Validations:

  • Must be Integer

policy[scap_content_profile_id]
選填

Policy SCAP content profile ID

Validations:

  • Must be Integer

policy[period]
選填 , 允許空值

Policy schedule period (weekly, monthly, custom)

Validations:

  • Must be String

policy[weekday]
選填 , 允許空值

Policy schedule weekday (only if period == “weekly”)

Validations:

  • Must be String

policy[day_of_month]
選填 , 允許空值

Policy schedule day of month (only if period == “monthly”)

Validations:

  • Must be Integer

policy[cron_line]
選填 , 允許空值

Policy schedule cron line (only if period == “custom”)

Validations:

  • Must be String

policy[hostgroup_ids]
選填 , 允許空值

Apply policy to host groups

Validations:

  • Must be an array of any type

policy[tailoring_file_id]
選填 , 允許空值

Tailoring file ID

Validations:

  • Must be Integer

policy[tailoring_file_profile_id]
選填 , 允許空值

Tailoring file profile ID

Validations:

  • Must be Integer

policy[location_ids]
選填 , 允許空值

將位置取代為特定 ID

Validations:

  • Must be an array of any type

policy[organization_ids]
選填 , 允許空值

將組織取代為特定 ID。

Validations:

  • Must be an array of any type