GET /api/v2/discovery_rules
모든 검색 규칙을 나열

Params

Param Name Description
search
Optional

필터 결과

Validations:

  • Must be String

order
Optional

결과 정렬

Validations:

  • Must be String

page
Optional

페이지네이션 결과

Validations:

  • Must be String

per_page
Optional

요청 당 항목 수

Validations:

  • Must be String


GET /api/v2/discovery_rules/:id
검색 규칙 표시

Params

Param Name Description
id
Required

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
검색 규칙 생성

Params

Param Name Description
discovery_rule
Optional , <span class="translation_missing" title="translation missing: ko.apipie.nil_allowed">Nil Allowed</span>

Validations:

  • Must be a Hash

discovery_rule[name]
Required

사용자에게 표시되는 규칙 이름을 표시합니다

Validations:

  • Must be String

discovery_rule[search]
Required

특정 규칙에 대해 검색된 호스트와 일치하는 쿼리

Validations:

  • Must be String

discovery_rule[hostgroup_id]
Required

호스트를 자동 프로비저닝하기 위해 사용되는 호스트 그룹

Validations:

  • Must be Integer

discovery_rule[hostname]
Optional , <span class="translation_missing" title="translation missing: ko.apipie.nil_allowed">Nil Allowed</span>

해당 호스트에 읽기 좋은 호스트 이름을 할당하기 위해 패턴을 정의합니다

Validations:

  • Must be String

discovery_rule[max_count]
Optional , <span class="translation_missing" title="translation missing: ko.apipie.nil_allowed">Nil Allowed</span>

규칙 당 프로비저닝된 호스트의 최대 수량을 제한할 수 있게 합니다

Validations:

  • Must be Integer

discovery_rule[priority]
Optional , <span class="translation_missing" title="translation missing: ko.apipie.nil_allowed">Nil Allowed</span>

규칙을 순서대로 배치합니다. 낮은 숫자를 먼저 배치합니다. 수치는 0 보다 커야 합니다

Validations:

  • Must be Integer

discovery_rule[enabled]
Optional , <span class="translation_missing" title="translation missing: ko.apipie.nil_allowed">Nil Allowed</span>

규칙의 일시 정지에 플래그를 사용합니다

Validations:

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

discovery_rule[location_ids]
Optional , <span class="translation_missing" title="translation missing: ko.apipie.nil_allowed">Nil Allowed</span>

지정된 ID로 위치를 변경합니다

Validations:

  • Must be an array of any type

discovery_rule[organization_ids]
Optional , <span class="translation_missing" title="translation missing: ko.apipie.nil_allowed">Nil Allowed</span>

지정된 ID로 조직을 변경합니다

Validations:

  • Must be an array of any type


PUT /api/v2/discovery_rules/:id
규칙 업데이트

Params

Param Name Description
id
Required

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
Optional , <span class="translation_missing" title="translation missing: ko.apipie.nil_allowed">Nil Allowed</span>

Validations:

  • Must be a Hash

discovery_rule[name]
Optional

사용자에게 표시되는 규칙 이름을 표시합니다

Validations:

  • Must be String

discovery_rule[search]
Optional

특정 규칙에 대해 검색된 호스트와 일치하는 쿼리

Validations:

  • Must be String

discovery_rule[hostgroup_id]
Optional

호스트를 자동 프로비저닝하기 위해 사용되는 호스트 그룹

Validations:

  • Must be Integer

discovery_rule[hostname]
Optional , <span class="translation_missing" title="translation missing: ko.apipie.nil_allowed">Nil Allowed</span>

해당 호스트에 읽기 좋은 호스트 이름을 할당하기 위해 패턴을 정의합니다

Validations:

  • Must be String

discovery_rule[max_count]
Optional , <span class="translation_missing" title="translation missing: ko.apipie.nil_allowed">Nil Allowed</span>

규칙 당 프로비저닝된 호스트의 최대 수량을 제한할 수 있게 합니다

Validations:

  • Must be Integer

discovery_rule[priority]
Optional , <span class="translation_missing" title="translation missing: ko.apipie.nil_allowed">Nil Allowed</span>

규칙을 순서대로 배치합니다. 낮은 숫자를 먼저 배치합니다. 수치는 0 보다 커야 합니다

Validations:

  • Must be Integer

discovery_rule[enabled]
Optional , <span class="translation_missing" title="translation missing: ko.apipie.nil_allowed">Nil Allowed</span>

규칙의 일시 정지에 플래그를 사용합니다

Validations:

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

discovery_rule[location_ids]
Optional , <span class="translation_missing" title="translation missing: ko.apipie.nil_allowed">Nil Allowed</span>

지정된 ID로 위치를 변경합니다

Validations:

  • Must be an array of any type

discovery_rule[organization_ids]
Optional , <span class="translation_missing" title="translation missing: ko.apipie.nil_allowed">Nil Allowed</span>

지정된 ID로 조직을 변경합니다

Validations:

  • Must be an array of any type


DELETE /api/v2/discovery_rules/:id
규칙 삭제

Params

Param Name Description
id
Required

Validations:

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