GET /api/puppetclasses
列出所有 Puppet 类别

GET /api/hosts/:host_id/puppetclasses
列出主机的所有 Puppet 类别

GET /api/hostgroups/:hostgroup_id/puppetclasses
列出主机组的所有 Puppet 类别

GET /api/environments/:environment_id/puppetclasses
列出环境的所有 Puppet 类别

参数

参数名字 描述
host_id
选填

主机 ID

Validations:

  • Must be a String

hostgroup_id
选填

主机组 ID

Validations:

  • Must be a String

environment_id
选填

环境 ID

Validations:

  • Must be a String

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/puppetclasses/:id
显示 Puppet 类别

GET /api/hosts/:host_id/puppetclasses/:id
显示主机的 Puppet 类别

GET /api/hostgroups/:hostgroup_id/puppetclasses/:id
显示主机组的 Puppet 类别

GET /api/environments/:environment_id/puppetclasses/:id
显示环境的 Puppet 类别

参数

参数名字 描述
host_id
选填

主机 ID

Validations:

  • Must be a String

hostgroup_id
选填

主机组 ID

Validations:

  • Must be a String

environment_id
选填

环境 ID

Validations:

  • Must be a String

id
必填

Puppet 类别 ID

Validations:

  • Must be a String


POST /api/puppetclasses
创建 Puppet 类别

参数

参数名字 描述
puppetclass
必填

Validations:

  • Must be a Hash

puppetclass[name]
必填

Validations:

  • Must be a String


PUT /api/puppetclasses/:id
更新 Puppet 类别

参数

参数名字 描述
id
必填

Validations:

  • Must be a String

puppetclass
必填

Validations:

  • Must be a Hash

puppetclass[name]
选填

Validations:

  • Must be a String


DELETE /api/puppetclasses/:id
删除 Puppet 类别

参数

参数名字 描述
id
必填

Validations:

  • Must be a String