All URIs are relative to https://api.forestvpn.com/cloud/v1
Method | HTTP request | Description |
---|---|---|
getProfile | GET /profiles/{profileId}/ | Profile details |
getProfileProtocolConfig | GET /profiles/{profileId}/protocols/{protocolId}.conf | Profile protocol config |
getProfileProtocols | GET /profiles/{profileId}/protocols/ | Profile supported protocols |
Profile getProfile(profileId)
Profile details
// Import classes:
//import com.forestvpn.cloud.sdk.client.infrastructure.*
//import com.forestvpn.cloud.sdk.client.models.*
val apiInstance = ProfilesForestVPNCloudSDKAPI()
val profileId : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID |
try {
val result : Profile = apiInstance.getProfile(profileId)
println(result)
} catch (e: ClientException) {
println("4xx response calling ProfilesForestVPNCloudSDKAPI#getProfile")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ProfilesForestVPNCloudSDKAPI#getProfile")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
profileId | java.util.UUID |
Configure BearerTokenAuth: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
kotlin.String getProfileProtocolConfig(profileId, protocolId)
Profile protocol config
// Import classes:
//import com.forestvpn.cloud.sdk.client.infrastructure.*
//import com.forestvpn.cloud.sdk.client.models.*
val apiInstance = ProfilesForestVPNCloudSDKAPI()
val profileId : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID |
val protocolId : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID |
try {
val result : kotlin.String = apiInstance.getProfileProtocolConfig(profileId, protocolId)
println(result)
} catch (e: ClientException) {
println("4xx response calling ProfilesForestVPNCloudSDKAPI#getProfileProtocolConfig")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ProfilesForestVPNCloudSDKAPI#getProfileProtocolConfig")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
profileId | java.util.UUID | ||
protocolId | java.util.UUID |
kotlin.String
Configure BearerTokenAuth: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
kotlin.collections.List<Protocol> getProfileProtocols(profileId)
Profile supported protocols
// Import classes:
//import com.forestvpn.cloud.sdk.client.infrastructure.*
//import com.forestvpn.cloud.sdk.client.models.*
val apiInstance = ProfilesForestVPNCloudSDKAPI()
val profileId : java.util.UUID = 38400000-8cf0-11bd-b23e-10b96e4ef00d // java.util.UUID |
try {
val result : kotlin.collections.List<Protocol> = apiInstance.getProfileProtocols(profileId)
println(result)
} catch (e: ClientException) {
println("4xx response calling ProfilesForestVPNCloudSDKAPI#getProfileProtocols")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ProfilesForestVPNCloudSDKAPI#getProfileProtocols")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
profileId | java.util.UUID |
kotlin.collections.List<Protocol>
Configure BearerTokenAuth: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json