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 类别

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Integer

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:

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

except
选填

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

Validations:

  • String


GET /api/smart_proxies
列出所有智能代理服务器

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Integer

search
选填

过滤结果

Validations:

  • String

order
选填

Sort field and order, eg. ‘id DESC’

Validations:

  • String

page
选填

编页结果

Validations:

  • String

per_page
选填

每个请求中的条目数

Validations:

  • String

搜索字段

字段名 类型 可能的值
feature string
location string
location_id integer
name string
organization string
organization_id integer
url string

GET /api/smart_proxies/:id
显示智能代理服务器

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Integer

id
必填

Validations:

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


POST /api/smart_proxies
创建智能代理服务器

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Integer

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
更新智能代理服务器

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Integer

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
删除智能代理服务器

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Integer

id
必填

Validations:

  • String


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

参数

参数名字 描述
location_id
选填

根据位置界定的范围

Validations:

  • Integer

organization_id
选填

根据机构界定的范围

Validations:

  • Integer

id
必填

Validations:

  • String