This resource has been removed. To continue using it please install the Foreman Puppet plugin and use its API endpoints.


GET /api/puppetclasses DEPRECATED
List all Puppet classes

GET /api/hosts/:host_id/puppetclasses DEPRECATED
List all Puppet classes for a host

GET /api/hostgroups/:hostgroup_id/puppetclasses DEPRECATED
List all Puppet classes for a host group

GET /api/environments/:environment_id/puppetclasses DEPRECATED
List all Puppet classes for an environment

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


GET /api/puppetclasses/:id DEPRECATED
Show a Puppet class

GET /api/hosts/:host_id/puppetclasses/:id DEPRECATED
Show a Puppet class for host

GET /api/hostgroups/:hostgroup_id/puppetclasses/:id DEPRECATED
Show a Puppet class for a host group

GET /api/environments/:environment_id/puppetclasses/:id DEPRECATED
Show a Puppet class for an environment

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


POST /api/puppetclasses DEPRECATED
Create a Puppet class

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

puppetclass
required

Validations:

  • Must be a Hash

puppetclass[name]
required

Validations:

  • Must be a String


PUT /api/puppetclasses/:id DEPRECATED
Update a Puppet class

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

id
required

Validations:

  • Must be a String

puppetclass
required

Validations:

  • Must be a Hash

puppetclass[name]
optional

Validations:

  • Must be a String


DELETE /api/puppetclasses/:id DEPRECATED
Delete a Puppet class

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

id
required

Validations:

  • Must be a String