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:

  • 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
选填

Validations:

  • Must be a String

environment_id
选填

Validations:

  • Must be a String

dryrun
选填

Validations:

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

except
选填

自选用逗号分开包含 'new'、'updated' 或 'obsolete' 的字符串,用来限制导入的 Puppet 类别。

Validations:

  • Must be a String


GET /api/smart_proxies
List all smart_proxies.

参数

参数名字 描述
type
选填

filter by type

Validations:

  • Must be a String

page
选填

编页结果

Validations:

  • Must be a String

per_page
选填

每个请求中的条目数

Validations:

  • Must be a String


GET /api/smart_proxies/:id
Show a smart proxy.

参数

参数名字 描述
id
必填

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/smart_proxies
Create a smart proxy.

参数

参数名字 描述
smart_proxy
必填

Validations:

  • Must be a Hash

smart_proxy[name]
必填

Validations:

  • Must be a String

smart_proxy[url]
必填

Validations:

  • Must be a String


PUT /api/smart_proxies/:id
Update a smart proxy.

参数

参数名字 描述
id
必填

Validations:

  • Must be a String

smart_proxy
必填

Validations:

  • Must be a Hash

smart_proxy[name]
选填

Validations:

  • Must be a String

smart_proxy[url]
选填

Validations:

  • Must be a String


DELETE /api/smart_proxies/:id
Delete a smart_proxy.

参数

参数名字 描述
id
必填

Validations:

  • Must be a String


PUT /api/smart_proxies/:id/refresh
刷新智能代理服务器功能

参数

参数名字 描述
id
必填

Validations:

  • Must be a String