mirror of
https://github.com/zerotier/zerotier-rust-api.git
synced 2026-05-22 16:26:25 -07:00
zerotier-central-api 1.0.1
Signed-off-by: Erik Hollensbe <linux@hollensbe.org>
This commit is contained in:
@@ -23,6 +23,8 @@ docs/OrganizationsApi.md
|
||||
docs/Permissions.md
|
||||
docs/RandomToken.md
|
||||
docs/Route.md
|
||||
docs/Status.md
|
||||
docs/StatusLoginMethods.md
|
||||
docs/User.md
|
||||
docs/UserApi.md
|
||||
docs/UtilApi.md
|
||||
@@ -53,4 +55,6 @@ src/models/organization_member.rs
|
||||
src/models/permissions.rs
|
||||
src/models/random_token.rs
|
||||
src/models/route.rs
|
||||
src/models/status.rs
|
||||
src/models/status_login_methods.rs
|
||||
src/models/user.rs
|
||||
|
||||
@@ -1 +1 @@
|
||||
5.2.0-SNAPSHOT
|
||||
5.2.1-SNAPSHOT
|
||||
@@ -1,9 +1,9 @@
|
||||
[package]
|
||||
name = "zerotier-central-api"
|
||||
version = "1.0.0"
|
||||
version = "1.0.1"
|
||||
edition = "2018"
|
||||
description = "OpenAPI bindings to zerotier-one service"
|
||||
authors = ["Erik Hollensbe <linux@hollensbe.org>", "Adam Ierymenko <adam.ierymenko@zerotier.com>"]
|
||||
description = "OpenAPI bindings to the ZeroTier Central (https://my.zerotier.com) service"
|
||||
authors = ["Erik Hollensbe <erik.hollensbe@zerotier.com>", "Adam Ierymenko <adam.ierymenko@zerotier.com>"]
|
||||
license = "BSD-3-Clause"
|
||||
|
||||
[dependencies]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Rust API client for zerotier-central-api
|
||||
|
||||
ZeroTier Central Network Management Portal API.<p>All API requests must have an API token header specified in the <code>Authorization: Bearer xxxxx</code> format. You can generate your API key by logging into <a href=\"https://my.zerotier.com\">ZeroTier Central</a> and creating a token on the Account page.</p><p>eg. <code>curl -X GET -H \"Authorization: bearer xxxxx\" https://my.zerotier.com/api/network</code></p>
|
||||
ZeroTier Central Network Management Portal API.<p>All API requests must have an API token header specified in the <code>Authorization: Bearer xxxxx</code> format. You can generate your API key by logging into <a href=\"https://my.zerotier.com\">ZeroTier Central</a> and creating a token on the Account page.</p><p>eg. <code>curl -X GET -H \"Authorization: bearer xxxxx\" https://my.zerotier.com/api/v1/network</code></p>
|
||||
|
||||
## Overview
|
||||
|
||||
@@ -21,33 +21,34 @@ Put the package under your project folder and add the following to `Cargo.toml`
|
||||
|
||||
## Documentation for API Endpoints
|
||||
|
||||
All URIs are relative to *https://my.zerotier.com/api*
|
||||
All URIs are relative to *https://my.zerotier.com/api/v1*
|
||||
|
||||
Class | Method | HTTP request | Description
|
||||
------------ | ------------- | ------------- | -------------
|
||||
*NetworkApi* | [**delete_network**](docs/NetworkApi.md#delete_network) | **delete** /network/{networkID} | delete network
|
||||
*NetworkApi* | [**get_network_by_id**](docs/NetworkApi.md#get_network_by_id) | **get** /network/{networkID} | Get network by ID
|
||||
*NetworkApi* | [**get_network_list**](docs/NetworkApi.md#get_network_list) | **get** /network | Returns a list of Networks you have access to.
|
||||
*NetworkApi* | [**new_network**](docs/NetworkApi.md#new_network) | **post** /network | Create a new network.
|
||||
*NetworkApi* | [**update_network**](docs/NetworkApi.md#update_network) | **post** /network/{networkID} | update network configuration
|
||||
*NetworkMemberApi* | [**delete_network_member**](docs/NetworkMemberApi.md#delete_network_member) | **delete** /network/{networkID}/member/{memberID} | Delete a network member
|
||||
*NetworkMemberApi* | [**get_network_member**](docs/NetworkMemberApi.md#get_network_member) | **get** /network/{networkID}/member/{memberID} | Return an individual member on a network
|
||||
*NetworkMemberApi* | [**get_network_member_list**](docs/NetworkMemberApi.md#get_network_member_list) | **get** /network/{networkID}/member | Returns a list of Members on the network.
|
||||
*NetworkMemberApi* | [**update_network_member**](docs/NetworkMemberApi.md#update_network_member) | **post** /network/{networkID}/member/{memberID} | Modify a network member
|
||||
*OrganizationsApi* | [**accept_invitation**](docs/OrganizationsApi.md#accept_invitation) | **post** /org-invitation/{inviteID} | Accept organization invitation
|
||||
*OrganizationsApi* | [**decline_invitation**](docs/OrganizationsApi.md#decline_invitation) | **delete** /org-invitation/{inviteID} | Decline organization invitation
|
||||
*OrganizationsApi* | [**get_invitation_by_id**](docs/OrganizationsApi.md#get_invitation_by_id) | **get** /org-invitation/{inviteID} | Get organization invitation
|
||||
*OrganizationsApi* | [**get_organization**](docs/OrganizationsApi.md#get_organization) | **get** /org | Get the current user's organization
|
||||
*OrganizationsApi* | [**get_organization_by_id**](docs/OrganizationsApi.md#get_organization_by_id) | **get** /org/{orgID} | Get organization by ID
|
||||
*OrganizationsApi* | [**get_organization_invitation_list**](docs/OrganizationsApi.md#get_organization_invitation_list) | **get** /org-invitation | Get list of organization invitations
|
||||
*OrganizationsApi* | [**get_organization_members**](docs/OrganizationsApi.md#get_organization_members) | **get** /org/{orgID}/user | Get list of organization members
|
||||
*OrganizationsApi* | [**invite_user_by_email**](docs/OrganizationsApi.md#invite_user_by_email) | **post** /org-invitation | Invite a user to your organization by email
|
||||
*UserApi* | [**add_api_token**](docs/UserApi.md#add_api_token) | **post** /user/{userID}/token | Add an API token
|
||||
*UserApi* | [**delete_api_token**](docs/UserApi.md#delete_api_token) | **delete** /user/{userID}/token/{tokenName} | Delete API Token
|
||||
*UserApi* | [**delete_user_by_id**](docs/UserApi.md#delete_user_by_id) | **delete** /user/{userID} | Delete user
|
||||
*UserApi* | [**get_user_by_id**](docs/UserApi.md#get_user_by_id) | **get** /user/{userID} | Get user record
|
||||
*UserApi* | [**update_user_by_id**](docs/UserApi.md#update_user_by_id) | **post** /user/{userID} | Update user record (SMS number or Display Name only)
|
||||
*UtilApi* | [**get_random_token**](docs/UtilApi.md#get_random_token) | **get** /randomToken | Get a random 32 character token
|
||||
*NetworkApi* | [**delete_network**](docs/NetworkApi.md#delete_network) | **DELETE** /network/{networkID} | delete network
|
||||
*NetworkApi* | [**get_network_by_id**](docs/NetworkApi.md#get_network_by_id) | **GET** /network/{networkID} | Get network by ID
|
||||
*NetworkApi* | [**get_network_list**](docs/NetworkApi.md#get_network_list) | **GET** /network | Returns a list of Networks you have access to.
|
||||
*NetworkApi* | [**new_network**](docs/NetworkApi.md#new_network) | **POST** /network | Create a new network.
|
||||
*NetworkApi* | [**update_network**](docs/NetworkApi.md#update_network) | **POST** /network/{networkID} | update network configuration
|
||||
*NetworkMemberApi* | [**delete_network_member**](docs/NetworkMemberApi.md#delete_network_member) | **DELETE** /network/{networkID}/member/{memberID} | Delete a network member
|
||||
*NetworkMemberApi* | [**get_network_member**](docs/NetworkMemberApi.md#get_network_member) | **GET** /network/{networkID}/member/{memberID} | Return an individual member on a network
|
||||
*NetworkMemberApi* | [**get_network_member_list**](docs/NetworkMemberApi.md#get_network_member_list) | **GET** /network/{networkID}/member | Returns a list of Members on the network.
|
||||
*NetworkMemberApi* | [**update_network_member**](docs/NetworkMemberApi.md#update_network_member) | **POST** /network/{networkID}/member/{memberID} | Modify a network member
|
||||
*OrganizationsApi* | [**accept_invitation**](docs/OrganizationsApi.md#accept_invitation) | **POST** /org-invitation/{inviteID} | Accept organization invitation
|
||||
*OrganizationsApi* | [**decline_invitation**](docs/OrganizationsApi.md#decline_invitation) | **DELETE** /org-invitation/{inviteID} | Decline organization invitation
|
||||
*OrganizationsApi* | [**get_invitation_by_id**](docs/OrganizationsApi.md#get_invitation_by_id) | **GET** /org-invitation/{inviteID} | Get organization invitation
|
||||
*OrganizationsApi* | [**get_organization**](docs/OrganizationsApi.md#get_organization) | **GET** /org | Get the current user's organization
|
||||
*OrganizationsApi* | [**get_organization_by_id**](docs/OrganizationsApi.md#get_organization_by_id) | **GET** /org/{orgID} | Get organization by ID
|
||||
*OrganizationsApi* | [**get_organization_invitation_list**](docs/OrganizationsApi.md#get_organization_invitation_list) | **GET** /org-invitation | Get list of organization invitations
|
||||
*OrganizationsApi* | [**get_organization_members**](docs/OrganizationsApi.md#get_organization_members) | **GET** /org/{orgID}/user | Get list of organization members
|
||||
*OrganizationsApi* | [**invite_user_by_email**](docs/OrganizationsApi.md#invite_user_by_email) | **POST** /org-invitation | Invite a user to your organization by email
|
||||
*UserApi* | [**add_api_token**](docs/UserApi.md#add_api_token) | **POST** /user/{userID}/token | Add an API token
|
||||
*UserApi* | [**delete_api_token**](docs/UserApi.md#delete_api_token) | **DELETE** /user/{userID}/token/{tokenName} | Delete API Token
|
||||
*UserApi* | [**delete_user_by_id**](docs/UserApi.md#delete_user_by_id) | **DELETE** /user/{userID} | Delete user
|
||||
*UserApi* | [**get_user_by_id**](docs/UserApi.md#get_user_by_id) | **GET** /user/{userID} | Get user record
|
||||
*UserApi* | [**update_user_by_id**](docs/UserApi.md#update_user_by_id) | **POST** /user/{userID} | Update user record (SMS number or Display Name only)
|
||||
*UtilApi* | [**get_random_token**](docs/UtilApi.md#get_random_token) | **GET** /randomToken | Get a random 32 character token
|
||||
*UtilApi* | [**get_status**](docs/UtilApi.md#get_status) | **GET** /status | Obtain the overall status of the account tied to the API token in use.
|
||||
|
||||
|
||||
## Documentation For Models
|
||||
@@ -69,6 +70,8 @@ Class | Method | HTTP request | Description
|
||||
- [Permissions](docs/Permissions.md)
|
||||
- [RandomToken](docs/RandomToken.md)
|
||||
- [Route](docs/Route.md)
|
||||
- [Status](docs/Status.md)
|
||||
- [StatusLoginMethods](docs/StatusLoginMethods.md)
|
||||
- [User](docs/User.md)
|
||||
|
||||
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
# \NetworkApi
|
||||
|
||||
All URIs are relative to *https://my.zerotier.com/api*
|
||||
All URIs are relative to *https://my.zerotier.com/api/v1*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**delete_network**](NetworkApi.md#delete_network) | **delete** /network/{networkID} | delete network
|
||||
[**get_network_by_id**](NetworkApi.md#get_network_by_id) | **get** /network/{networkID} | Get network by ID
|
||||
[**get_network_list**](NetworkApi.md#get_network_list) | **get** /network | Returns a list of Networks you have access to.
|
||||
[**new_network**](NetworkApi.md#new_network) | **post** /network | Create a new network.
|
||||
[**update_network**](NetworkApi.md#update_network) | **post** /network/{networkID} | update network configuration
|
||||
[**delete_network**](NetworkApi.md#delete_network) | **DELETE** /network/{networkID} | delete network
|
||||
[**get_network_by_id**](NetworkApi.md#get_network_by_id) | **GET** /network/{networkID} | Get network by ID
|
||||
[**get_network_list**](NetworkApi.md#get_network_list) | **GET** /network | Returns a list of Networks you have access to.
|
||||
[**new_network**](NetworkApi.md#new_network) | **POST** /network | Create a new network.
|
||||
[**update_network**](NetworkApi.md#update_network) | **POST** /network/{networkID} | update network configuration
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
# \NetworkMemberApi
|
||||
|
||||
All URIs are relative to *https://my.zerotier.com/api*
|
||||
All URIs are relative to *https://my.zerotier.com/api/v1*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**delete_network_member**](NetworkMemberApi.md#delete_network_member) | **delete** /network/{networkID}/member/{memberID} | Delete a network member
|
||||
[**get_network_member**](NetworkMemberApi.md#get_network_member) | **get** /network/{networkID}/member/{memberID} | Return an individual member on a network
|
||||
[**get_network_member_list**](NetworkMemberApi.md#get_network_member_list) | **get** /network/{networkID}/member | Returns a list of Members on the network.
|
||||
[**update_network_member**](NetworkMemberApi.md#update_network_member) | **post** /network/{networkID}/member/{memberID} | Modify a network member
|
||||
[**delete_network_member**](NetworkMemberApi.md#delete_network_member) | **DELETE** /network/{networkID}/member/{memberID} | Delete a network member
|
||||
[**get_network_member**](NetworkMemberApi.md#get_network_member) | **GET** /network/{networkID}/member/{memberID} | Return an individual member on a network
|
||||
[**get_network_member_list**](NetworkMemberApi.md#get_network_member_list) | **GET** /network/{networkID}/member | Returns a list of Members on the network.
|
||||
[**update_network_member**](NetworkMemberApi.md#update_network_member) | **POST** /network/{networkID}/member/{memberID} | Modify a network member
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
# \OrganizationsApi
|
||||
|
||||
All URIs are relative to *https://my.zerotier.com/api*
|
||||
All URIs are relative to *https://my.zerotier.com/api/v1*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**accept_invitation**](OrganizationsApi.md#accept_invitation) | **post** /org-invitation/{inviteID} | Accept organization invitation
|
||||
[**decline_invitation**](OrganizationsApi.md#decline_invitation) | **delete** /org-invitation/{inviteID} | Decline organization invitation
|
||||
[**get_invitation_by_id**](OrganizationsApi.md#get_invitation_by_id) | **get** /org-invitation/{inviteID} | Get organization invitation
|
||||
[**get_organization**](OrganizationsApi.md#get_organization) | **get** /org | Get the current user's organization
|
||||
[**get_organization_by_id**](OrganizationsApi.md#get_organization_by_id) | **get** /org/{orgID} | Get organization by ID
|
||||
[**get_organization_invitation_list**](OrganizationsApi.md#get_organization_invitation_list) | **get** /org-invitation | Get list of organization invitations
|
||||
[**get_organization_members**](OrganizationsApi.md#get_organization_members) | **get** /org/{orgID}/user | Get list of organization members
|
||||
[**invite_user_by_email**](OrganizationsApi.md#invite_user_by_email) | **post** /org-invitation | Invite a user to your organization by email
|
||||
[**accept_invitation**](OrganizationsApi.md#accept_invitation) | **POST** /org-invitation/{inviteID} | Accept organization invitation
|
||||
[**decline_invitation**](OrganizationsApi.md#decline_invitation) | **DELETE** /org-invitation/{inviteID} | Decline organization invitation
|
||||
[**get_invitation_by_id**](OrganizationsApi.md#get_invitation_by_id) | **GET** /org-invitation/{inviteID} | Get organization invitation
|
||||
[**get_organization**](OrganizationsApi.md#get_organization) | **GET** /org | Get the current user's organization
|
||||
[**get_organization_by_id**](OrganizationsApi.md#get_organization_by_id) | **GET** /org/{orgID} | Get organization by ID
|
||||
[**get_organization_invitation_list**](OrganizationsApi.md#get_organization_invitation_list) | **GET** /org-invitation | Get list of organization invitations
|
||||
[**get_organization_members**](OrganizationsApi.md#get_organization_members) | **GET** /org/{orgID}/user | Get list of organization members
|
||||
[**invite_user_by_email**](OrganizationsApi.md#invite_user_by_email) | **POST** /org-invitation | Invite a user to your organization by email
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
# Status
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | Option<**String**> | | [optional]
|
||||
**_type** | Option<**String**> | | [optional]
|
||||
**clock** | Option<**i64**> | Current time on server | [optional][readonly]
|
||||
**version** | Option<**String**> | | [optional]
|
||||
**api_version** | Option<**String**> | | [optional]
|
||||
**uptime** | Option<**i64**> | Uptime on server | [optional][readonly]
|
||||
**user** | Option<[**crate::models::User**](User.md)> | | [optional]
|
||||
**read_only_mode** | Option<**bool**> | | [optional]
|
||||
**login_methods** | Option<[**crate::models::StatusLoginMethods**](Status_loginMethods.md)> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
# StatusLoginMethods
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**local** | Option<**bool**> | | [optional]
|
||||
**google** | Option<**bool**> | | [optional]
|
||||
**twitter** | Option<**bool**> | | [optional]
|
||||
**facebook** | Option<**bool**> | | [optional]
|
||||
**github** | Option<**bool**> | | [optional]
|
||||
**saml** | Option<**bool**> | | [optional]
|
||||
**oidc** | Option<**bool**> | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
# \UserApi
|
||||
|
||||
All URIs are relative to *https://my.zerotier.com/api*
|
||||
All URIs are relative to *https://my.zerotier.com/api/v1*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**add_api_token**](UserApi.md#add_api_token) | **post** /user/{userID}/token | Add an API token
|
||||
[**delete_api_token**](UserApi.md#delete_api_token) | **delete** /user/{userID}/token/{tokenName} | Delete API Token
|
||||
[**delete_user_by_id**](UserApi.md#delete_user_by_id) | **delete** /user/{userID} | Delete user
|
||||
[**get_user_by_id**](UserApi.md#get_user_by_id) | **get** /user/{userID} | Get user record
|
||||
[**update_user_by_id**](UserApi.md#update_user_by_id) | **post** /user/{userID} | Update user record (SMS number or Display Name only)
|
||||
[**add_api_token**](UserApi.md#add_api_token) | **POST** /user/{userID}/token | Add an API token
|
||||
[**delete_api_token**](UserApi.md#delete_api_token) | **DELETE** /user/{userID}/token/{tokenName} | Delete API Token
|
||||
[**delete_user_by_id**](UserApi.md#delete_user_by_id) | **DELETE** /user/{userID} | Delete user
|
||||
[**get_user_by_id**](UserApi.md#get_user_by_id) | **GET** /user/{userID} | Get user record
|
||||
[**update_user_by_id**](UserApi.md#update_user_by_id) | **POST** /user/{userID} | Update user record (SMS number or Display Name only)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
# \UtilApi
|
||||
|
||||
All URIs are relative to *https://my.zerotier.com/api*
|
||||
All URIs are relative to *https://my.zerotier.com/api/v1*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**get_random_token**](UtilApi.md#get_random_token) | **get** /randomToken | Get a random 32 character token
|
||||
[**get_random_token**](UtilApi.md#get_random_token) | **GET** /randomToken | Get a random 32 character token
|
||||
[**get_status**](UtilApi.md#get_status) | **GET** /status | Obtain the overall status of the account tied to the API token in use.
|
||||
|
||||
|
||||
|
||||
@@ -34,3 +35,28 @@ This endpoint does not need any parameter.
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
## get_status
|
||||
|
||||
> crate::models::Status get_status()
|
||||
Obtain the overall status of the account tied to the API token in use.
|
||||
|
||||
### Parameters
|
||||
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### Return type
|
||||
|
||||
[**crate::models::Status**](Status.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[bearerAuth](../README.md#bearerAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* ZeroTier Central API
|
||||
*
|
||||
* ZeroTier Central Network Management Portal API.<p>All API requests must have an API token header specified in the <code>Authorization: Bearer xxxxx</code> format. You can generate your API key by logging into <a href=\"https://my.zerotier.com\">ZeroTier Central</a> and creating a token on the Account page.</p><p>eg. <code>curl -X GET -H \"Authorization: bearer xxxxx\" https://my.zerotier.com/api/network</code></p>
|
||||
* ZeroTier Central Network Management Portal API.<p>All API requests must have an API token header specified in the <code>Authorization: Bearer xxxxx</code> format. You can generate your API key by logging into <a href=\"https://my.zerotier.com\">ZeroTier Central</a> and creating a token on the Account page.</p><p>eg. <code>curl -X GET -H \"Authorization: bearer xxxxx\" https://my.zerotier.com/api/v1/network</code></p>
|
||||
*
|
||||
* The version of the OpenAPI document: v1
|
||||
*
|
||||
@@ -40,7 +40,7 @@ impl Configuration {
|
||||
impl Default for Configuration {
|
||||
fn default() -> Self {
|
||||
Configuration {
|
||||
base_path: "https://my.zerotier.com/api".to_owned(),
|
||||
base_path: "https://my.zerotier.com/api/v1".to_owned(),
|
||||
user_agent: Some("OpenAPI-Generator/v1/rust".to_owned()),
|
||||
client: reqwest::Client::new(),
|
||||
basic_auth: None,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* ZeroTier Central API
|
||||
*
|
||||
* ZeroTier Central Network Management Portal API.<p>All API requests must have an API token header specified in the <code>Authorization: Bearer xxxxx</code> format. You can generate your API key by logging into <a href=\"https://my.zerotier.com\">ZeroTier Central</a> and creating a token on the Account page.</p><p>eg. <code>curl -X GET -H \"Authorization: bearer xxxxx\" https://my.zerotier.com/api/network</code></p>
|
||||
* ZeroTier Central Network Management Portal API.<p>All API requests must have an API token header specified in the <code>Authorization: Bearer xxxxx</code> format. You can generate your API key by logging into <a href=\"https://my.zerotier.com\">ZeroTier Central</a> and creating a token on the Account page.</p><p>eg. <code>curl -X GET -H \"Authorization: bearer xxxxx\" https://my.zerotier.com/api/v1/network</code></p>
|
||||
*
|
||||
* The version of the OpenAPI document: v1
|
||||
*
|
||||
@@ -67,7 +67,7 @@ pub async fn delete_network(configuration: &configuration::Configuration, networ
|
||||
let local_var_client = &configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/network/{networkID}", configuration.base_path, networkID=crate::apis::urlencode(network_id));
|
||||
let mut local_var_req_builder = local_var_client.delete(local_var_uri_str.as_str());
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
@@ -97,7 +97,7 @@ pub async fn get_network_by_id(configuration: &configuration::Configuration, net
|
||||
let local_var_client = &configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/network/{networkID}", configuration.base_path, networkID=crate::apis::urlencode(network_id));
|
||||
let mut local_var_req_builder = local_var_client.get(local_var_uri_str.as_str());
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
@@ -126,7 +126,7 @@ pub async fn get_network_list(configuration: &configuration::Configuration, ) ->
|
||||
let local_var_client = &configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/network", configuration.base_path);
|
||||
let mut local_var_req_builder = local_var_client.get(local_var_uri_str.as_str());
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
@@ -155,7 +155,7 @@ pub async fn new_network(configuration: &configuration::Configuration, body: ser
|
||||
let local_var_client = &configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/network", configuration.base_path);
|
||||
let mut local_var_req_builder = local_var_client.post(local_var_uri_str.as_str());
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
@@ -185,7 +185,7 @@ pub async fn update_network(configuration: &configuration::Configuration, networ
|
||||
let local_var_client = &configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/network/{networkID}", configuration.base_path, networkID=crate::apis::urlencode(network_id));
|
||||
let mut local_var_req_builder = local_var_client.post(local_var_uri_str.as_str());
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* ZeroTier Central API
|
||||
*
|
||||
* ZeroTier Central Network Management Portal API.<p>All API requests must have an API token header specified in the <code>Authorization: Bearer xxxxx</code> format. You can generate your API key by logging into <a href=\"https://my.zerotier.com\">ZeroTier Central</a> and creating a token on the Account page.</p><p>eg. <code>curl -X GET -H \"Authorization: bearer xxxxx\" https://my.zerotier.com/api/network</code></p>
|
||||
* ZeroTier Central Network Management Portal API.<p>All API requests must have an API token header specified in the <code>Authorization: Bearer xxxxx</code> format. You can generate your API key by logging into <a href=\"https://my.zerotier.com\">ZeroTier Central</a> and creating a token on the Account page.</p><p>eg. <code>curl -X GET -H \"Authorization: bearer xxxxx\" https://my.zerotier.com/api/v1/network</code></p>
|
||||
*
|
||||
* The version of the OpenAPI document: v1
|
||||
*
|
||||
@@ -61,7 +61,7 @@ pub async fn delete_network_member(configuration: &configuration::Configuration,
|
||||
let local_var_client = &configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/network/{networkID}/member/{memberID}", configuration.base_path, networkID=crate::apis::urlencode(network_id), memberID=crate::apis::urlencode(member_id));
|
||||
let mut local_var_req_builder = local_var_client.delete(local_var_uri_str.as_str());
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
@@ -90,7 +90,7 @@ pub async fn get_network_member(configuration: &configuration::Configuration, ne
|
||||
let local_var_client = &configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/network/{networkID}/member/{memberID}", configuration.base_path, networkID=crate::apis::urlencode(network_id), memberID=crate::apis::urlencode(member_id));
|
||||
let mut local_var_req_builder = local_var_client.get(local_var_uri_str.as_str());
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
@@ -119,7 +119,7 @@ pub async fn get_network_member_list(configuration: &configuration::Configuratio
|
||||
let local_var_client = &configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/network/{networkID}/member", configuration.base_path, networkID=crate::apis::urlencode(network_id));
|
||||
let mut local_var_req_builder = local_var_client.get(local_var_uri_str.as_str());
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
@@ -148,7 +148,7 @@ pub async fn update_network_member(configuration: &configuration::Configuration,
|
||||
let local_var_client = &configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/network/{networkID}/member/{memberID}", configuration.base_path, networkID=crate::apis::urlencode(network_id), memberID=crate::apis::urlencode(member_id));
|
||||
let mut local_var_req_builder = local_var_client.post(local_var_uri_str.as_str());
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* ZeroTier Central API
|
||||
*
|
||||
* ZeroTier Central Network Management Portal API.<p>All API requests must have an API token header specified in the <code>Authorization: Bearer xxxxx</code> format. You can generate your API key by logging into <a href=\"https://my.zerotier.com\">ZeroTier Central</a> and creating a token on the Account page.</p><p>eg. <code>curl -X GET -H \"Authorization: bearer xxxxx\" https://my.zerotier.com/api/network</code></p>
|
||||
* ZeroTier Central Network Management Portal API.<p>All API requests must have an API token header specified in the <code>Authorization: Bearer xxxxx</code> format. You can generate your API key by logging into <a href=\"https://my.zerotier.com\">ZeroTier Central</a> and creating a token on the Account page.</p><p>eg. <code>curl -X GET -H \"Authorization: bearer xxxxx\" https://my.zerotier.com/api/v1/network</code></p>
|
||||
*
|
||||
* The version of the OpenAPI document: v1
|
||||
*
|
||||
@@ -101,7 +101,7 @@ pub async fn accept_invitation(configuration: &configuration::Configuration, inv
|
||||
let local_var_client = &configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/org-invitation/{inviteID}", configuration.base_path, inviteID=crate::apis::urlencode(invite_id));
|
||||
let mut local_var_req_builder = local_var_client.post(local_var_uri_str.as_str());
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
@@ -130,7 +130,7 @@ pub async fn decline_invitation(configuration: &configuration::Configuration, in
|
||||
let local_var_client = &configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/org-invitation/{inviteID}", configuration.base_path, inviteID=crate::apis::urlencode(invite_id));
|
||||
let mut local_var_req_builder = local_var_client.delete(local_var_uri_str.as_str());
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
@@ -159,7 +159,7 @@ pub async fn get_invitation_by_id(configuration: &configuration::Configuration,
|
||||
let local_var_client = &configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/org-invitation/{inviteID}", configuration.base_path, inviteID=crate::apis::urlencode(invite_id));
|
||||
let mut local_var_req_builder = local_var_client.get(local_var_uri_str.as_str());
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
@@ -188,7 +188,7 @@ pub async fn get_organization(configuration: &configuration::Configuration, ) ->
|
||||
let local_var_client = &configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/org", configuration.base_path);
|
||||
let mut local_var_req_builder = local_var_client.get(local_var_uri_str.as_str());
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
@@ -217,7 +217,7 @@ pub async fn get_organization_by_id(configuration: &configuration::Configuration
|
||||
let local_var_client = &configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/org/{orgID}", configuration.base_path, orgID=crate::apis::urlencode(org_id));
|
||||
let mut local_var_req_builder = local_var_client.get(local_var_uri_str.as_str());
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
@@ -246,7 +246,7 @@ pub async fn get_organization_invitation_list(configuration: &configuration::Con
|
||||
let local_var_client = &configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/org-invitation", configuration.base_path);
|
||||
let mut local_var_req_builder = local_var_client.get(local_var_uri_str.as_str());
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
@@ -275,7 +275,7 @@ pub async fn get_organization_members(configuration: &configuration::Configurati
|
||||
let local_var_client = &configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/org/{orgID}/user", configuration.base_path, orgID=crate::apis::urlencode(org_id));
|
||||
let mut local_var_req_builder = local_var_client.get(local_var_uri_str.as_str());
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
@@ -304,7 +304,7 @@ pub async fn invite_user_by_email(configuration: &configuration::Configuration,
|
||||
let local_var_client = &configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/org-invitation", configuration.base_path);
|
||||
let mut local_var_req_builder = local_var_client.post(local_var_uri_str.as_str());
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* ZeroTier Central API
|
||||
*
|
||||
* ZeroTier Central Network Management Portal API.<p>All API requests must have an API token header specified in the <code>Authorization: Bearer xxxxx</code> format. You can generate your API key by logging into <a href=\"https://my.zerotier.com\">ZeroTier Central</a> and creating a token on the Account page.</p><p>eg. <code>curl -X GET -H \"Authorization: bearer xxxxx\" https://my.zerotier.com/api/network</code></p>
|
||||
* ZeroTier Central Network Management Portal API.<p>All API requests must have an API token header specified in the <code>Authorization: Bearer xxxxx</code> format. You can generate your API key by logging into <a href=\"https://my.zerotier.com\">ZeroTier Central</a> and creating a token on the Account page.</p><p>eg. <code>curl -X GET -H \"Authorization: bearer xxxxx\" https://my.zerotier.com/api/v1/network</code></p>
|
||||
*
|
||||
* The version of the OpenAPI document: v1
|
||||
*
|
||||
@@ -72,7 +72,7 @@ pub async fn add_api_token(configuration: &configuration::Configuration, user_id
|
||||
let local_var_client = &configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/user/{userID}/token", configuration.base_path, userID=crate::apis::urlencode(user_id));
|
||||
let mut local_var_req_builder = local_var_client.post(local_var_uri_str.as_str());
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
@@ -102,7 +102,7 @@ pub async fn delete_api_token(configuration: &configuration::Configuration, user
|
||||
let local_var_client = &configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/user/{userID}/token/{tokenName}", configuration.base_path, userID=crate::apis::urlencode(user_id), tokenName=crate::apis::urlencode(token_name));
|
||||
let mut local_var_req_builder = local_var_client.delete(local_var_uri_str.as_str());
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
@@ -132,7 +132,7 @@ pub async fn delete_user_by_id(configuration: &configuration::Configuration, use
|
||||
let local_var_client = &configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/user/{userID}", configuration.base_path, userID=crate::apis::urlencode(user_id));
|
||||
let mut local_var_req_builder = local_var_client.delete(local_var_uri_str.as_str());
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
@@ -161,7 +161,7 @@ pub async fn get_user_by_id(configuration: &configuration::Configuration, user_i
|
||||
let local_var_client = &configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/user/{userID}", configuration.base_path, userID=crate::apis::urlencode(user_id));
|
||||
let mut local_var_req_builder = local_var_client.get(local_var_uri_str.as_str());
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
@@ -190,7 +190,7 @@ pub async fn update_user_by_id(configuration: &configuration::Configuration, use
|
||||
let local_var_client = &configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/user/{userID}", configuration.base_path, userID=crate::apis::urlencode(user_id));
|
||||
let mut local_var_req_builder = local_var_client.post(local_var_uri_str.as_str());
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* ZeroTier Central API
|
||||
*
|
||||
* ZeroTier Central Network Management Portal API.<p>All API requests must have an API token header specified in the <code>Authorization: Bearer xxxxx</code> format. You can generate your API key by logging into <a href=\"https://my.zerotier.com\">ZeroTier Central</a> and creating a token on the Account page.</p><p>eg. <code>curl -X GET -H \"Authorization: bearer xxxxx\" https://my.zerotier.com/api/network</code></p>
|
||||
* ZeroTier Central Network Management Portal API.<p>All API requests must have an API token header specified in the <code>Authorization: Bearer xxxxx</code> format. You can generate your API key by logging into <a href=\"https://my.zerotier.com\">ZeroTier Central</a> and creating a token on the Account page.</p><p>eg. <code>curl -X GET -H \"Authorization: bearer xxxxx\" https://my.zerotier.com/api/v1/network</code></p>
|
||||
*
|
||||
* The version of the OpenAPI document: v1
|
||||
*
|
||||
@@ -22,6 +22,13 @@ pub enum GetRandomTokenError {
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
/// struct for typed errors of method `get_status`
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum GetStatusError {
|
||||
UnknownValue(serde_json::Value),
|
||||
}
|
||||
|
||||
|
||||
/// Get a random 32 character. Used by the web UI to generate API keys
|
||||
pub async fn get_random_token(configuration: &configuration::Configuration, ) -> Result<crate::models::RandomToken, Error<GetRandomTokenError>> {
|
||||
@@ -29,7 +36,7 @@ pub async fn get_random_token(configuration: &configuration::Configuration, ) ->
|
||||
let local_var_client = &configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/randomToken", configuration.base_path);
|
||||
let mut local_var_req_builder = local_var_client.get(local_var_uri_str.as_str());
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
@@ -53,3 +60,32 @@ pub async fn get_random_token(configuration: &configuration::Configuration, ) ->
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn get_status(configuration: &configuration::Configuration, ) -> Result<crate::models::Status, Error<GetStatusError>> {
|
||||
|
||||
let local_var_client = &configuration.client;
|
||||
|
||||
let local_var_uri_str = format!("{}/status", configuration.base_path);
|
||||
let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str());
|
||||
|
||||
if let Some(ref local_var_user_agent) = configuration.user_agent {
|
||||
local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone());
|
||||
}
|
||||
if let Some(ref local_var_token) = configuration.bearer_access_token {
|
||||
local_var_req_builder = local_var_req_builder.bearer_auth(local_var_token.to_owned());
|
||||
};
|
||||
|
||||
let local_var_req = local_var_req_builder.build()?;
|
||||
let local_var_resp = local_var_client.execute(local_var_req).await?;
|
||||
|
||||
let local_var_status = local_var_resp.status();
|
||||
let local_var_content = local_var_resp.text().await?;
|
||||
|
||||
if !local_var_status.is_client_error() && !local_var_status.is_server_error() {
|
||||
serde_json::from_str(&local_var_content).map_err(Error::from)
|
||||
} else {
|
||||
let local_var_entity: Option<GetStatusError> = serde_json::from_str(&local_var_content).ok();
|
||||
let local_var_error = ResponseContent { status: local_var_status, content: local_var_content, entity: local_var_entity };
|
||||
Err(Error::ResponseError(local_var_error))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* ZeroTier Central API
|
||||
*
|
||||
* ZeroTier Central Network Management Portal API.<p>All API requests must have an API token header specified in the <code>Authorization: Bearer xxxxx</code> format. You can generate your API key by logging into <a href=\"https://my.zerotier.com\">ZeroTier Central</a> and creating a token on the Account page.</p><p>eg. <code>curl -X GET -H \"Authorization: bearer xxxxx\" https://my.zerotier.com/api/network</code></p>
|
||||
* ZeroTier Central Network Management Portal API.<p>All API requests must have an API token header specified in the <code>Authorization: Bearer xxxxx</code> format. You can generate your API key by logging into <a href=\"https://my.zerotier.com\">ZeroTier Central</a> and creating a token on the Account page.</p><p>eg. <code>curl -X GET -H \"Authorization: bearer xxxxx\" https://my.zerotier.com/api/v1/network</code></p>
|
||||
*
|
||||
* The version of the OpenAPI document: v1
|
||||
*
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* ZeroTier Central API
|
||||
*
|
||||
* ZeroTier Central Network Management Portal API.<p>All API requests must have an API token header specified in the <code>Authorization: Bearer xxxxx</code> format. You can generate your API key by logging into <a href=\"https://my.zerotier.com\">ZeroTier Central</a> and creating a token on the Account page.</p><p>eg. <code>curl -X GET -H \"Authorization: bearer xxxxx\" https://my.zerotier.com/api/network</code></p>
|
||||
* ZeroTier Central Network Management Portal API.<p>All API requests must have an API token header specified in the <code>Authorization: Bearer xxxxx</code> format. You can generate your API key by logging into <a href=\"https://my.zerotier.com\">ZeroTier Central</a> and creating a token on the Account page.</p><p>eg. <code>curl -X GET -H \"Authorization: bearer xxxxx\" https://my.zerotier.com/api/v1/network</code></p>
|
||||
*
|
||||
* The version of the OpenAPI document: v1
|
||||
*
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* ZeroTier Central API
|
||||
*
|
||||
* ZeroTier Central Network Management Portal API.<p>All API requests must have an API token header specified in the <code>Authorization: Bearer xxxxx</code> format. You can generate your API key by logging into <a href=\"https://my.zerotier.com\">ZeroTier Central</a> and creating a token on the Account page.</p><p>eg. <code>curl -X GET -H \"Authorization: bearer xxxxx\" https://my.zerotier.com/api/network</code></p>
|
||||
* ZeroTier Central Network Management Portal API.<p>All API requests must have an API token header specified in the <code>Authorization: Bearer xxxxx</code> format. You can generate your API key by logging into <a href=\"https://my.zerotier.com\">ZeroTier Central</a> and creating a token on the Account page.</p><p>eg. <code>curl -X GET -H \"Authorization: bearer xxxxx\" https://my.zerotier.com/api/v1/network</code></p>
|
||||
*
|
||||
* The version of the OpenAPI document: v1
|
||||
*
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user