POST /api/smart_proxies/:id/import_puppetclasses
Import puppet classes from puppet proxy.

POST /api/smart_proxies/:smart_proxy_id/environments/:id/import_puppetclasses
Import puppet classes from puppet proxy for an environment

POST /api/environments/:environment_id/smart_proxies/:id/import_puppetclasses
Import puppet classes from puppet proxy for an environment

参数

参数名字 描述
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 String

environment_id
选填

Validations:

  • Must be String

dryrun
选填

Validations:

  • Must be 'true' or 'false' or '1' or '0'

except
选填

Optional comma-delimited string containing either 'new', 'updated', or 'obsolete' that is used to limit the imported Puppet classes

Validations:

  • Must be String


GET /api/smart_proxies
List all smart proxies

参数

参数名字 描述
location_id
选填

Scope by locations

Validations:

  • Must be Integer

organization_id
选填

Scope by organizations

Validations:

  • Must be Integer

search
选填

过滤结果

Validations:

  • Must be String

order
选填

结果排序

Validations:

  • Must be String

page
选填

页数

Validations:

  • Must be String

per_page
选填

每个请求中的条目数

Validations:

  • Must be 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 String

smart_proxy[url]
必填

Validations:

  • Must be String

smart_proxy[location_ids]
选填 , 允许空值

REPLACE locations with given ids

Validations:

  • Must be an array of any type

smart_proxy[organization_ids]
选填 , 允许空值

REPLACE organizations with given ids.

Validations:

  • Must be an array of any type


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

参数

参数名字 描述
id
必填

Validations:

  • Must be String

smart_proxy
必填

Validations:

  • Must be a Hash

smart_proxy[name]
选填

Validations:

  • Must be String

smart_proxy[url]
选填

Validations:

  • Must be String

smart_proxy[location_ids]
选填 , 允许空值

REPLACE locations with given ids

Validations:

  • Must be an array of any type

smart_proxy[organization_ids]
选填 , 允许空值

REPLACE organizations with given ids.

Validations:

  • Must be an array of any type


DELETE /api/smart_proxies/:id
Delete a smart proxy

参数

参数名字 描述
id
必填

Validations:

  • Must be String


PUT /api/smart_proxies/:id/refresh
Refresh smart proxy features

参数

参数名字 描述
id
必填

Validations:

  • Must be String