POST /api/smart_proxies/:id/import_puppetclasses
Puppet プロキシーから Puppet クラスをインポート

POST /api/smart_proxies/:smart_proxy_id/environments/:id/import_puppetclasses
環境について Puppet プロキシーから Puppet クラスをインポート

POST /api/environments/:environment_id/smart_proxies/:id/import_puppetclasses
環境について Puppet プロキシーから Puppet クラスをインポート

Params

Param Name Description
id
Required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

smart_proxy_id
Optional

Validations:

  • Must be a String

environment_id
Optional

Validations:

  • Must be a String

dryrun
Optional

Validations:

  • Must be one of: true, false, 1, 0

except
Optional

インポートされた Puppe クラスを制限するために使用される '新規'、'更新済み'、または '旧版' のいずれかが含まれる、オプションのコンマ区切りの文字列 

Validations:

  • Must be a String


GET /api/environments
すべての環境を一覧表示

GET /api/puppetclasses/:puppetclass_id/environments
Puppet クラスの環境を一覧表示

GET /api/locations/:location_id/environments
ロケーションごとに環境を一覧表示

GET /api/organizations/:organization_id/environments
組織ごとに環境を一覧表示

Params

Param Name Description
puppetclass_id
Optional

Puppet クラスの ID

Validations:

  • Must be a String

location_id
Optional

ロケーション別のスコープ

Validations:

  • Must be a Integer

organization_id
Optional

組織別のスコープ

Validations:

  • Must be a Integer

search
Optional

結果のフィルター

Validations:

  • Must be a String

order
Optional

結果のソート

Validations:

  • Must be a String

page
Optional

結果のページネーション

Validations:

  • Must be a String

per_page
Optional

要求ごとのエントリー数

Validations:

  • Must be a String


GET /api/environments/:id
環境の表示

Params

Param Name Description
id
Required

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/environments
環境の作成

Params

Param Name Description
environment
Required

Validations:

  • Must be a Hash

environment[name]
Required

Validations:

  • Must be a String

environment[location_ids]
Optional , <span class="translation_missing" title="translation missing: ja.apipie.nil_allowed">Nil Allowed</span>

ロケーションを指定された ID に置き換えます

Validations:

  • Must be an array of any type

environment[organization_ids]
Optional , <span class="translation_missing" title="translation missing: ja.apipie.nil_allowed">Nil Allowed</span>

組織を指定された ID に置き換えます。

Validations:

  • Must be an array of any type


PUT /api/environments/:id
環境の更新

Params

Param Name Description
id
Required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

environment
Required

Validations:

  • Must be a Hash

environment[name]
Optional

Validations:

  • Must be a String

environment[location_ids]
Optional , <span class="translation_missing" title="translation missing: ja.apipie.nil_allowed">Nil Allowed</span>

ロケーションを指定された ID に置き換えます

Validations:

  • Must be an array of any type

environment[organization_ids]
Optional , <span class="translation_missing" title="translation missing: ja.apipie.nil_allowed">Nil Allowed</span>

組織を指定された ID に置き換えます。

Validations:

  • Must be an array of any type


DELETE /api/environments/:id
環境の削除

Params

Param Name Description
id
Required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.