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 类别

参数

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

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
选填

排序项和顺序,例如 ‘id DESC’

Validations:

  • Must be a String

page
选填

页号,从 1 开始

Validations:

  • Must be a number.

per_page
选填

每页中显示的返回结果数

Validations:

  • Must be a number.

搜索字段

字段名 类型 可能的值
config_group
environment
host string
hostgroup
key
location
name
organization

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 类别

参数

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

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 类别

参数

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

puppetclass
必填

Validations:

  • Must be a Hash

puppetclass[name]
必填

Validations:

  • Must be a String


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

参数

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

puppetclass
必填

Validations:

  • Must be a Hash

puppetclass[name]
选填

Validations:

  • Must be a String


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

参数

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