GET /api/v2/discovery_rules
List all discovery rules

Parametry

Nazwa parametru Opis
search
opcjonalny

rezultat filtrowania

Validations:

  • Must be String

order
opcjonalny

rezultat sortowania

Validations:

  • Must be String

page
opcjonalny

rezultat paginacji

Validations:

  • Must be String

per_page
opcjonalny

Liczba wpisów na jedno żądanie

Validations:

  • Must be String


GET /api/v2/discovery_rules/:id
Show a discovery rule

Parametry

Nazwa parametru Opis
id
wymagany

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
Create a discovery rule

Parametry

Nazwa parametru Opis
discovery_rule
opcjonalny , nil dopuszczalny

Validations:

  • Must be a Hash

discovery_rule[name]
wymagany

represents rule name shown to the users

Validations:

  • Must be String

discovery_rule[search]
wymagany

query to match discovered hosts for the particular rule

Validations:

  • Must be String

discovery_rule[hostgroup_id]
wymagany

the hostgroup that is used to auto provision a host

Validations:

  • Must be Integer

discovery_rule[hostname]
opcjonalny , nil dopuszczalny

defines a pattern to assign human-readable hostnames to the matching hosts

Validations:

  • Must be String

discovery_rule[max_count]
opcjonalny , nil dopuszczalny

enables to limit maximum amount of provisioned hosts per rule

Validations:

  • Must be Integer

discovery_rule[priority]
opcjonalny , nil dopuszczalny

puts the rules in order, low numbers go first. Must be greater then zero

Validations:

  • Must be Integer

discovery_rule[enabled]
opcjonalny , nil dopuszczalny

flag is used for temporary shutdown of rules

Validations:

  • Must be 'true' or 'false' or '1' or '0'

discovery_rule[location_ids]
opcjonalny , nil dopuszczalny

ZMIEŃ lokalizacje o podanym id

Validations:

  • Must be an array of any type

discovery_rule[organization_ids]
opcjonalny , nil dopuszczalny

ZMIEŃ organizacje o podanym id

Validations:

  • Must be an array of any type


PUT /api/v2/discovery_rules/:id
Update a rule

Parametry

Nazwa parametru Opis
id
wymagany

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
opcjonalny , nil dopuszczalny

Validations:

  • Must be a Hash

discovery_rule[name]
opcjonalny

represents rule name shown to the users

Validations:

  • Must be String

discovery_rule[search]
opcjonalny

query to match discovered hosts for the particular rule

Validations:

  • Must be String

discovery_rule[hostgroup_id]
opcjonalny

the hostgroup that is used to auto provision a host

Validations:

  • Must be Integer

discovery_rule[hostname]
opcjonalny , nil dopuszczalny

defines a pattern to assign human-readable hostnames to the matching hosts

Validations:

  • Must be String

discovery_rule[max_count]
opcjonalny , nil dopuszczalny

enables to limit maximum amount of provisioned hosts per rule

Validations:

  • Must be Integer

discovery_rule[priority]
opcjonalny , nil dopuszczalny

puts the rules in order, low numbers go first. Must be greater then zero

Validations:

  • Must be Integer

discovery_rule[enabled]
opcjonalny , nil dopuszczalny

flag is used for temporary shutdown of rules

Validations:

  • Must be 'true' or 'false' or '1' or '0'

discovery_rule[location_ids]
opcjonalny , nil dopuszczalny

ZMIEŃ lokalizacje o podanym id

Validations:

  • Must be an array of any type

discovery_rule[organization_ids]
opcjonalny , nil dopuszczalny

ZMIEŃ organizacje o podanym id

Validations:

  • Must be an array of any type


DELETE /api/v2/discovery_rules/:id
Delete a rule

Parametry

Nazwa parametru Opis
id
wymagany

Validations:

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