All URIs are relative to https://api.forestvpn.com/cloud/v1
Method | HTTP request | Description |
---|---|---|
attachDeviceInfo | POST /profiles/{profileId}/device/info/ | Attach device info |
getProfile | GET /profiles/{profileId}/ | Profile details |
getProfileProtocolConfig | GET /profiles/{profileId}/protocols/{protocolSlug}.conf | Profile protocol config |
getProfileProtocols | GET /profiles/{profileId}/protocols/ | Profile supported protocols |
uploadProfileProtocolLogs | POST /profiles/{profileId}/protocols/{protocolSlug}/logs/ | Upload profile protocol diagnostic logs |
open class func attachDeviceInfo(profileId: UUID, deviceInfo: DeviceInfo? = nil, completion: @escaping (_ data: String?, _ error: Error?) -> Void)
Attach device info
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ForestVPNCloudSDKAPI
let profileId = 987 // UUID |
let deviceInfo = DeviceInfo(type: DeviceType(), info: "TODO") // DeviceInfo | (optional)
// Attach device info
ProfilesAPI.attachDeviceInfo(profileId: profileId, deviceInfo: deviceInfo) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
profileId | UUID | ||
deviceInfo | DeviceInfo | [optional] |
String
- Content-Type: application/json
- Accept: text/plain, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func getProfile(profileId: UUID, completion: @escaping (_ data: Profile?, _ error: Error?) -> Void)
Profile details
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ForestVPNCloudSDKAPI
let profileId = 987 // UUID |
// Profile details
ProfilesAPI.getProfile(profileId: profileId) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
profileId | UUID |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func getProfileProtocolConfig(profileId: UUID, protocolSlug: UUID, completion: @escaping (_ data: String?, _ error: Error?) -> Void)
Profile protocol config
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ForestVPNCloudSDKAPI
let profileId = 987 // UUID |
let protocolSlug = 987 // UUID |
// Profile protocol config
ProfilesAPI.getProfileProtocolConfig(profileId: profileId, protocolSlug: protocolSlug) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
profileId | UUID | ||
protocolSlug | UUID |
String
- Content-Type: Not defined
- Accept: text/plain, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func getProfileProtocols(profileId: UUID, completion: @escaping (_ data: [ModelProtocol]?, _ error: Error?) -> Void)
Profile supported protocols
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ForestVPNCloudSDKAPI
let profileId = 987 // UUID |
// Profile supported protocols
ProfilesAPI.getProfileProtocols(profileId: profileId) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
profileId | UUID |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
open class func uploadProfileProtocolLogs(profileId: UUID, protocolSlug: UUID, completion: @escaping (_ data: String?, _ error: Error?) -> Void)
Upload profile protocol diagnostic logs
// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new
import ForestVPNCloudSDKAPI
let profileId = 987 // UUID |
let protocolSlug = 987 // UUID |
// Upload profile protocol diagnostic logs
ProfilesAPI.uploadProfileProtocolLogs(profileId: profileId, protocolSlug: protocolSlug) { (response, error) in
guard error == nil else {
print(error)
return
}
if (response) {
dump(response)
}
}
Name | Type | Description | Notes |
---|---|---|---|
profileId | UUID | ||
protocolSlug | UUID |
String
- Content-Type: Not defined
- Accept: text/plain, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]