Steampipe 使得仅使用 SQL 查询即可查询云 API。IP2Location.io Steampipe 插件使用户能够查询 IP 地理位置数据以及 WHOIS 数据。
您只需安装 Steampipe,然后使用以下命令安装 IP2Location.io Steampipe 插件:
steampipe plugin install ip2location/ip2locationio
您需要一个 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 文档。