Este conteúdo não está disponível no idioma selecionado.

Chapter 91. template-input


Manage template inputs

Usage

# hammer template-input [OPTIONS] SUBCOMMAND [ARG] ...
Copy to Clipboard Toggle word wrap

Options

  • -h, --help – Print help

91.1. template-input create

Create a template input

Usage

# hammer template-input create [OPTIONS]
Copy to Clipboard Toggle word wrap

Options

  • --advanced BOOLEAN – Input is advanced
  • --default VALUE – Default value for user input
  • --description VALUE – Input description
  • --fact-name VALUE – Fact name, used when input type is Fact value
  • --hidden-value BOOLEAN – The value contains sensitive information and shouldn not be normally visible, useful e.g. for passwords
  • --input-type ENUM – Input type Possible value(s): puppet_parameter, user, fact, variable
  • --location VALUE – Set the current location context for the request
  • --location-id NUMBER – Set the current location context for the request
  • --location-title VALUE – Set the current location context for the request
  • --name VALUE – Input name
  • --options LIST – Selectable values for user inputs
  • --organization VALUE – Set the current organization context for the request
  • --organization-id NUMBER – Set the current organization context for the request
  • --organization-title VALUE – Set the current organization context for the request
  • --puppet-class-name VALUE – Puppet class name, used when input type is Puppet parameter
  • --puppet-parameter-name VALUE Puppet parameter name, used when input type is Puppet parameter
  • --required BOOLEAN – Input is required
  • --resource-type ENUM – For values of type search, this is the resource the value searches in Possible value(s): AnsibleRole, AnsibleVariable, Architecture, Audit, AuthSource, Bookmark, ComputeProfile, ComputeResource, ConfigReport, DiscoveryRule, Domain, ExternalUsergroup, FactValue, Filter, ForemanOpenscap::ArfReport, ForemanOpenscap::Policy, ForemanOpenscap::ScapContent, ForemanOpenscap::TailoringFile, ForemanPuppet::ConfigGroup, ForemanPuppet::Environment, ForemanPuppet::HostClass, ForemanPuppet::Puppetclass, ForemanPuppet::PuppetclassLookupKey, ForemanTasks::RecurringLogic, ForemanTasks::Task, ForemanVirtWhoConfigure::Config, Host, Hostgroup, HttpProxy, Image, InsightsHit, JobInvocation, JobTemplate, Katello::ActivationKey, Katello::AlternateContentSource, Katello::ContentCredential, Katello::ContentView, Katello::FlatpakRemote, Katello::HostCollection, Katello::KTEnvironment, Katello::Product, Katello::Subscription, Katello::SyncPlan, KeyPair, Location, LookupValue, MailNotification, Medium, Model, Operatingsystem, Organization, Parameter, PersonalAccessToken, ProvisioningTemplate, Ptable, Realm, RemoteExecutionFeature, ReportTemplate, Role, Setting, SmartProxy, SshKey, Subnet, Template, TemplateInvocation, User, Usergroup, Webhook, WebhookTemplate
  • --template-id VALUE
  • --value-type ENUM – Value type, defaults to plain Possible value(s): plain, search, date, resource
  • --variable-name VALUE – Variable name, used when input type is Variable
  • -h, --help – Print help

91.2. template-input delete

Delete a template input

Usage

# hammer template-input <delete|destroy> [OPTIONS]
Copy to Clipboard Toggle word wrap

Options

  • --id VALUE
  • --location VALUE – Set the current location context for the request
  • --location-id NUMBER – Set the current location context for the request
  • --location-title VALUE – Set the current location context for the request
  • --name VALUE – Name to search by
  • --organization VALUE – Set the current organization context for the request
  • --organization-id NUMBER – Set the current organization context for the request
  • --organization-title VALUE – Set the current organization context for the request
  • --template-id VALUE
  • -h, --help – Print help

91.3. template-input info

Show template input details

Usage

# hammer template-input <info|show> [OPTIONS]
Copy to Clipboard Toggle word wrap

Options

  • --fields LIST – Show specified fields or predefined field sets only. (See below)
  • --id VALUE
  • --location VALUE – Set the current location context for the request
  • --location-id NUMBER – Set the current location context for the request
  • --location-title VALUE – Set the current location context for the request
  • --name VALUE – Name to search by
  • --organization VALUE – Set the current organization context for the request
  • --organization-id NUMBER – Set the current organization context for the request
  • --organization-title VALUE – Set the current organization context for the request
  • --template-id VALUE
  • -h, --help – Print help

Predefined field sets

Expand
FIELDSALLDEFAULTTHIN

Id

x

x

x

Name

x

x

x

Input type

x

x

 

Fact name

x

x

 

Variable name

x

x

 

Puppet parameter name

x

x

 

Options

x

x

 

Default value

x

x

 

91.4. template-input list

List template inputs

Usage

# hammer template-input <list|index> [OPTIONS]
Copy to Clipboard Toggle word wrap

Options

  • --fields LIST – Show specified fields or predefined field sets only. (See below)
  • --location VALUE – Set the current location context for the request
  • --location-id NUMBER – Set the current location context for the request
  • --location-title VALUE – Set the current location context for the request
  • --order VALUE – Sort and order by a searchable field, e.g. <field> DESC
  • --organization VALUE – Set the current organization context for the request
  • --organization-id NUMBER – Set the current organization context for the request
  • --organization-title VALUE – Set the current organization context for the request
  • --page NUMBER – Page number, starting at 1
  • --per-page VALUE – Number of results per page to return, all to return all results
  • --search VALUE – Filter results
  • --template-id VALUE
  • -h, --help – Print help

Predefined field sets

Expand
FIELDSALLDEFAULTTHIN

Id

x

x

x

Name

x

x

x

Input type

x

x

 

Search and order fields

  • id – integer
  • input_type – string
  • name – string

91.5. template-input update

Update a template input

Usage

# hammer template-input update [OPTIONS]
Copy to Clipboard Toggle word wrap

Options

  • --advanced BOOLEAN – Input is advanced
  • --default VALUE – Default value for user input
  • --description VALUE – Input description
  • --fact-name VALUE – Fact name, used when input type is Fact value
  • --hidden-value BOOLEAN – The value contains sensitive information and shouldn not be normally visible, useful e.g. for passwords
  • --id VALUE
  • --input-type ENUM – Input type Possible value(s): puppet_parameter, user, fact, variable
  • --location VALUE – Set the current location context for the request
  • --location-id NUMBER – Set the current location context for the request
  • --location-title VALUE – Set the current location context for the request
  • --name VALUE – Input name
  • --new-name VALUE – Input name
  • --options LIST – Selectable values for user inputs
  • --organization VALUE – Set the current organization context for the request
  • --organization-id NUMBER – Set the current organization context for the request
  • --organization-title VALUE – Set the current organization context for the request
  • --puppet-class-name VALUE – Puppet class name, used when input type is Puppet parameter
  • --puppet-parameter-name VALUE Puppet parameter name, used when input type is Puppet parameter
  • --required BOOLEAN – Input is required
  • --resource-type ENUM – For values of type search, this is the resource the value searches in Possible value(s): AnsibleRole, AnsibleVariable, Architecture, Audit, AuthSource, Bookmark, ComputeProfile, ComputeResource, ConfigReport, DiscoveryRule, Domain, ExternalUsergroup, FactValue, Filter, ForemanOpenscap::ArfReport, ForemanOpenscap::Policy, ForemanOpenscap::ScapContent, ForemanOpenscap::TailoringFile, ForemanPuppet::ConfigGroup, ForemanPuppet::Environment, ForemanPuppet::HostClass, ForemanPuppet::Puppetclass, ForemanPuppet::PuppetclassLookupKey, ForemanTasks::RecurringLogic, ForemanTasks::Task, ForemanVirtWhoConfigure::Config, Host, Hostgroup, HttpProxy, Image, InsightsHit, JobInvocation, JobTemplate, Katello::ActivationKey, Katello::AlternateContentSource, Katello::ContentCredential, Katello::ContentView, Katello::FlatpakRemote, Katello::HostCollection, Katello::KTEnvironment, Katello::Product, Katello::Subscription, Katello::SyncPlan, KeyPair, Location, LookupValue, MailNotification, Medium, Model, Operatingsystem, Organization, Parameter, PersonalAccessToken, ProvisioningTemplate, Ptable, Realm, RemoteExecutionFeature, ReportTemplate, Role, Setting, SmartProxy, SshKey, Subnet, Template, TemplateInvocation, User, Usergroup, Webhook, WebhookTemplate
  • --template-id VALUE
  • --value-type ENUM – Value type, defaults to plain Possible value(s): plain, search, date, resource
  • --variable-name VALUE – Variable name, used when input type is Variable
  • -h, --help – Print help
Voltar ao topo
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2025 Red Hat