/api/[method]/[target]

Examples

$ curl http://lg.nickpegg.com/api/ping/google.com
PING google.com (173.194.43.41) 56(84) bytes of data.
64 bytes from lga15s35-in-f9.1e100.net (173.194.43.41): icmp_req=1 ttl=55 time=1.92 ms
64 bytes from lga15s35-in-f9.1e100.net (173.194.43.41): icmp_req=2 ttl=55 time=1.82 ms
64 bytes from lga15s35-in-f9.1e100.net (173.194.43.41): icmp_req=3 ttl=55 time=1.93 ms
64 bytes from lga15s35-in-f9.1e100.net (173.194.43.41): icmp_req=4 ttl=55 time=1.82 ms
64 bytes from lga15s35-in-f9.1e100.net (173.194.43.41): icmp_req=5 ttl=55 time=1.86 ms
64 bytes from lga15s35-in-f9.1e100.net (173.194.43.41): icmp_req=6 ttl=55 time=1.84 ms
64 bytes from lga15s35-in-f9.1e100.net (173.194.43.41): icmp_req=7 ttl=55 time=1.83 ms
64 bytes from lga15s35-in-f9.1e100.net (173.194.43.41): icmp_req=8 ttl=55 time=1.96 ms
64 bytes from lga15s35-in-f9.1e100.net (173.194.43.41): icmp_req=9 ttl=55 time=1.90 ms
64 bytes from lga15s35-in-f9.1e100.net (173.194.43.41): icmp_req=10 ttl=55 time=1.98 ms

--- google.com ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 9013ms
rtt min/avg/max/mdev = 1.820/1.889/1.982/0.065 ms
$ curl http://lg.nickpegg.com/api/mtr/google.com
HOST: 44885de76d20                   Loss%   Snt   Last   Avg  Best  Wrst StDev
  1.|-- 172.17.42.1                     0.0%    10    0.0   0.1   0.0   0.1   0.0
  2.|-- router1-nac.linode.com          0.0%    10    0.5   0.5   0.4   0.5   0.0
  3.|-- 207.99.53.41                    0.0%    10    0.5   7.6   0.4  64.7  20.1
  4.|-- vlan801.tbr1.mmu.nac.net        0.0%    10    0.4   0.4   0.4   0.5   0.0
  5.|-- 0.e1-1.tbr1.tl9.nac.net         0.0%    10    1.5   1.5   1.4   1.5   0.0
  6.|-- 0.e2-1.pr2.tl9.nac.net          0.0%    10   10.3   3.4   1.4  11.1   3.9
  7.|-- core1-0-2-0.lga.net.google.com  0.0%    10    1.9   1.7   1.6   1.9   0.1
  8.|-- 209.85.248.180                  0.0%    10    2.0   2.0   1.8   3.1   0.4
  9.|-- 72.14.237.254                   0.0%    10    2.2   2.6   2.1   5.9   1.2
 10.|-- lga15s35-in-f9.1e100.net        0.0%    10    1.9   1.9   1.8   2.0   0.0
$ curl https://lg.kube.picocloud.me/api/iperf3/iperf.scottlinux.com
Connecting to host iperf.scottlinux.com, port 5201
[  4] local 172.17.0.2 port 48142 connected to 45.33.39.39 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec   831 KBytes  6.80 Mbits/sec    0   58.5 KBytes
[  4]   1.00-2.00   sec  1.96 MBytes  16.5 Mbits/sec    0   62.7 KBytes
[  4]   2.00-3.00   sec   502 KBytes  4.10 Mbits/sec    2   1.43 KBytes
[  4]   3.00-4.00   sec  0.00 Bytes  0.00 bits/sec    1   1.43 KBytes
[  4]   4.00-5.00   sec   125 KBytes  1.03 Mbits/sec    2   62.7 KBytes
[  4]   5.00-6.00   sec   125 KBytes  1.03 Mbits/sec    0   62.7 KBytes
[  4]   6.00-7.01   sec  62.7 KBytes   513 Kbits/sec    1   62.7 KBytes
[  4]   7.01-8.00   sec   125 KBytes  1.03 Mbits/sec    0   62.7 KBytes
[  4]   8.00-9.00   sec  1.72 MBytes  14.4 Mbits/sec    0   74.1 KBytes
[  4]   9.00-10.00  sec  2.27 MBytes  19.0 Mbits/sec    0   81.3 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  7.67 MBytes  6.44 Mbits/sec    6             sender
[  4]   0.00-10.00  sec  6.41 MBytes  5.38 Mbits/sec                  receiver

iperf Done.
$ curl https://lg.kube.picocloud.me/api/nping/iperf.scottlinux.com

Starting Nping 0.7.40 ( https://nmap.org/nping ) at 2018-07-13 15:36 UTC
SENT (0.0029s) Starting TCP Handshake > iperf.scottlinux.com:80 (45.33.39.39:80)
RCVD (0.1201s) Handshake with iperf.scottlinux.com:80 (45.33.39.39:80) completed
SENT (1.0099s) Starting TCP Handshake > iperf.scottlinux.com:80 (45.33.39.39:80)
RCVD (1.1288s) Handshake with iperf.scottlinux.com:80 (45.33.39.39:80) completed
SENT (2.0162s) Starting TCP Handshake > iperf.scottlinux.com:80 (45.33.39.39:80)
RCVD (2.1358s) Handshake with iperf.scottlinux.com:80 (45.33.39.39:80) completed
SENT (3.0234s) Starting TCP Handshake > iperf.scottlinux.com:80 (45.33.39.39:80)
RCVD (3.1448s) Handshake with iperf.scottlinux.com:80 (45.33.39.39:80) completed
SENT (4.0283s) Starting TCP Handshake > iperf.scottlinux.com:80 (45.33.39.39:80)
RCVD (4.1472s) Handshake with iperf.scottlinux.com:80 (45.33.39.39:80) completed
SENT (5.0311s) Starting TCP Handshake > iperf.scottlinux.com:80 (45.33.39.39:80)
RCVD (5.1520s) Handshake with iperf.scottlinux.com:80 (45.33.39.39:80) completed
SENT (6.0390s) Starting TCP Handshake > iperf.scottlinux.com:80 (45.33.39.39:80)
RCVD (6.1608s) Handshake with iperf.scottlinux.com:80 (45.33.39.39:80) completed
SENT (7.0436s) Starting TCP Handshake > iperf.scottlinux.com:80 (45.33.39.39:80)
RCVD (7.1631s) Handshake with iperf.scottlinux.com:80 (45.33.39.39:80) completed
SENT (8.0469s) Starting TCP Handshake > iperf.scottlinux.com:80 (45.33.39.39:80)
RCVD (8.1675s) Handshake with iperf.scottlinux.com:80 (45.33.39.39:80) completed
SENT (9.0513s) Starting TCP Handshake > iperf.scottlinux.com:80 (45.33.39.39:80)
RCVD (9.1732s) Handshake with iperf.scottlinux.com:80 (45.33.39.39:80) completed

Max rtt: 121.886ms | Min rtt: 117.254ms | Avg rtt: 120.095ms
TCP connection attempts: 10 | Successful connections: 10 | Failed: 0 (0.00%)
Nping done: 1 IP address pinged in 9.17 seconds
$ curl https://lg.kube.picocloud.me/api/host/google.com
google.com has address 172.217.9.46
google.com has IPv6 address 2607:f8b0:4009:815::200e
google.com mail is handled by 50 alt4.aspmx.l.google.com.
google.com mail is handled by 10 aspmx.l.google.com.
google.com mail is handled by 30 alt2.aspmx.l.google.com.
google.com mail is handled by 40 alt3.aspmx.l.google.com.
google.com mail is handled by 20 alt1.aspmx.l.google.com.