GET /api/templates/:template_id/template_inputs
Listar entradas de modelo

Parâmentros

Nome parâmetro Descrição
location_id
opcional

Escopo de localizações

Validations:

  • Must be a Integer

organization_id
opcional

Escopo de organização

Validations:

  • Must be a Integer

template_id
requerido

Validations:

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

search
opcional

filtrar resultados

Validations:

  • Must be a String

order
opcional

Classificar campo e ordem, ex.: ‘id DESC’

Validations:

  • Must be a String

page
opcional

Número de página, iniciando em 1

Validations:

  • Must be a number.

per_page
opcional

Número de resultados por página para retornar

Validations:

  • Must be a number.


GET /api/templates/:template_id/template_inputs/:id
Exibir detalhes da entrada de modelo

Parâmentros

Nome parâmetro Descrição
location_id
opcional

Escopo de localizações

Validations:

  • Must be a Integer

organization_id
opcional

Escopo de organização

Validations:

  • Must be a Integer

template_id
requerido

Validations:

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

id
requerido

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/templates/:template_id/template_inputs
Criar uma entrada de modelo

Parâmentros

Nome parâmetro Descrição
location_id
opcional

Escopo de localizações

Validations:

  • Must be a Integer

organization_id
opcional

Escopo de organização

Validations:

  • Must be a Integer

template_id
requerido

Validations:

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

template_input
requerido

Validations:

  • Must be a Hash

template_input[name]
requerido

Nome de entrada

Validations:

  • Must be a String

template_input[description]
opcional , nulo permitido

Descrição de entrada

Validations:

  • Must be a String

template_input[required]
opcional , nulo permitido

Entrada é necessária

Validations:

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

template_input[advanced]
opcional , nulo permitido

Entrada é avançada

Validations:

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

template_input[input_type]
requerido

Tipos de entrada

Validations:

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

template_input[fact_name]
opcional , nulo permitido

Nome de fato, usado quando o tipo de entrada é um fato

Validations:

  • Must be a String

template_input[variable_name]
opcional , nulo permitido

Nome da variável, usado quando o tipo de entrada é uma variável

Validations:

  • Must be a String

template_input[puppet_class_name]
opcional , nulo permitido

Nome de classe do puppet, usado quando o tipo de entrada é um puppet_parameter

Validations:

  • Must be a String

template_input[puppet_parameter_name]
opcional , nulo permitido

Nome de parâmetro do puppet, usado quando o tipo de entrada é um puppet_parameter

Validations:

  • Must be a String

template_input[options]
opcional , nulo permitido

Valores selecionáveis para entradas de usuário

Validations:

  • Must be an array of any type

template_input[value_type]
opcional , nulo permitido

Value type, defaults to plain

Validations:

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

template_input[resource_type]
opcional , nulo permitido

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, Domain, Environment, ExternalUsergroup, FactValue, Filter, Host, HostClass, Hostgroup, HttpProxy, Image, KeyPair, Location, MailNotification, Medium, Model, Operatingsystem, Organization, Parameter, PersonalAccessToken, ProvisioningTemplate, Ptable, Puppetclass, PuppetclassLookupKey, Realm, Report, ReportTemplate, Role, Setting, SmartProxy, SshKey, Subnet, Trend, User, Usergroup, VariableLookupKey.


DELETE /api/templates/:template_id/template_inputs/:id
Remover uma entrada de modelo

Parâmentros

Nome parâmetro Descrição
location_id
opcional

Escopo de localizações

Validations:

  • Must be a Integer

organization_id
opcional

Escopo de organização

Validations:

  • Must be a Integer

template_id
requerido

Validations:

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

id
requerido

Validations:

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


PUT /api/templates/:template_id/template_inputs/:id
Atualizar uma entrada de modelo

Parâmentros

Nome parâmetro Descrição
location_id
opcional

Escopo de localizações

Validations:

  • Must be a Integer

organization_id
opcional

Escopo de organização

Validations:

  • Must be a Integer

template_id
requerido

Validations:

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

id
requerido

Validations:

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

template_input
requerido

Validations:

  • Must be a Hash

template_input[name]
opcional

Nome de entrada

Validations:

  • Must be a String

template_input[description]
opcional , nulo permitido

Descrição de entrada

Validations:

  • Must be a String

template_input[required]
opcional , nulo permitido

Entrada é necessária

Validations:

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

template_input[advanced]
opcional , nulo permitido

Entrada é avançada

Validations:

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

template_input[input_type]
opcional

Tipos de entrada

Validations:

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

template_input[fact_name]
opcional , nulo permitido

Nome de fato, usado quando o tipo de entrada é um fato

Validations:

  • Must be a String

template_input[variable_name]
opcional , nulo permitido

Nome da variável, usado quando o tipo de entrada é uma variável

Validations:

  • Must be a String

template_input[puppet_class_name]
opcional , nulo permitido

Nome de classe do puppet, usado quando o tipo de entrada é um puppet_parameter

Validations:

  • Must be a String

template_input[puppet_parameter_name]
opcional , nulo permitido

Nome de parâmetro do puppet, usado quando o tipo de entrada é um puppet_parameter

Validations:

  • Must be a String

template_input[options]
opcional , nulo permitido

Valores selecionáveis para entradas de usuário

Validations:

  • Must be an array of any type

template_input[value_type]
opcional , nulo permitido

Value type, defaults to plain

Validations:

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

template_input[resource_type]
opcional , nulo permitido

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, Domain, Environment, ExternalUsergroup, FactValue, Filter, Host, HostClass, Hostgroup, HttpProxy, Image, KeyPair, Location, MailNotification, Medium, Model, Operatingsystem, Organization, Parameter, PersonalAccessToken, ProvisioningTemplate, Ptable, Puppetclass, PuppetclassLookupKey, Realm, Report, ReportTemplate, Role, Setting, SmartProxy, SshKey, Subnet, Trend, User, Usergroup, VariableLookupKey.