mirror of
https://github.com/zerotier/zerotier-rust-api.git
synced 2026-05-22 16:26:25 -07:00
zerotier-one-api 1.0.2
Signed-off-by: Erik Hollensbe <linux@hollensbe.org>
This commit is contained in:
@@ -3,6 +3,14 @@
|
||||
.travis.yml
|
||||
Cargo.toml
|
||||
README.md
|
||||
docs/ControllerApi.md
|
||||
docs/ControllerNetwork.md
|
||||
docs/ControllerNetworkIpAssignmentPools.md
|
||||
docs/ControllerNetworkMember.md
|
||||
docs/ControllerNetworkRoutes.md
|
||||
docs/ControllerNetworkV4AssignMode.md
|
||||
docs/ControllerNetworkV6AssignMode.md
|
||||
docs/ControllerStatus.md
|
||||
docs/Network.md
|
||||
docs/NetworkAllOf.md
|
||||
docs/NetworkAllOf1.md
|
||||
@@ -18,11 +26,19 @@ docs/StatusConfig.md
|
||||
docs/StatusConfigSettings.md
|
||||
git_push.sh
|
||||
src/apis/configuration.rs
|
||||
src/apis/controller_api.rs
|
||||
src/apis/mod.rs
|
||||
src/apis/network_api.rs
|
||||
src/apis/peer_api.rs
|
||||
src/apis/status_api.rs
|
||||
src/lib.rs
|
||||
src/models/controller_network.rs
|
||||
src/models/controller_network_ip_assignment_pools.rs
|
||||
src/models/controller_network_member.rs
|
||||
src/models/controller_network_routes.rs
|
||||
src/models/controller_network_v4_assign_mode.rs
|
||||
src/models/controller_network_v6_assign_mode.rs
|
||||
src/models/controller_status.rs
|
||||
src/models/mod.rs
|
||||
src/models/network.rs
|
||||
src/models/network_all_of.rs
|
||||
|
||||
@@ -1 +1 @@
|
||||
5.2.0-SNAPSHOT
|
||||
5.2.1-SNAPSHOT
|
||||
@@ -1,9 +1,9 @@
|
||||
[package]
|
||||
name = "zerotier-one-api"
|
||||
version = "1.0.1"
|
||||
version = "1.0.2"
|
||||
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 ZeroTierOne JSON API"
|
||||
authors = ["Erik Hollensbe <erik.hollensbe@zerotier.com>", "Adam Ierymenko <adam.ierymenko@zerotier.com>"]
|
||||
license = "BSD-3-Clause"
|
||||
|
||||
[dependencies]
|
||||
@@ -13,7 +13,6 @@ serde_json = "^1.0"
|
||||
url = "^2.2"
|
||||
[dependencies.reqwest]
|
||||
version = "^0.11"
|
||||
default-features = false
|
||||
features = ["json", "multipart"]
|
||||
|
||||
[dev-dependencies]
|
||||
|
||||
@@ -24,17 +24,31 @@ All URIs are relative to *http://localhost:9993*
|
||||
|
||||
Class | Method | HTTP request | Description
|
||||
------------ | ------------- | ------------- | -------------
|
||||
*NetworkApi* | [**delete_network**](docs/NetworkApi.md#delete_network) | **delete** /network/{networkID} | Leave a network
|
||||
*NetworkApi* | [**get_network**](docs/NetworkApi.md#get_network) | **get** /network/{networkID} | Gets a joined Network by ID.
|
||||
*NetworkApi* | [**get_networks**](docs/NetworkApi.md#get_networks) | **get** /network | Get all network memberships.
|
||||
*NetworkApi* | [**update_network**](docs/NetworkApi.md#update_network) | **post** /network/{networkID} | Join a network or update it's configuration
|
||||
*PeerApi* | [**get_peer**](docs/PeerApi.md#get_peer) | **get** /peer/{address} | Get information about a specific peer.
|
||||
*PeerApi* | [**get_peers**](docs/PeerApi.md#get_peers) | **get** /peer | Get all peers.
|
||||
*StatusApi* | [**get_status**](docs/StatusApi.md#get_status) | **get** /status | Node status and addressing info.
|
||||
*ControllerApi* | [**generate_controller_network**](docs/ControllerApi.md#generate_controller_network) | **POST** /controller/network/{controllerID}______ | Generate Random Network ID.
|
||||
*ControllerApi* | [**get_controller_network**](docs/ControllerApi.md#get_controller_network) | **GET** /controller/network/{networkID} | Get Network by ID.
|
||||
*ControllerApi* | [**get_controller_network_member**](docs/ControllerApi.md#get_controller_network_member) | **GET** /controller/network/{networkID}/member{nodeID} | Get Network Member Details by ID.
|
||||
*ControllerApi* | [**get_controller_network_members**](docs/ControllerApi.md#get_controller_network_members) | **GET** /controller/network/{networkID}/member | List Network Members.
|
||||
*ControllerApi* | [**get_controller_networks**](docs/ControllerApi.md#get_controller_networks) | **GET** /controller/network | List Networks.
|
||||
*ControllerApi* | [**get_controller_status**](docs/ControllerApi.md#get_controller_status) | **GET** /controller | Get Controller Status.
|
||||
*ControllerApi* | [**set_controller_network**](docs/ControllerApi.md#set_controller_network) | **POST** /controller/network/{networkID} | Create or Update a Network.
|
||||
*NetworkApi* | [**delete_network**](docs/NetworkApi.md#delete_network) | **DELETE** /network/{networkID} | Leave a network.
|
||||
*NetworkApi* | [**get_network**](docs/NetworkApi.md#get_network) | **GET** /network/{networkID} | Get a joined Network membership configuration by Network ID.
|
||||
*NetworkApi* | [**get_networks**](docs/NetworkApi.md#get_networks) | **GET** /network | Get all network memberships.
|
||||
*NetworkApi* | [**update_network**](docs/NetworkApi.md#update_network) | **POST** /network/{networkID} | Join a network or update it's configuration by Network ID.
|
||||
*PeerApi* | [**get_peer**](docs/PeerApi.md#get_peer) | **GET** /peer/{address} | Get information about a specific peer by Node ID.
|
||||
*PeerApi* | [**get_peers**](docs/PeerApi.md#get_peers) | **GET** /peer | Get all peers.
|
||||
*StatusApi* | [**get_status**](docs/StatusApi.md#get_status) | **GET** /status | Node status and addressing info.
|
||||
|
||||
|
||||
## Documentation For Models
|
||||
|
||||
- [ControllerNetwork](docs/ControllerNetwork.md)
|
||||
- [ControllerNetworkIpAssignmentPools](docs/ControllerNetworkIpAssignmentPools.md)
|
||||
- [ControllerNetworkMember](docs/ControllerNetworkMember.md)
|
||||
- [ControllerNetworkRoutes](docs/ControllerNetworkRoutes.md)
|
||||
- [ControllerNetworkV4AssignMode](docs/ControllerNetworkV4AssignMode.md)
|
||||
- [ControllerNetworkV6AssignMode](docs/ControllerNetworkV6AssignMode.md)
|
||||
- [ControllerStatus](docs/ControllerStatus.md)
|
||||
- [Network](docs/Network.md)
|
||||
- [NetworkAllOf](docs/NetworkAllOf.md)
|
||||
- [NetworkAllOf1](docs/NetworkAllOf1.md)
|
||||
|
||||
@@ -0,0 +1,218 @@
|
||||
# \ControllerApi
|
||||
|
||||
All URIs are relative to *http://localhost:9993*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**generate_controller_network**](ControllerApi.md#generate_controller_network) | **POST** /controller/network/{controllerID}______ | Generate Random Network ID.
|
||||
[**get_controller_network**](ControllerApi.md#get_controller_network) | **GET** /controller/network/{networkID} | Get Network by ID.
|
||||
[**get_controller_network_member**](ControllerApi.md#get_controller_network_member) | **GET** /controller/network/{networkID}/member{nodeID} | Get Network Member Details by ID.
|
||||
[**get_controller_network_members**](ControllerApi.md#get_controller_network_members) | **GET** /controller/network/{networkID}/member | List Network Members.
|
||||
[**get_controller_networks**](ControllerApi.md#get_controller_networks) | **GET** /controller/network | List Networks.
|
||||
[**get_controller_status**](ControllerApi.md#get_controller_status) | **GET** /controller | Get Controller Status.
|
||||
[**set_controller_network**](ControllerApi.md#set_controller_network) | **POST** /controller/network/{networkID} | Create or Update a Network.
|
||||
|
||||
|
||||
|
||||
## generate_controller_network
|
||||
|
||||
> crate::models::ControllerNetwork generate_controller_network(controller_id, controller_network)
|
||||
Generate Random Network ID.
|
||||
|
||||
Create a new network with a random ID.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**controller_id** | **String** | Node ID of the controller. | [required] |
|
||||
**controller_network** | [**ControllerNetwork**](ControllerNetwork.md) | Network object JSON. | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**crate::models::ControllerNetwork**](ControllerNetwork.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **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)
|
||||
|
||||
|
||||
## get_controller_network
|
||||
|
||||
> crate::models::ControllerNetwork get_controller_network(network_id)
|
||||
Get Network by ID.
|
||||
|
||||
Get details of a network by it's ID.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**network_id** | **String** | ID of the network. | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**crate::models::ControllerNetwork**](ControllerNetwork.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### 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)
|
||||
|
||||
|
||||
## get_controller_network_member
|
||||
|
||||
> crate::models::ControllerNetworkMember get_controller_network_member(network_id, node_id)
|
||||
Get Network Member Details by ID.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**network_id** | **String** | ID of the network. | [required] |
|
||||
**node_id** | **String** | ID of the member node. | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**crate::models::ControllerNetworkMember**](ControllerNetworkMember.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### 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)
|
||||
|
||||
|
||||
## get_controller_network_members
|
||||
|
||||
> ::std::collections::HashMap<String, i32> get_controller_network_members(network_id)
|
||||
List Network Members.
|
||||
|
||||
JSON object containing all member IDs as keys and their memberRevisionCounter values as values.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**network_id** | **String** | ID of the network. | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
**::std::collections::HashMap<String, i32>**
|
||||
|
||||
### Authorization
|
||||
|
||||
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### 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)
|
||||
|
||||
|
||||
## get_controller_networks
|
||||
|
||||
> Vec<String> get_controller_networks()
|
||||
List Networks.
|
||||
|
||||
List IDs of all networks hosted by this controller.
|
||||
|
||||
### Parameters
|
||||
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### Return type
|
||||
|
||||
**Vec<String>**
|
||||
|
||||
### Authorization
|
||||
|
||||
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### 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)
|
||||
|
||||
|
||||
## get_controller_status
|
||||
|
||||
> crate::models::ControllerStatus get_controller_status()
|
||||
Get Controller Status.
|
||||
|
||||
Check for controller function and return controller status.
|
||||
|
||||
### Parameters
|
||||
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### Return type
|
||||
|
||||
[**crate::models::ControllerStatus**](ControllerStatus.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### 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)
|
||||
|
||||
|
||||
## set_controller_network
|
||||
|
||||
> crate::models::ControllerNetwork set_controller_network(network_id, controller_network)
|
||||
Create or Update a Network.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**network_id** | **String** | ID of the network. | [required] |
|
||||
**controller_network** | [**ControllerNetwork**](ControllerNetwork.md) | Network object JSON. | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
[**crate::models::ControllerNetwork**](ControllerNetwork.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **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)
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
# ControllerNetwork
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | Option<**String**> | | [optional][readonly]
|
||||
**nwid** | Option<**String**> | | [optional][readonly]
|
||||
**objtype** | Option<**String**> | | [optional][readonly]
|
||||
**name** | Option<**String**> | | [optional]
|
||||
**creation_time** | Option<**f32**> | | [optional][readonly]
|
||||
**private** | Option<**bool**> | | [optional]
|
||||
**enable_broadcast** | Option<**bool**> | | [optional]
|
||||
**v4_assign_mode** | Option<[**crate::models::ControllerNetworkV4AssignMode**](ControllerNetwork_v4AssignMode.md)> | | [optional]
|
||||
**v6_assign_mode** | Option<[**crate::models::ControllerNetworkV6AssignMode**](ControllerNetwork_v6AssignMode.md)> | | [optional]
|
||||
**mtu** | Option<**i32**> | | [optional]
|
||||
**multicast_limit** | Option<**i32**> | | [optional]
|
||||
**revision** | Option<**i32**> | | [optional][readonly]
|
||||
**routes** | Option<[**Vec<crate::models::ControllerNetworkRoutes>**](ControllerNetwork_routes.md)> | | [optional]
|
||||
**ip_assignment_pools** | Option<[**Vec<crate::models::ControllerNetworkIpAssignmentPools>**](ControllerNetwork_ipAssignmentPools.md)> | | [optional]
|
||||
**rules** | Option<[**Vec<serde_json::Value>**](serde_json::Value.md)> | | [optional]
|
||||
**capabilities** | Option<[**Vec<serde_json::Value>**](serde_json::Value.md)> | | [optional]
|
||||
**tags** | Option<[**Vec<serde_json::Value>**](serde_json::Value.md)> | | [optional]
|
||||
**remote_trace_target** | Option<**String**> | | [optional]
|
||||
**remote_trace_level** | Option<**i32**> | | [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,12 @@
|
||||
# ControllerNetworkIpAssignmentPools
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**ip_range_start** | Option<**String**> | | [optional]
|
||||
**ip_range_end** | Option<**String**> | | [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,22 @@
|
||||
# ControllerNetworkMember
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | Option<**String**> | | [optional][readonly]
|
||||
**address** | Option<**String**> | | [optional][readonly]
|
||||
**nwid** | Option<**String**> | | [optional][readonly]
|
||||
**authorized** | Option<**bool**> | | [optional]
|
||||
**active_bridge** | Option<**bool**> | | [optional]
|
||||
**identity** | Option<**String**> | | [optional][readonly]
|
||||
**ip_assignments** | Option<**Vec<String>**> | | [optional]
|
||||
**revision** | Option<**i32**> | | [optional][readonly]
|
||||
**v_major** | Option<**i32**> | | [optional][readonly]
|
||||
**v_minor** | Option<**i32**> | | [optional][readonly]
|
||||
**v_rev** | Option<**i32**> | | [optional][readonly]
|
||||
**v_proto** | Option<**i32**> | | [optional][readonly]
|
||||
|
||||
[[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,12 @@
|
||||
# ControllerNetworkRoutes
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**target** | Option<**String**> | | [optional]
|
||||
**via** | Option<**String**> | | [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,11 @@
|
||||
# ControllerNetworkV4AssignMode
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**zt** | 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)
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
# ControllerNetworkV6AssignMode
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**var_6plane** | Option<**bool**> | | [optional]
|
||||
**rfc4193** | Option<**bool**> | | [optional]
|
||||
**zt** | 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)
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
# ControllerStatus
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**controller** | Option<**bool**> | | [optional][readonly]
|
||||
**api_version** | Option<**i32**> | | [optional][readonly]
|
||||
**clock** | Option<**i32**> | | [optional][readonly]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -4,22 +4,22 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**allow_dns** | Option<**bool**> | Let ZeroTier modify the system's DNS settings | [optional]
|
||||
**allow_default** | Option<**bool**> | Let ZeroTier to modify the system's default route. | [optional]
|
||||
**allow_global** | Option<**bool**> | Let ZeroTier to manage IP addresses and Route assignments that aren't in private ranges (rfc1918). | [optional]
|
||||
**allow_dns** | Option<**bool**> | Let ZeroTier modify the system's DNS settings. | [optional]
|
||||
**allow_default** | Option<**bool**> | Let ZeroTier modify the system's default route. | [optional]
|
||||
**allow_global** | Option<**bool**> | Let ZeroTier manage IP addresses and Route assignments that aren't in private ranges (rfc1918). | [optional]
|
||||
**allow_managed** | Option<**bool**> | Let ZeroTier to manage IP addresses and Route assignments. | [optional]
|
||||
**assigned_addresses** | Option<**Vec<String>**> | | [optional]
|
||||
**bridge** | Option<**bool**> | | [optional]
|
||||
**broadcast_enabled** | Option<**bool**> | | [optional]
|
||||
**dns** | Option<[**crate::models::NetworkAllOf1Dns**](Network_allOf_1_dns.md)> | | [optional]
|
||||
**id** | Option<**String**> | | [optional]
|
||||
**mac** | Option<**String**> | MAC address for this network's interface | [optional]
|
||||
**mac** | Option<**String**> | MAC address for this network's interface. | [optional]
|
||||
**mtu** | Option<**i32**> | | [optional]
|
||||
**multicast_subscriptions** | Option<[**Vec<crate::models::NetworkAllOf1MulticastSubscriptions>**](Network_allOf_1_multicastSubscriptions.md)> | | [optional]
|
||||
**name** | Option<**String**> | | [optional]
|
||||
**netconf_revision** | Option<**i32**> | | [optional]
|
||||
**port_device_name** | Option<**String**> | | [optional]
|
||||
**port_error** | Option<**f32**> | | [optional]
|
||||
**port_error** | Option<**i32**> | | [optional]
|
||||
**routes** | Option<[**Vec<serde_json::Value>**](serde_json::Value.md)> | | [optional]
|
||||
**status** | Option<**String**> | | [optional]
|
||||
**_type** | Option<**String**> | | [optional]
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**allow_dns** | Option<**bool**> | Let ZeroTier modify the system's DNS settings | [optional]
|
||||
**allow_default** | Option<**bool**> | Let ZeroTier to modify the system's default route. | [optional]
|
||||
**allow_global** | Option<**bool**> | Let ZeroTier to manage IP addresses and Route assignments that aren't in private ranges (rfc1918). | [optional]
|
||||
**allow_managed** | Option<**bool**> | Let ZeroTier to manage IP addresses and Route assignments. | [optional]
|
||||
**allow_dns** | Option<**bool**> | Let ZeroTier modify the system's DNS settings. | [optional]
|
||||
**allow_default** | Option<**bool**> | Let ZeroTier modify the system's default route. | [optional]
|
||||
**allow_global** | Option<**bool**> | Let ZeroTier manage IP addresses and route assignments that aren't in private ranges (rfc1918). | [optional]
|
||||
**allow_managed** | Option<**bool**> | Let ZeroTier manage IP addresses and Route assignments. | [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)
|
||||
|
||||
|
||||
@@ -4,22 +4,22 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**allow_dns** | Option<**bool**> | Let ZeroTier modify the system's DNS settings | [optional]
|
||||
**allow_default** | Option<**bool**> | Let ZeroTier to modify the system's default route. | [optional]
|
||||
**allow_global** | Option<**bool**> | Let ZeroTier to manage IP addresses and Route assignments that aren't in private ranges (rfc1918). | [optional]
|
||||
**allow_dns** | Option<**bool**> | Let ZeroTier modify the system's DNS settings. | [optional]
|
||||
**allow_default** | Option<**bool**> | Let ZeroTier modify the system's default route. | [optional]
|
||||
**allow_global** | Option<**bool**> | Let ZeroTier manage IP addresses and Route assignments that aren't in private ranges (rfc1918). | [optional]
|
||||
**allow_managed** | Option<**bool**> | Let ZeroTier to manage IP addresses and Route assignments. | [optional]
|
||||
**assigned_addresses** | Option<**Vec<String>**> | | [optional]
|
||||
**bridge** | Option<**bool**> | | [optional]
|
||||
**broadcast_enabled** | Option<**bool**> | | [optional]
|
||||
**dns** | Option<[**crate::models::NetworkAllOf1Dns**](Network_allOf_1_dns.md)> | | [optional]
|
||||
**id** | Option<**String**> | | [optional]
|
||||
**mac** | Option<**String**> | MAC address for this network's interface | [optional]
|
||||
**mac** | Option<**String**> | MAC address for this network's interface. | [optional]
|
||||
**mtu** | Option<**i32**> | | [optional]
|
||||
**multicast_subscriptions** | Option<[**Vec<crate::models::NetworkAllOf1MulticastSubscriptions>**](Network_allOf_1_multicastSubscriptions.md)> | | [optional]
|
||||
**name** | Option<**String**> | | [optional]
|
||||
**netconf_revision** | Option<**i32**> | | [optional]
|
||||
**port_device_name** | Option<**String**> | | [optional]
|
||||
**port_error** | Option<**f32**> | | [optional]
|
||||
**port_error** | Option<**i32**> | | [optional]
|
||||
**routes** | Option<[**Vec<serde_json::Value>**](serde_json::Value.md)> | | [optional]
|
||||
**status** | Option<**String**> | | [optional]
|
||||
**_type** | Option<**String**> | | [optional]
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**adi** | Option<**f32**> | | [optional]
|
||||
**adi** | Option<**i32**> | | [optional]
|
||||
**mac** | Option<**String**> | | [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)
|
||||
|
||||
@@ -4,17 +4,17 @@ All URIs are relative to *http://localhost:9993*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**delete_network**](NetworkApi.md#delete_network) | **delete** /network/{networkID} | Leave a network
|
||||
[**get_network**](NetworkApi.md#get_network) | **get** /network/{networkID} | Gets a joined Network by ID.
|
||||
[**get_networks**](NetworkApi.md#get_networks) | **get** /network | Get all network memberships.
|
||||
[**update_network**](NetworkApi.md#update_network) | **post** /network/{networkID} | Join a network or update it's configuration
|
||||
[**delete_network**](NetworkApi.md#delete_network) | **DELETE** /network/{networkID} | Leave a network.
|
||||
[**get_network**](NetworkApi.md#get_network) | **GET** /network/{networkID} | Get a joined Network membership configuration by Network ID.
|
||||
[**get_networks**](NetworkApi.md#get_networks) | **GET** /network | Get all network memberships.
|
||||
[**update_network**](NetworkApi.md#update_network) | **POST** /network/{networkID} | Join a network or update it's configuration by Network ID.
|
||||
|
||||
|
||||
|
||||
## delete_network
|
||||
|
||||
> delete_network(network_id)
|
||||
Leave a network
|
||||
Leave a network.
|
||||
|
||||
### Parameters
|
||||
|
||||
@@ -42,14 +42,14 @@ Name | Type | Description | Required | Notes
|
||||
## get_network
|
||||
|
||||
> crate::models::Network get_network(network_id)
|
||||
Gets a joined Network by ID.
|
||||
Get a joined Network membership configuration by Network ID.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**network_id** | **String** | ID of the network to change | [required] |
|
||||
**network_id** | **String** | ID of the network to get. | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -95,15 +95,15 @@ This endpoint does not need any parameter.
|
||||
## update_network
|
||||
|
||||
> crate::models::Network update_network(network_id, network)
|
||||
Join a network or update it's configuration
|
||||
Join a network or update it's configuration by Network ID.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**network_id** | **String** | ID of the network to change | [required] |
|
||||
**network** | [**Network**](Network.md) | Network object JSON | [required] |
|
||||
**network_id** | **String** | ID of the network to change. | [required] |
|
||||
**network** | [**Network**](Network.md) | Network membership object | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
|
||||
@@ -4,22 +4,22 @@ All URIs are relative to *http://localhost:9993*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**get_peer**](PeerApi.md#get_peer) | **get** /peer/{address} | Get information about a specific peer.
|
||||
[**get_peers**](PeerApi.md#get_peers) | **get** /peer | Get all peers.
|
||||
[**get_peer**](PeerApi.md#get_peer) | **GET** /peer/{address} | Get information about a specific peer by Node ID.
|
||||
[**get_peers**](PeerApi.md#get_peers) | **GET** /peer | Get all peers.
|
||||
|
||||
|
||||
|
||||
## get_peer
|
||||
|
||||
> crate::models::Peer get_peer(address)
|
||||
Get information about a specific peer.
|
||||
Get information about a specific peer by Node ID.
|
||||
|
||||
### Parameters
|
||||
|
||||
|
||||
Name | Type | Description | Required | Notes
|
||||
------------- | ------------- | ------------- | ------------- | -------------
|
||||
**address** | **String** | ZeroTier address of the peer | [required] |
|
||||
**address** | **String** | ZeroTier address of the peer to get | [required] |
|
||||
|
||||
### Return type
|
||||
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**address** | Option<**String**> | | [optional]
|
||||
**clock** | Option<**f32**> | | [optional]
|
||||
**clock** | Option<**i32**> | | [optional]
|
||||
**config** | Option<[**crate::models::StatusConfig**](Status_config.md)> | | [optional]
|
||||
**online** | Option<**bool**> | | [optional]
|
||||
**planet_world_id** | Option<**f32**> | | [optional]
|
||||
**planet_world_timestamp** | Option<**f32**> | | [optional]
|
||||
**planet_world_id** | Option<**i32**> | | [optional]
|
||||
**planet_world_timestamp** | Option<**i32**> | | [optional]
|
||||
**public_identity** | Option<**String**> | | [optional]
|
||||
**tcp_fallback_active** | Option<**bool**> | | [optional]
|
||||
**version** | Option<**String**> | | [optional]
|
||||
|
||||
@@ -4,7 +4,7 @@ All URIs are relative to *http://localhost:9993*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**get_status**](StatusApi.md#get_status) | **get** /status | Node status and addressing info.
|
||||
[**get_status**](StatusApi.md#get_status) | **GET** /status | Node status and addressing info.
|
||||
|
||||
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user