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