Examples

GET /api/hosts/host1325/puppetclasses/1018350802
200
{
  "created_at": "2020-05-20 13:32:05 UTC",
  "updated_at": "2020-05-20 13:32:05 UTC",
  "id": 1018350802,
  "name": "class70",
  "module_name": "class70",
  "environments": [
    {
      "name": "environment165",
      "id": 687036939
    }
  ],
  "hostgroups": [],
  "smart_class_parameters": []
}

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

host_id
optional

ID of host

Validations:

  • Must be a String

hostgroup_id
optional

ID of host group

Validations:

  • Must be a String

environment_id
optional

ID of environment

Validations:

  • Must be a String

id
required

ID of Puppet class

Validations:

  • Must be a String