Examples

PUT /api/hostgroups/636252244-common
{
  "hostgroup": {}
}
200
{
  "hostgroup": {
    "name": "Common",
    "label": "Common",
    "id": 636252244,
    "operatingsystem_id": 309172073,
    "ancestry": null,
    "parameters": {
      "group1": "group1"
    },
    "environment_id": 334344675,
    "subnet_id": null,
    "domain_id": 22495316,
    "puppetclass_ids": [
      980190962
    ]
  }
}

Params

Param name Description
id
required

Value: Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.
hostgroup
required

Value: Must be a Hash
hostgroup[name]
optional

Value: Must be String
hostgroup[parent_id]
optional

Value: Must be a number.
hostgroup[environment_id]
optional

Value: Must be a number.
hostgroup[operatingsystem_id]
optional

Value: Must be a number.
hostgroup[architecture_id]
optional

Value: Must be a number.
hostgroup[medium_id]
optional

Value: Must be a number.
hostgroup[ptable_id]
optional

Value: Must be a number.
hostgroup[puppet_ca_proxy_id]
optional

Value: Must be a number.
hostgroup[subnet_id]
optional

Value: Must be a number.
hostgroup[domain_id]
optional

Value: Must be a number.
hostgroup[puppet_proxy_id]
optional

Value: Must be a number.