GET /api/config_templates
Geef uitroltemplates weer

GET /api/operatingsystems/:operatingsystem_id/config_templates
Bekijk uitrol templates per besturingssysteem

GET /api/locations/:location_id/config_templates
Bekijk uitrol templates per locatie

GET /api/organizations/:organization_id/config_templates
Bekijk uitrol templates per organisatie

Params

Param name Description
operatingsystem_id
optional

ID van het besturingssysteem

Validations:

  • Must be a String

location_id
optional

Scope met locaties

Validations:

  • Must be a Integer

organization_id
optional

Scope met organisaties

Validations:

  • Must be a Integer

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
default_template true, false
environment string
hostgroup string
kind string
location string
location_id integer
locked true, false
name string
operatingsystem string
organization string
organization_id integer
snippet true, false
template text
vendor string

GET /api/config_templates/:id
Geef uitrol template details weer

Params

Param name Description
location_id
optional

Scope met locaties

Validations:

  • Must be a Integer

organization_id
optional

Scope met organisaties

Validations:

  • Must be a Integer

id
required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


POST /api/config_templates
Maak een Uitroltemplate

Params

Param name Description
location_id
optional

Scope met locaties

Validations:

  • Must be a Integer

organization_id
optional

Scope met organisaties

Validations:

  • Must be a Integer

config_template
required

Validations:

  • Must be a Hash

config_template[name]
required

template naam

Validations:

  • Must be a String

config_template[template]
required

Validations:

  • Must be a String

config_template[snippet]
optional , nil allowed

Validations:

  • Must be one of: true, false, 1, 0.

config_template[audit_comment]
optional , nil allowed

Validations:

  • Must be a String

config_template[template_kind_id]
optional , nil allowed

niet relevant voor knipsel

Validations:

  • Must be a number.

config_template[template_combinations_attributes]
optional , nil allowed

Array van template combinaties (hostgroup_id,environment_id)

Validations:

  • Must be an array of any type

config_template[operatingsystem_ids]
optional , nil allowed

Array van besturingssysteem ID's om te associeren met de template

Validations:

  • Must be an array of any type

config_template[locked]
optional , nil allowed

Of de template wel of niet is gelocked voor bewerken

Validations:

  • Must be one of: true, false, 1, 0.

config_template[location_ids]
optional , nil allowed

Vervang locaties met de opgegeven ids

Validations:

  • Must be an array of any type

config_template[organization_ids]
optional , nil allowed

Vervang organisaties met de opgegeven ids.

Validations:

  • Must be an array of any type


PUT /api/config_templates/:id
Werk een uitroltemplate bij

Params

Param name Description
location_id
optional

Scope met locaties

Validations:

  • Must be a Integer

organization_id
optional

Scope met organisaties

Validations:

  • Must be a Integer

id
required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

config_template
required

Validations:

  • Must be a Hash

config_template[name]
optional

template naam

Validations:

  • Must be a String

config_template[template]
optional

Validations:

  • Must be a String

config_template[snippet]
optional , nil allowed

Validations:

  • Must be one of: true, false, 1, 0.

config_template[audit_comment]
optional , nil allowed

Validations:

  • Must be a String

config_template[template_kind_id]
optional , nil allowed

niet relevant voor knipsel

Validations:

  • Must be a number.

config_template[template_combinations_attributes]
optional , nil allowed

Array van template combinaties (hostgroup_id,environment_id)

Validations:

  • Must be an array of any type

config_template[operatingsystem_ids]
optional , nil allowed

Array van besturingssysteem ID's om te associeren met de template

Validations:

  • Must be an array of any type

config_template[locked]
optional , nil allowed

Of de template wel of niet is gelocked voor bewerken

Validations:

  • Must be one of: true, false, 1, 0.

config_template[location_ids]
optional , nil allowed

Vervang locaties met de opgegeven ids

Validations:

  • Must be an array of any type

config_template[organization_ids]
optional , nil allowed

Vervang organisaties met de opgegeven ids.

Validations:

  • Must be an array of any type


GET /api/config_templates/revision

Params

Param name Description
location_id
optional

Scope met locaties

Validations:

  • Must be a Integer

organization_id
optional

Scope met organisaties

Validations:

  • Must be a Integer

version
optional

template versie

Validations:

  • Must be a String


DELETE /api/config_templates/:id
Verwijder een uitroltemplate

Params

Param name Description
location_id
optional

Scope met locaties

Validations:

  • Must be a Integer

organization_id
optional

Scope met organisaties

Validations:

  • Must be a Integer

id
required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


POST /api/config_templates/build_pxe_default
Bewerk de standaard PXE menu op alle geconfigureerde TFTP servers

Params

Param name Description
location_id
optional

Scope met locaties

Validations:

  • Must be a Integer

organization_id
optional

Scope met organisaties

Validations:

  • Must be a Integer


POST /api/config_templates/:id/clone
Kloon een provisioning template

Params

Param name Description
location_id
optional

Scope met locaties

Validations:

  • Must be a Integer

organization_id
optional

Scope met organisaties

Validations:

  • Must be a Integer

id
required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

config_template
required

Validations:

  • Must be a Hash

config_template[name]
required

template naam

Validations:

  • Must be a String