GET /api/hostgroups/:hostgroup_id/puppetclass_ids
列出主機群組的所有 Puppet 類別 ID

示例

GET /api/hostgroups/636252244/puppetclass_ids
200
{
  "results": [
    980190962
  ]
}

參數

參數名字 描述
location_id
選填

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
選填

Set the current organization context for the request

Validations:

  • Must be a Integer


POST /api/hostgroups/:hostgroup_id/puppetclass_ids
新增 Puppet 類別至主機群組

示例

POST /api/hostgroups/636252244/puppetclass_ids
{
  "puppetclass_id": 281110143,
  "hostgroup_class": {
    "puppetclass_id": 281110143
  }
}
200
{
  "hostgroup_id": 636252244,
  "puppetclass_id": 281110143
}

參數

參數名字 描述
location_id
選填

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
選填

Set the current organization context for the request

Validations:

  • Must be a Integer

hostgroup_id
必填

主機群組的 ID

Validations:

  • Must be a String

puppetclass_id
必填

Puppet 類別的 ID

Validations:

  • Must be a String


DELETE /api/hostgroups/:hostgroup_id/puppetclass_ids/:id
從主機群組移除一個 Puppet 類別

示例

DELETE /api/hostgroups/636252244/puppetclass_ids/980190962
{
  "hostgroup_class": {}
}
200
[

]

參數

參數名字 描述
location_id
選填

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
選填

Set the current organization context for the request

Validations:

  • Must be a Integer

hostgroup_id
必填

主機群組的 ID

Validations:

  • Must be a String

id
必填

Puppet 類別的 ID

Validations:

  • Must be a String