Steampipe는 SQL 쿼리만으로 클라우드 API를 쿼리할 수 있게 해줍니다. IP2Location.io Steampipe 플러그인을 사용하면 사용자가 IP 지리 위치 데이터와 WHOIS 데이터를 쿼리할 수 있습니다.
설치해야 하는 것은 Steampipe를 설치한 다음 아래 명령어로 IP2Location.io Steampipe 플러그인을 설치하는 것입니다:
steampipe plugin install ip2location/ip2locationio
시작하려면 API 키가 필요합니다. API 키가 없으시다면 무료 API 키를 등록하세요.
아래와 같이 SQL을 사용하여 WHOIS 데이터를 조회할 수 있습니다:
select
domain,
domain_id,
status,
create_date
from
ip2locationio_whois
where
domain = 'google.com';
다음과 같은 내용을 볼 수 있습니다:
+------------+-------------------------+---------------------------------------------------------------------------+----------------------+ | domain | domain_id | status | create_date | +------------+-------------------------+---------------------------------------------------------------------------+----------------------+ | google.com | 2138514_DOMAIN_COM-VRSN | clientUpdateProhibited (https://www.icann.org/epp#clientUpdateProhibited) | 1997-09-15T07:00:00Z | +------------+-------------------------+---------------------------------------------------------------------------+----------------------+
추가 정보는 IP2Location.io Steampipe 문서를 참조하시기 바랍니다.