GET /api/v2/discovery_rules
Listar todas as regras do Discovery

Parâmentros

Nome parâmetro Descrição
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

search
opcional

filtrar resultados

Validations:

  • Must be a String

order
opcional

ordenar resultados

Validations:

  • Must be a String

page
opcional

paginar resultados

Validations:

  • Must be a String

per_page
opcional

número de entradas por requisições

Validations:

  • Must be a String


GET /api/v2/discovery_rules/:id
Exibir uma regra do Discovery

Parâmentros

Nome parâmetro Descrição
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
requerido

Validations:

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


POST /api/v2/discovery_rules
Criar uma regra do Discovery

Parâmentros

Nome parâmetro Descrição
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

discovery_rule
opcional , nulo permitido

Validations:

  • Must be a Hash

discovery_rule[name]
requerido

representa nome da regra exibido para os usuários

Validations:

  • Must be a String

discovery_rule[search]
requerido

consulta para corresponder hosts descobertos a uma regra específica

Validations:

  • Must be a String

discovery_rule[hostgroup_id]
requerido

o grupo de hosts que é usado para provisionar um host automático

Validations:

  • Must be a Integer

discovery_rule[hostname]
opcional , nulo permitido

define um padrão para atribuir nomes de hosts legíveis aos hosts correspondentes

Validations:

  • Must be a String

discovery_rule[max_count]
opcional , nulo permitido

habilita para limitar a quantidade máxima de hosts provisionados por regra

Validations:

  • Must be a Integer

discovery_rule[priority]
opcional , nulo permitido

coloca as regras em ordem, números menores primeiro. Deve ser maior que zero

Validations:

  • Must be a Integer

discovery_rule[enabled]
opcional , nulo permitido

sinalizador é usado para desligamento temporário de regras

Validations:

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

discovery_rule[location_ids]
requerido

ID de local para hosts provisionados

Validations:

  • Must be an array of any type

discovery_rule[organization_ids]
requerido

ID de organização para hosts provisionados

Validations:

  • Must be an array of any type


PUT /api/v2/discovery_rules/:id
Atualizar uma regra

Parâmentros

Nome parâmetro Descrição
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

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.

discovery_rule
opcional , nulo permitido

Validations:

  • Must be a Hash

discovery_rule[name]
opcional

representa nome da regra exibido para os usuários

Validations:

  • Must be a String

discovery_rule[search]
opcional

consulta para corresponder hosts descobertos a uma regra específica

Validations:

  • Must be a String

discovery_rule[hostgroup_id]
opcional

o grupo de hosts que é usado para provisionar um host automático

Validations:

  • Must be a Integer

discovery_rule[hostname]
opcional , nulo permitido

define um padrão para atribuir nomes de hosts legíveis aos hosts correspondentes

Validations:

  • Must be a String

discovery_rule[max_count]
opcional , nulo permitido

habilita para limitar a quantidade máxima de hosts provisionados por regra

Validations:

  • Must be a Integer

discovery_rule[priority]
opcional , nulo permitido

coloca as regras em ordem, números menores primeiro. Deve ser maior que zero

Validations:

  • Must be a Integer

discovery_rule[enabled]
opcional , nulo permitido

sinalizador é usado para desligamento temporário de regras

Validations:

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

discovery_rule[location_ids]
opcional

ID de local para hosts provisionados

Validations:

  • Must be an array of any type

discovery_rule[organization_ids]
opcional

ID de organização para hosts provisionados

Validations:

  • Must be an array of any type


DELETE /api/v2/discovery_rules/:id
Excluir uma regra

Parâmentros

Nome parâmetro Descrição
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

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.