Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Integer

template_id
required

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, ‘‘, ‘-’ with no leading or trailing space..

id
required

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, ‘‘, ‘-’ with no leading or trailing space..

template_input
required

Validations:

  • Hash

template_input[name]
optional

Input name

Validations:

  • String

template_input[description]
optional , nil allowed

Input description

Validations:

  • String

template_input[required]
optional , nil allowed

Input is required

Validations:

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

template_input[advanced]
optional , nil allowed

Input is advanced

Validations:

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

template_input[input_type]
optional

Input type

Validations:

  • Must be one of: user, fact, variable, puppet_parameter.

template_input[fact_name]
optional , nil allowed

Fact name, used when input type is fact

Validations:

  • String

template_input[variable_name]
optional , nil allowed

Variable name, used when input type is variable

Validations:

  • String

template_input[puppet_class_name]
optional , nil allowed

Puppet class name, used when input type is puppet_parameter

Validations:

  • String

template_input[puppet_parameter_name]
optional , nil allowed

Puppet parameter name, used when input type is puppet_parameter

Validations:

  • String

template_input[options]
optional , nil allowed

Selectable values for user inputs

Validations:

  • Must be an array of any type

template_input[default]
optional , nil allowed

Default value for user input

Validations:

  • String

template_input[hidden_value]
optional , nil allowed

The value contains sensitive information and shouldn not be normally visible, useful e.g. for passwords

Validations:

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

template_input[value_type]
optional , nil allowed

Value type, defaults to plain

Validations:

  • Must be one of: plain, search, date.

template_input[resource_type]
optional , nil allowed

For values of type search, this is the resource the value searches in

Validations:

  • Must be one of: Architecture, Audit, AuthSource, Bookmark, ComputeProfile, ComputeResource, ConfigGroup, ConfigReport, Domain, Environment, ExternalUsergroup, FactValue, Filter, ForemanTasks::RecurringLogic, ForemanTasks::Task, Host, HostClass, Hostgroup, HttpProxy, Image, Katello::ActivationKey, Katello::ContentView, Katello::GpgKey, Katello::HostCollection, Katello::KTEnvironment, Katello::Product, Katello::Subscription, Katello::SyncPlan, KeyPair, Location, MailNotification, Medium, Model, Operatingsystem, Organization, Parameter, PersonalAccessToken, ProvisioningTemplate, Ptable, Puppetclass, PuppetclassLookupKey, Realm, Report, ReportTemplate, Role, Setting, SmartProxy, SshKey, Subnet, User, Usergroup.