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 類別

參數

參數名字 描述
id
必填

Value:

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

Value:

Must be String

environment_id
選填

Value:

Must be String

dryrun
選填

Value:

Must be 'true' or 'false'

except
選填

選用性的逗號分隔字串,包含了「new」、「updated」或是「obsolete」,以用來限制匯入的 Puppet 類別


Value:

Must be String


GET /api/environments
List all environments.

參數

參數名字 描述
search
選填

Filter results


Value:

Must be String

order
選填

Sort results


Value:

Must be String

page
選填

編頁結果


Value:

Must be String

per_page
選填

每個請求的項目數量


Value:

Must be String


GET /api/environments/:id
Show an environment.

參數

參數名字 描述
id
必填

Value:

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
Create an environment.

參數

參數名字 描述
environment
必填

Value:

Must be a Hash

environment[name]
必填

Value:

Must be String


PUT /api/environments/:id
Update an environment.

參數

參數名字 描述
id
必填

Value:

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

environment
必填

Value:

Must be a Hash

environment[name]
選填

Value:

Must be String


DELETE /api/environments/:id
Delete an environment.

參數

參數名字 描述
id
必填

Value:

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