These API calls are related to nested parameters for a host, domain, subnet, host group, operating system. If you are looking for <a href=“common_parameters.html”>global parameters</a>, go to <a href=“common_parameters.html”>this link</a>.


GET /api/hosts/:host_id/parameters
列出主机的所有参数

GET /api/hostgroups/:hostgroup_id/parameters
列出主机组中的所有参数

GET /api/domains/:domain_id/parameters
列出域的所有参数

GET /api/operatingsystems/:operatingsystem_id/parameters
列出操作系统的所有参数

GET /api/locations/:location_id/parameters
列出位置的所有参数

GET /api/organizations/:organization_id/parameters
列出机构中的所有参数

GET /api/subnets/:subnet_id/parameters
列出子网的所有参数

参数

参数名字 描述
host_id
选填

主机 ID

Validations:

  • Must be a String

hostgroup_id
选填

主机组 ID

Validations:

  • Must be a String

domain_id
选填

域 ID

Validations:

  • Must be a String

operatingsystem_id
选填

操作系统 ID

Validations:

  • Must be a String

location_id
选填

位置 ID

Validations:

  • Must be a String

organization_id
选填

机构 ID

Validations:

  • Must be a String

subnet_id
选填

子网 ID

Validations:

  • Must be a String

show_hidden
选填

Display hidden values

Validations:

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

search
选填

过滤结果

Validations:

  • Must be a String

order
选填

结果排序

Validations:

  • Must be a String

page
选填

编页结果

Validations:

  • Must be a String

per_page
选填

每个请求中的条目数

Validations:

  • Must be a String


GET /api/hosts/:host_id/parameters/:id
显示主机的嵌入参数

GET /api/hostgroups/:hostgroup_id/parameters/:id
显示主机组的嵌入参数

GET /api/domains/:domain_id/parameters/:id
显示域的嵌入参数

GET /api/operatingsystems/:operatingsystem_id/parameters/:id
显示操作系统的嵌入参数

GET /api/locations/:location_id/parameters/:id
显示位置的嵌入参数

GET /api/organizations/:organization_id/parameters/:id
显示机构的嵌入参数

GET /api/subnets/:subnet_id/parameters/:id
显示子网的嵌入参数

参数

参数名字 描述
host_id
选填

主机 ID

Validations:

  • Must be a String

hostgroup_id
选填

主机组 ID

Validations:

  • Must be a String

domain_id
选填

域 ID

Validations:

  • Must be a String

operatingsystem_id
选填

操作系统 ID

Validations:

  • Must be a String

location_id
选填

位置 ID

Validations:

  • Must be a String

organization_id
选填

机构 ID

Validations:

  • Must be a String

subnet_id
选填

子网 ID

Validations:

  • Must be a String

id
必填

参数 ID

Validations:

  • Must be a String

show_hidden
选填

Display hidden values

Validations:

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


POST /api/hosts/:host_id/parameters
为主机生成嵌入的参数

POST /api/hostgroups/:hostgroup_id/parameters
为主机组创建成嵌入的参数

POST /api/domains/:domain_id/parameters
为域创建嵌入的参数

POST /api/operatingsystems/:operatingsystem_id/parameters
为操作系统创建嵌入的参数

POST /api/locations/:location_id/parameters
为位置创建嵌入的参数

POST /api/organizations/:organization_id/parameters
为机构创建嵌入的参数

POST /api/subnets/:subnet_id/parameters
为子网创建嵌入参数

参数

参数名字 描述
host_id
选填

主机 ID

Validations:

  • Must be a String

hostgroup_id
选填

主机组 ID

Validations:

  • Must be a String

domain_id
选填

域 ID

Validations:

  • Must be a String

operatingsystem_id
选填

操作系统 ID

Validations:

  • Must be a String

location_id
选填

位置 ID

Validations:

  • Must be a String

organization_id
选填

机构 ID

Validations:

  • Must be a String

subnet_id
选填

子网 ID

Validations:

  • Must be a String

parameter
必填

Validations:

  • Must be a Hash

parameter[name]
必填

Validations:

  • Must be a String

parameter[value]
必填

Validations:

  • Must be a String


PUT /api/hosts/:host_id/parameters/:id
更新主机的嵌入参数

PUT /api/hostgroups/:hostgroup_id/parameters/:id
更新主机组的嵌入参数

PUT /api/domains/:domain_id/parameters/:id
更新域的嵌入参数

PUT /api/operatingsystems/:operatingsystem_id/parameters/:id
更新操作系统的嵌入参数

PUT /api/locations/:location_id/parameters/:id
更新位置的嵌入参数

PUT /api/organizations/:organization_id/parameters/:id
更新机构的嵌入参数

PUT /api/subnets/:subnet_id/parameters/:id
更新子网的嵌入参数

参数

参数名字 描述
host_id
选填

主机 ID

Validations:

  • Must be a String

hostgroup_id
选填

主机组 ID

Validations:

  • Must be a String

domain_id
选填

域 ID

Validations:

  • Must be a String

operatingsystem_id
选填

操作系统 ID

Validations:

  • Must be a String

location_id
选填

位置 ID

Validations:

  • Must be a String

organization_id
选填

机构 ID

Validations:

  • Must be a String

id
必填

参数 ID

Validations:

  • Must be a String

subnet_id
选填

子网 ID

Validations:

  • Must be a String

parameter
必填

Validations:

  • Must be a Hash

parameter[name]
选填

Validations:

  • Must be a String

parameter[value]
选填

Validations:

  • Must be a String


DELETE /api/hosts/:host_id/parameters/:id
删除主机的嵌入参数

DELETE /api/hostgroups/:hostgroup_id/parameters/:id
删除主机组的嵌入参数

DELETE /api/domains/:domain_id/parameters/:id
删除域的嵌入参数

DELETE /api/operatingsystems/:operatingsystem_id/parameters/:id
删除操作系统的嵌入参数

DELETE /api/locations/:location_id/parameters/:id
删除位置的嵌入参数

DELETE /api/organizations/:organization_id/parameters/:id
删除机构的嵌入参数

DELETE /api/subnets/:subnet_id/parameters/:id
删除子网的嵌入参数

参数

参数名字 描述
host_id
选填

主机 ID

Validations:

  • Must be a String

hostgroup_id
选填

主机组 ID

Validations:

  • Must be a String

domain_id
选填

域 ID

Validations:

  • Must be a String

operatingsystem_id
选填

操作系统 ID

Validations:

  • Must be a String

location_id
选填

位置 ID

Validations:

  • Must be a String

organization_id
选填

机构 ID

Validations:

  • Must be a String

id
必填

参数 ID

Validations:

  • Must be a String

subnet_id
选填

子网 ID

Validations:

  • Must be a String


DELETE /api/hosts/:host_id/parameters
删除主机的所有嵌入参数

DELETE /api/hostgroups/:hostgroup_id/parameters
删除主机组的所有嵌入参数

DELETE /api/domains/:domain_id/parameters
删除域的所有嵌入参数

DELETE /api/operatingsystems/:operatingsystem_id/parameters
删除操作系统的所有嵌入参数

DELETE /api/locations/:location_id/parameters
删除位置的所有嵌入参数

DELETE /api/organizations/:organization_id/parameters
删除域的所有嵌入参数

DELETE /api/subnets/:subnet_id/parameters
删除子网的所有嵌入参数

参数

参数名字 描述
host_id
选填

主机 ID

Validations:

  • Must be a String

hostgroup_id
选填

主机组 ID

Validations:

  • Must be a String

domain_id
选填

域 ID

Validations:

  • Must be a String

operatingsystem_id
选填

操作系统 ID

Validations:

  • Must be a String

location_id
选填

位置 ID

Validations:

  • Must be a String

organization_id
选填

机构 ID

Validations:

  • Must be a String

subnet_id
选填

子网 ID

Validations:

  • Must be a String