Rust API client for zerotier-central-api

ZeroTier Central Network Management Portal API.

All API requests must have an API token header specified in the Authorization: Bearer xxxxx format. You can generate your API key by logging into ZeroTier Central and creating a token on the Account page.

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

Rate Limiting

The ZeroTier Central API implements rate limiting. Paid users are limited to 100 requests per second. Free users are limited to 20 requests per second.

You can get the OpenAPI spec here as well: https://docs.zerotier.com/openapi/centralv1.json

For more information, please visit https://discuss.zerotier.com

Overview

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.

Installation

Put the package under your project folder in a directory named zerotier-central-api and add the following to Cargo.toml under [dependencies]:

zerotier-central-api = { path = "./zerotier-central-api" }

Documentation for API Endpoints

All URIs are relative to https://my.zerotier.com/api/v1

Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- NetworkApi | deletenetwork | DELETE /network/{networkID} | delete network *NetworkApi* | getnetworkbyid | GET /network/{networkID} | Get network by ID NetworkApi | getnetworklist | GET /network | Returns a list of Networks you have access to. NetworkApi | newnetwork | POST /network | Create a new network. *NetworkApi* | updatenetwork | POST /network/{networkID} | update network configuration NetworkMemberApi | deletenetworkmember | DELETE /network/{networkID}/member/{memberID} | Delete a network member NetworkMemberApi | getnetworkmember | GET /network/{networkID}/member/{memberID} | Return an individual member on a network NetworkMemberApi | getnetworkmemberlist | GET /network/{networkID}/member | Returns a list of Members on the network. *NetworkMemberApi* | updatenetworkmember | POST /network/{networkID}/member/{memberID} | Modify a network member *OrganizationsApi* | acceptinvitation | POST /org-invitation/{inviteID} | Accept organization invitation OrganizationsApi | declineinvitation | DELETE /org-invitation/{inviteID} | Decline organization invitation *OrganizationsApi* | getinvitationbyid | GET /org-invitation/{inviteID} | Get organization invitation OrganizationsApi | getorganization | GET /org | Get the current user's organization *OrganizationsApi* | getorganizationbyid | GET /org/{orgID} | Get organization by ID OrganizationsApi | getorganizationinvitationlist | GET /org-invitation | Get list of organization invitations *OrganizationsApi* | getorganizationmembers | GET /org/{orgID}/user | Get list of organization members *OrganizationsApi* | inviteuserbyemail | POST /org-invitation | Invite a user to your organization by email UserApi | addapitoken | POST /user/{userID}/token | Add an API token UserApi | deleteapitoken | DELETE /user/{userID}/token/{tokenName} | Delete API Token UserApi | deleteuserbyid | DELETE /user/{userID} | Delete user *UserApi* | getuserbyid | GET /user/{userID} | Get user record UserApi | updateuserbyid | POST /user/{userID} | Update user record (SMS number or Display Name only) *UtilApi* | getrandomtoken | GET /randomToken | Get a random 32 character token *UtilApi* | getstatus | GET /status | Obtain the overall status of the account tied to the API token in use.

Documentation For Models

To get access to the crate's generated documentation, use:

cargo doc --open

Author