Examples

GET /api/hosts/host2115/puppetclasses/1018350796
200
{
  "created_at": "2021-05-18 16:18:02 UTC",
  "updated_at": "2021-05-18 16:18:02 UTC",
  "id": 1018350796,
  "name": "class102",
  "module_name": "class102",
  "environments": [
    {
      "name": "environment265",
      "id": 687036938
    }
  ],
  "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