GET /api/config_templates
Lista provisioneringsmallar

GET /api/operatingsystems/:operatingsystem_id/config_templates
Lista provisioneringsmallar per operativsystem

GET /api/locations/:location_id/config_templates
Lista provisioneringsmallar per plats

GET /api/organizations/:organization_id/config_templates
Lista provisioneringsmallar per organisation

Params

Param name Description
operatingsystem_id
optional

ID of operating system

Validations:

  • Must be a String

location_id
optional

Scope by locations

Validations:

  • Must be a Integer

organization_id
optional

Scope by organizations

Validations:

  • Must be a Integer

search
optional

filtrera resultat

Validations:

  • Must be a String

order
optional

sortera resultat

Validations:

  • Must be a String

page
optional

paginate results

Validations:

  • Must be a String

per_page
optional

antal poster per begäran

Validations:

  • Must be a String


GET /api/config_templates/:id
Visa detaljer för provisioneringsmall

Params

Param name Description
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
Skapa en provisioneringsmall

Params

Param name Description
config_template
required

Validations:

  • Must be a Hash

config_template[name]
required

mallnamn

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

not relevant for snippet

Validations:

  • Must be a number.

config_template[template_combinations_attributes]
optional , nil allowed

Array of template combinations (hostgroup_id, environment_id)

Validations:

  • Must be an array of any type

config_template[operatingsystem_ids]
optional , nil allowed

Array of operating system IDs to associate with the template

Validations:

  • Must be an array of any type

config_template[locked]
optional , nil allowed

Whether or not the template is locked for editing

Validations:

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

config_template[location_ids]
optional , nil allowed

REPLACE locations with given ids

Validations:

  • Must be an array of any type

config_template[organization_ids]
optional , nil allowed

REPLACE organizations with given ids.

Validations:

  • Must be an array of any type


PUT /api/config_templates/:id
Uppdatera en provisioneringsmall

Params

Param name Description
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

mallnamn

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

not relevant for snippet

Validations:

  • Must be a number.

config_template[template_combinations_attributes]
optional , nil allowed

Array of template combinations (hostgroup_id, environment_id)

Validations:

  • Must be an array of any type

config_template[operatingsystem_ids]
optional , nil allowed

Array of operating system IDs to associate with the template

Validations:

  • Must be an array of any type

config_template[locked]
optional , nil allowed

Whether or not the template is locked for editing

Validations:

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

config_template[location_ids]
optional , nil allowed

REPLACE locations with given ids

Validations:

  • Must be an array of any type

config_template[organization_ids]
optional , nil allowed

REPLACE organizations with given ids.

Validations:

  • Must be an array of any type


GET /api/config_templates/revision

Params

Param name Description
version
optional

mallversion

Validations:

  • Must be a String


DELETE /api/config_templates/:id
Radera en provisioneringsmall

Params

Param name Description
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
Update the default PXE menu on all configured TFTP servers


POST /api/config_templates/:id/clone
Klona en provisioneringsmall

Params

Param name Description
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

mallnamn

Validations:

  • Must be a String