Examples

GET /api/hosts/host1769/puppetclasses/1018350796
200
{
  "created_at": "2019-02-20 13:35:03 UTC",
  "updated_at": "2019-02-20 13:35:03 UTC",
  "id": 1018350796,
  "name": "class343",
  "module_name": "class343",
  "environments": [
    {
      "name": "environment284",
      "id": 687036938
    }
  ],
  "hostgroups": [],
  "smart_variables": [],
  "smart_class_parameters": []
}

Params

Param name Description
location_id
optional

Scope by locations

Validations:

  • Must be a Integer

organization_id
optional

Scope by organizations

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