Skip to content

locus313/zerotier-api-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Zerotier API Scripts

This is a collection of bash scripts using curl I created to automate things with the Zerotier API.

Installation

Requirements:

  • bash (recommend version 4+)
  • curl
  • jq

Clone the repo, download a source zip or copy the shell scripts as needed.

Options

Required enviroment variables:
ZEROTIER_TOKEN - set with your zerotier api token
NETWORK_ID - set with your network id
Available commands:
list-networks (ln): List zerotier networks
list-members (lm): List zerotier network members
update-member (um): Update zerotier member
quit: Exit from this menu

Usage

List networks

./zerotier.sh ln
network_name      aaaabbbbccccdddd

List network members

./zerotier.sh lm
network_member_1                 aaaabbbccc      true      10.1.1.10
                                 ddddeeefff      false     null

Update network member

When running this command it will automatically authorize the network member

./zerotier.sh um ddddeeefff network_member_2

About

Bash scripts to work with the Zerotier API

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Languages