This API controls the ZeroTier service that runs in the background on your computer. This is how zerotier-cli, and the macOS and Windows apps control the service.
API requests must be authenticated via an authentication token. ZeroTier One saves this token in the authtoken.secret file in its working directory. This token may be supplied via the X-ZT1-Auth HTTP request header.
For example: curl -H \"X-ZT1-Auth: $TOKEN\" http://localhost:9993/status
The token can be found in:
This API client was generated by the OpenAPI Generator project. By using the openapi-spec from a remote server, you can easily generate an API client.
Put the package under your project folder and add the following to Cargo.toml
under [dependencies]
:
openapi = { path = "./generated" }
All URIs are relative to http://localhost:9993
Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- NetworkApi | deletenetwork | delete /network/{networkID} | Leave a network *NetworkApi* | getnetwork | get /network/{networkID} | Gets a joined Network by ID. NetworkApi | getnetworks | get /network | Get all network memberships. *NetworkApi* | updatenetwork | post /network/{networkID} | Join a network or update it's configuration PeerApi | getpeer | get /peer/{address} | Get information about a specific peer. *PeerApi* | getpeers | get /peer | Get all peers. StatusApi | get_status | get /status | Node status and addressing info.
To get access to the crate's generated documentation, use:
cargo doc --open