All URIs are relative to https://api.forestvpn.com/v2
Method | HTTP request | Description |
---|---|---|
getWireGuardPeerInfo | GET /wireguard/peers/{pubKey}/ | Wireguard peer info |
listWireGuardPeers | GET /wireguard/peers/ | Wireguard peers list |
WireGuardPeerInfo getWireGuardPeerInfo(pubKey)
Wireguard peer info
// Import classes:
//import com.forestvpn.api.client.infrastructure.*
//import com.forestvpn.api.client.models.*
val apiInstance = WireguardForestVPNAPI()
val pubKey : kotlin.String = pubKey_example // kotlin.String |
try {
val result : WireGuardPeerInfo = apiInstance.getWireGuardPeerInfo(pubKey)
println(result)
} catch (e: ClientException) {
println("4xx response calling WireguardForestVPNAPI#getWireGuardPeerInfo")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling WireguardForestVPNAPI#getWireGuardPeerInfo")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
pubKey | kotlin.String |
Configure bearerAuth: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
kotlin.collections.List<WireGuardPeerInfo> listWireGuardPeers()
Wireguard peers list
// Import classes:
//import com.forestvpn.api.client.infrastructure.*
//import com.forestvpn.api.client.models.*
val apiInstance = WireguardForestVPNAPI()
try {
val result : kotlin.collections.List<WireGuardPeerInfo> = apiInstance.listWireGuardPeers()
println(result)
} catch (e: ClientException) {
println("4xx response calling WireguardForestVPNAPI#listWireGuardPeers")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling WireguardForestVPNAPI#listWireGuardPeers")
e.printStackTrace()
}
This endpoint does not need any parameter.
kotlin.collections.List<WireGuardPeerInfo>
Configure bearerAuth: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json