ZeroTier

Joining

zerotier-cli join xxxxxxxxxxxxxxx
zerotier-cli listnetworks
zerotier-cli get xxxxxxxxxxxxxxx ip | grep 192.168.191

Note: after joining need to be approved via UI at https://my.zerotier.com/network/xxxxxxxxxxxxxxx

Api

Token

url: https://my.zerotier.com/account name: zero-manage token: yyyyyyyyyyyyyyyyyyyy

curl -X GET -H "Authorization: bearer yyyyyyyyyyyyyyyyyyyy" https://my.zerotier.com/api/v1/network

List network members

https://docs.zerotier.com/central/v1/#operation/getNetworkMember

curl -s -X GET -H "Authorization: bearer yyyyyyyyyyyyyyyyyyyy" "https://my.zerotier.com/api/v1/network/xxxxxxxxxxxxxxx/member" | jq ".[] | { name: .name, ip: .config.ipAssignments[0] }"