GET /api/puppetclasses
Som alle Puppet classes op

GET /api/hosts/:host_id/puppetclasses
Som alle Puppet classes op voor een host

GET /api/hostgroups/:hostgroup_id/puppetclasses
Som alle Puppet classes op voor een host groep

GET /api/environments/:environment_id/puppetclasses
Som alle Puppet classes op voor een omgeving

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 van de host

Validations:

  • Must be a String

hostgroup_id
optional

ID van de host groep

Validations:

  • Must be a String

environment_id
optional

ID van de omgeving

Validations:

  • Must be a String

search
optional

filter resultaten

Validations:

  • Must be a String

order
optional

Sort field and order, eg. ‘id DESC’

Validations:

  • Must be a String

page
optional

Page number, starting at 1

Validations:

  • Must be a number.

per_page
optional

Number of results per page to return

Validations:

  • Must be a number.

Search fields

Field name Type Possible values
config_group
environment
host string
hostgroup
key
location
name
organization

GET /api/puppetclasses/:id
Toon een Puppet class

GET /api/hosts/:host_id/puppetclasses/:id
Toon een Puppet class voor een host

GET /api/hostgroups/:hostgroup_id/puppetclasses/:id
Toon een Puppet class voor een host groep

GET /api/environments/:environment_id/puppetclasses/:id
Toon een Puppet class voor een omgeving

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 van de host

Validations:

  • Must be a String

hostgroup_id
optional

ID van de host groep

Validations:

  • Must be a String

environment_id
optional

ID van de omgeving

Validations:

  • Must be a String

id
required

ID van de Puppet class

Validations:

  • Must be a String


POST /api/puppetclasses
Maak een 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
Wijzig een 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
Verwijder een 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