GET /api/v2/discovered_hosts
검색된 모든 호스트를 나열

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/discovered_hosts/: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/discovered_hosts
검색된 호스트를 테스트용으로 생성(/facts를 사용하여 새 호스트 생성)

Params

Param name Description
location_id
optional

위치 별 범위

Validations:

  • Must be a Integer

organization_id
optional

조직 별 범위

Validations:

  • Must be a Integer

discovered_host
optional , nil allowed

Validations:

  • Must be a Hash

discovered_host[name]
required

Validations:

  • Must be a String

discovered_host[ip]
required

Validations:

  • Must be a String

discovered_host[mac]
required

Validations:

  • Must be a String

discovered_host[pxe_loader]
optional , nil allowed

DHCP filename option (Grub2 or PXELinux by default)

Validations:

  • Must be one of: None, PXELinux BIOS, PXELinux UEFI, Grub UEFI, Grub2 UEFI, Grub2 UEFI SecureBoot, Grub2 UEFI HTTP, Grub2 UEFI HTTPS, Grub2 UEFI HTTPS SecureBoot, iPXE Embedded, iPXE UEFI HTTP, iPXE Chain BIOS, iPXE Chain UEFI.


PUT /api/v2/discovered_hosts/: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.

discovered_host
optional , nil allowed

Validations:

  • Must be a Hash

discovered_host[name]
optional , nil allowed

Validations:

  • Must be a String

discovered_host[environment_id]
optional , nil allowed

Validations:

  • Must be a String

discovered_host[ip]
optional , nil allowed

DHCP 프록시를 갖는 서브넷을 사용할 필요가 없습니다

Validations:

  • Must be a String

discovered_host[mac]
optional , nil allowed

가상 머신의 경우 필요하지 않습니다

Validations:

  • Must be a String

discovered_host[architecture_id]
optional , nil allowed

Validations:

  • Must be a number.

discovered_host[domain_id]
optional , nil allowed

Validations:

  • Must be a number.

discovered_host[puppet_proxy_id]
optional , nil allowed

Validations:

  • Must be a number.

discovered_host[puppet_class_ids]
optional , nil allowed

Validations:

  • Must be an array of any type

discovered_host[operatingsystem_id]
optional , nil allowed

Validations:

  • Must be a String

discovered_host[medium_id]
optional , nil allowed

Validations:

  • Must be a number.

discovered_host[ptable_id]
optional , nil allowed

Validations:

  • Must be a number.

discovered_host[subnet_id]
optional , nil allowed

Validations:

  • Must be a number.

discovered_host[sp_subnet_id]
optional , nil allowed

Validations:

  • Must be a number.

discovered_host[model_id]
optional , nil allowed

Validations:

  • Must be a number.

discovered_host[hostgroup_id]
optional , nil allowed

Validations:

  • Must be a number.

discovered_host[owner_id]
optional , nil allowed

Validations:

  • Must be a number.

discovered_host[puppet_ca_proxy_id]
optional , nil allowed

Validations:

  • Must be a number.

discovered_host[image_id]
optional , nil allowed

Validations:

  • Must be a number.

discovered_host[host_parameters_attributes]
optional , nil allowed

Validations:

  • Must be an array of any type

discovered_host[build]
optional , nil allowed

Validations:

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

discovered_host[enabled]
optional , nil allowed

Validations:

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

discovered_host[provision_method]
optional , nil allowed

Validations:

  • Must be a String

discovered_host[managed]
optional , nil allowed

Validations:

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

discovered_host[progress_report_id]
optional , nil allowed

오케스트레이션 작업 상태를 추적하기 위한 UUID, GET /api/orchestration/:UUID/tasks

Validations:

  • Must be a String

discovered_host[capabilities]
optional , nil allowed

Validations:

  • Must be a String

discovered_host[root_pass]
optional , nil allowed

값이 호스트 그룹이나 설정의 기본값 암호에서 상속되지 않은 경우에 필요합니다

Validations:

  • Must be a String

discovered_host[pxe_loader]
optional , nil allowed

DHCP filename option (Grub2 or PXELinux by default)

Validations:

  • Must be one of: None, PXELinux BIOS, PXELinux UEFI, Grub UEFI, Grub2 UEFI, Grub2 UEFI SecureBoot, Grub2 UEFI HTTP, Grub2 UEFI HTTPS, Grub2 UEFI HTTPS SecureBoot, iPXE Embedded, iPXE UEFI HTTP, iPXE Chain BIOS, iPXE Chain UEFI.


DELETE /api/v2/discovered_hosts/: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.


POST /api/v2/discovered_hosts/facts
호스트의 팩트를 업로드하고 필요한 경우 호스트를 생성합니다

Params

Param name Description
location_id
optional

위치 별 범위

Validations:

  • Must be a Integer

organization_id
optional

조직 별 범위

Validations:

  • Must be a Integer

facts
required

최소 세트의 팩트가 있는 호스트의 팩트가 포함된 해시: discovery_bootif, macaddress_eth0, ipaddress, ipaddress_eth0, 인터페이스: eth0(기본 인터페이스의 이름이 eth0인 경우의 예)

Validations:

  • Must be a Hash


POST /api/v2/discovered_hosts/:id/auto_provision
검색된 호스트에 대해 규칙 실행

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.


POST /api/v2/discovered_hosts/auto_provision_all
현재 검색된 모든 호스트에 대해 규칙 실행

Params

Param name Description
location_id
optional

위치 별 범위

Validations:

  • Must be a Integer

organization_id
optional

조직 별 범위

Validations:

  • Must be a Integer


PUT /api/v2/discovered_hosts/:id/refresh_facts
검색된 호스트의 팩트를 새로고침 중

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.


PUT /api/v2/discovered_hosts/:id/reboot
검색된 호스트를 재부팅 중

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.


PUT /api/v2/discovered_hosts/reboot_all
검색된 모든 호스트를 재부팅 중

Params

Param name Description
location_id
optional

위치 별 범위

Validations:

  • Must be a Integer

organization_id
optional

조직 별 범위

Validations:

  • Must be a Integer