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

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

smart_proxy_id
選填

Validations:

  • String

environment_id
選填

Validations:

  • String

dryrun
選填

Validations:

  • boolean

except
選填

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

Validations:

  • String


GET /api/smart_proxies
列出所有智慧型代理伺服器

參數

參數名字 描述
location_id
選填

位置範圍

Validations:

  • Integer

organization_id
選填

組織範圍

Validations:

  • Integer

search
選填

篩選結果

Validations:

  • String

order
選填

排序結果

Validations:

  • String

page
選填

編頁結果

Validations:

  • String

per_page
選填

每個請求的項目數量

Validations:

  • String


GET /api/smart_proxies/:id
顯示智慧型代理伺服器

參數

參數名字 描述
id
必填

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..


POST /api/smart_proxies
建立智慧型代理伺服器

參數

參數名字 描述
smart_proxy
必填

Validations:

  • Hash

smart_proxy[name]
必填

Validations:

  • String

smart_proxy[url]
必填

Validations:

  • String

smart_proxy[location_ids]
選填 , 允許空值

將位置取代為特定 ID

Validations:

  • Must be an array of any type

smart_proxy[organization_ids]
選填 , 允許空值

將組織取代為特定 ID。

Validations:

  • Must be an array of any type

smart_proxy[download_policy]
選填

Download Policy of the capsule, must be one of immediate, on_demand, background, inherit

Validations:

  • String


PUT /api/smart_proxies/:id
更新智慧型代理伺服器

參數

參數名字 描述
id
必填

Validations:

  • String

smart_proxy
必填

Validations:

  • Hash

smart_proxy[name]
選填

Validations:

  • String

smart_proxy[url]
選填

Validations:

  • String

smart_proxy[location_ids]
選填 , 允許空值

將位置取代為特定 ID

Validations:

  • Must be an array of any type

smart_proxy[organization_ids]
選填 , 允許空值

將組織取代為特定 ID。

Validations:

  • Must be an array of any type

smart_proxy[download_policy]
選填

Download Policy of the capsule, must be one of immediate, on_demand, background, inherit

Validations:

  • String


DELETE /api/smart_proxies/:id
刪除智慧型代理伺服器

參數

參數名字 描述
id
必填

Validations:

  • String


PUT /api/smart_proxies/:id/refresh
更新智慧型代理伺服器的功能

參數

參數名字 描述
id
必填

Validations:

  • String