GET /api/config_groups
配置组列表

参数

参数名字 描述
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/config_groups/:id
显示配置组

参数

参数名字 描述
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/config_groups
创建配置组

参数

参数名字 描述
config_group
必填

Validations:

  • Must be a Hash

config_group[name]
必填

Validations:

  • Must be a String

config_group[puppetclass_ids]
选填 , 允许空值

Validations:

  • Must be an array of any type


PUT /api/config_groups/:id
更新配置组

参数

参数名字 描述
id
必填

Validations:

  • Must be a String

config_group
必填

Validations:

  • Must be a Hash

config_group[name]
选填

Validations:

  • Must be a String

config_group[puppetclass_ids]
选填 , 允许空值

Validations:

  • Must be an array of any type


DELETE /api/config_groups/:id
删除配置组

参数

参数名字 描述
id
必填

Validations:

  • Must be a String