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
列出所有环境

GET /api/puppetclasses/:puppetclass_id/environments
列出 Puppet 分类的环境

GET /api/locations/:location_id/environments
列出每个位置的环境

GET /api/organizations/:organization_id/environments
列出每个机构的环境

参数

参数名字 描述
puppetclass_id
选填

Puppet 分类 ID


Value:

Must be String

search
选填

过滤结果


Value:

Must be String

order
选填

结果排序


Value:

Must be String

page
选填

页数


Value:

Must be String

per_page
选填

每个请求中的条目数


Value:

Must be String


GET /api/environments/:id
显示环境

参数

参数名字 描述
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
生成环境

参数

参数名字 描述
environment
必填

Value:

Must be a Hash

environment[name]
必填

Value:

Must be String


PUT /api/environments/:id
更新环境

参数

参数名字 描述
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
删除环境

参数

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