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

Sort field and order, eg. ‘id DESC’

Validations:

  • Must be a String

page
選填

頁數,從 1 開始

Validations:

  • Must be a number.

per_page
選填

每頁要傳回的結果數量

Validations:

  • Must be a number.

Search fields

Field name 類型 Possible values
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