Examples

GET /api/hosts/host318/puppetclasses/1018350796
200
{
  "created_at": "2018-11-15 19:02:55 UTC",
  "updated_at": "2018-11-15 19:02:55 UTC",
  "id": 1018350796,
  "name": "class9",
  "module_name": "class9",
  "environments": [
    {
      "name": "environment11",
      "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