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

Params

Param name Description
location_id
optional

위치 별 범위

Validations:

  • Must be a Integer

organization_id
optional

조직 별 범위

Validations:

  • Must be a Integer

search
optional

필터 결과

Validations:

  • Must be a String

order
optional

결과 정렬

Validations:

  • Must be a String

page
optional

페이지네이션 결과

Validations:

  • Must be a String

per_page
optional

요청 당 항목 수

Validations:

  • Must be a String


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

Params

Param name Description
location_id
optional

위치 별 범위

Validations:

  • Must be a Integer

organization_id
optional

조직 별 범위

Validations:

  • Must be a Integer

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
location_id
optional

위치 별 범위

Validations:

  • Must be a Integer

organization_id
optional

조직 별 범위

Validations:

  • Must be a Integer

discovery_rule
optional , nil allowed

Validations:

  • Must be a Hash

discovery_rule[name]
required

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

Validations:

  • Must be a String

discovery_rule[search]
required

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

Validations:

  • Must be a String

discovery_rule[hostgroup_id]
required

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

Validations:

  • Must be a Integer

discovery_rule[hostname]
optional , nil allowed

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

Validations:

  • Must be a String

discovery_rule[max_count]
optional , nil allowed

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

Validations:

  • Must be a Integer

discovery_rule[priority]
optional , nil allowed

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

Validations:

  • Must be a Integer

discovery_rule[enabled]
optional , nil allowed

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

Validations:

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

discovery_rule[location_ids]
required

location ID for provisioned hosts

Validations:

  • Must be an array of any type

discovery_rule[organization_ids]
required

organization ID for provisioned hosts

Validations:

  • Must be an array of any type


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

Params

Param name Description
location_id
optional

위치 별 범위

Validations:

  • Must be a Integer

organization_id
optional

조직 별 범위

Validations:

  • Must be a Integer

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 , nil allowed

Validations:

  • Must be a Hash

discovery_rule[name]
optional

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

Validations:

  • Must be a String

discovery_rule[search]
optional

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

Validations:

  • Must be a String

discovery_rule[hostgroup_id]
optional

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

Validations:

  • Must be a Integer

discovery_rule[hostname]
optional , nil allowed

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

Validations:

  • Must be a String

discovery_rule[max_count]
optional , nil allowed

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

Validations:

  • Must be a Integer

discovery_rule[priority]
optional , nil allowed

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

Validations:

  • Must be a Integer

discovery_rule[enabled]
optional , nil allowed

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

Validations:

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

discovery_rule[location_ids]
optional

location ID for provisioned hosts

Validations:

  • Must be an array of any type

discovery_rule[organization_ids]
optional

organization ID for provisioned hosts

Validations:

  • Must be an array of any type


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

Params

Param name Description
location_id
optional

위치 별 범위

Validations:

  • Must be a Integer

organization_id
optional

조직 별 범위

Validations:

  • Must be a Integer

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.