GET /api/hostgroups
列出所有主機群組

GET /api/puppetclasses/:puppetclass_id/hostgroups
列出 Puppet 類別的所有主機群組

GET /api/locations/:location_id/hostgroups
列出各個位置上的所有主機群組

GET /api/organizations/:organization_id/hostgroups
列出各個組織中的所有主機群組

參數

參數名字 描述
puppetclass_id
選填

Puppet 類別的 ID

Validations:

  • Must be String

search
選填

篩選結果

Validations:

  • Must be String

order
選填

排序結果

Validations:

  • Must be String

page
選填

編頁結果

Validations:

  • Must be String

per_page
選填

每個請求的項目數量

Validations:

  • Must be String


GET /api/hostgroups/:id
顯示主機群組

參數

參數名字 描述
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/hostgroups
建立主機群組

參數

參數名字 描述
hostgroup
必填

Validations:

  • Must be a Hash

hostgroup[name]
必填

Name of the host group

Validations:

  • Must be String

hostgroup[parent_id]
選填 , 允許空值

Parent ID of the host group

Validations:

  • Must be a number.

hostgroup[environment_id]
選填 , 允許空值

Environment ID

Validations:

  • Must be a number.

hostgroup[compute_profile_id]
選填 , 允許空值

Compute profile ID

Validations:

  • Must be a number.

hostgroup[operatingsystem_id]
選填 , 允許空值

Operating system ID

Validations:

  • Must be a number.

hostgroup[architecture_id]
選填 , 允許空值

Architecture ID

Validations:

  • Must be a number.

hostgroup[medium_id]
選填 , 允許空值

Media ID

Validations:

  • Must be a number.

hostgroup[ptable_id]
選填 , 允許空值

Partition table ID

Validations:

  • Must be a number.

hostgroup[puppet_ca_proxy_id]
選填 , 允許空值

Puppet CA proxy ID

Validations:

  • Must be a number.

hostgroup[subnet_id]
選填 , 允許空值

Subnet ID

Validations:

  • Must be a number.

hostgroup[domain_id]
選填 , 允許空值

Domain ID

Validations:

  • Must be a number.

hostgroup[realm_id]
選填 , 允許空值

Realm ID

Validations:

  • Must be a number.

hostgroup[puppet_proxy_id]
選填 , 允許空值

Puppet proxy ID

Validations:

  • Must be a number.

hostgroup[root_pass]
選填 , 允許空值

Root password on provisioned hosts

Validations:

  • Must be String


PUT /api/hostgroups/:id
更新主機群組

參數

參數名字 描述
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.

hostgroup
必填

Validations:

  • Must be a Hash

hostgroup[name]
選填

Name of the host group

Validations:

  • Must be String

hostgroup[parent_id]
選填 , 允許空值

Parent ID of the host group

Validations:

  • Must be a number.

hostgroup[environment_id]
選填 , 允許空值

Environment ID

Validations:

  • Must be a number.

hostgroup[compute_profile_id]
選填 , 允許空值

Compute profile ID

Validations:

  • Must be a number.

hostgroup[operatingsystem_id]
選填 , 允許空值

Operating system ID

Validations:

  • Must be a number.

hostgroup[architecture_id]
選填 , 允許空值

Architecture ID

Validations:

  • Must be a number.

hostgroup[medium_id]
選填 , 允許空值

Media ID

Validations:

  • Must be a number.

hostgroup[ptable_id]
選填 , 允許空值

Partition table ID

Validations:

  • Must be a number.

hostgroup[puppet_ca_proxy_id]
選填 , 允許空值

Puppet CA proxy ID

Validations:

  • Must be a number.

hostgroup[subnet_id]
選填 , 允許空值

Subnet ID

Validations:

  • Must be a number.

hostgroup[domain_id]
選填 , 允許空值

Domain ID

Validations:

  • Must be a number.

hostgroup[realm_id]
選填 , 允許空值

Realm ID

Validations:

  • Must be a number.

hostgroup[puppet_proxy_id]
選填 , 允許空值

Puppet proxy ID

Validations:

  • Must be a number.

hostgroup[root_pass]
選填 , 允許空值

Root password on provisioned hosts

Validations:

  • Must be String


DELETE /api/hostgroups/:id
刪除主機群組

參數

參數名字 描述
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/hostgroups/:id/clone
複製主機群組

參數

參數名字 描述
name
必填

Validations:

  • Must be String