ForestVPN Cloud API

The Ruby gem for the ForestVPN Cloud API.

ForestVPN Cloud - it's a Google Cloud but for VPN apps. Ready to use VPN Cloud Platform minimizes efforts to build fast, secure, and modern VPN apps.

For more information, please visit ForestVPN

Installation

Install from Gems

gem install forestvpn_cloud_api

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'forestvpn_cloud_api'

# Setup authorization
ForestVPNCloudAPI.configure do |config|
  # Configure API key authorization: ApiTokenAuth
  config.api_key['ApiTokenAuth'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  # config.api_key_prefix['ApiTokenAuth'] = 'Bearer'

  # Configure Bearer authorization (JWT): BearerTokenAuth
  config.access_token = 'YOUR_BEARER_TOKEN'
end

api_instance = ForestVPNCloudAPI::GeoApi.new

begin
  #Location list
  result = api_instance.list_locations
  p result
rescue ForestVPNCloudAPI::ApiError => e
  puts "Exception when calling GeoApi->list_locations: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://api.forestvpn.com/cloud/v1

Class Method HTTP request Description
ForestVPNCloudAPI::GeoApi list_locations GET /locations/ Location list
ForestVPNCloudAPI::LimitsApi create_data_usage_limit **
POST** /limits/data-usage/ Create data usage limit
ForestVPNCloudAPI::LimitsApi delete_data_usage_limit **
DELETE** /limits/data-usage/limitId/ Delete data usage limit
ForestVPNCloudAPI::LimitsApi get_data_usage_limit **
GET** /limits/data-usage/limitId/ Data usage limit details
ForestVPNCloudAPI::LimitsApi lis_data_usage_limits **
GET** /limits/data-usage/ Data usage limit list
ForestVPNCloudAPI::LimitsApi [**
partial_update_data_usage_limit**](docs/LimitsApi.md#partial_update_data_usage_limit) **
PATCH** /limits/data-usage/limitId/ Partial update profile details
ForestVPNCloudAPI::LimitsApi update_data_usage_limit **
PUT** /limits/data-usage/limitId/ Update data usage limit
ForestVPNCloudAPI::ProfilesApi create_profile **
POST** /profiles/ Create profile
ForestVPNCloudAPI::ProfilesApi [**
create_profile_data_usage_limit**](docs/ProfilesApi.md#create_profile_data_usage_limit) **
POST** /profiles/profileId/limits/data-usages/ Create profile data usage limit
ForestVPNCloudAPI::ProfilesApi delete_profile **
DELETE** /profiles/profileId/ Delete profile
ForestVPNCloudAPI::ProfilesApi [**
delete_profile_data_usage_limit**](docs/ProfilesApi.md#delete_profile_data_usage_limit) **
DELETE** /profiles/profileId/limits/data-usages/limitId/ Delete profile data usage limit
ForestVPNCloudAPI::ProfilesApi get_profile **
GET** /profiles/profileId/ Profile details
ForestVPNCloudAPI::ProfilesApi [**
get_profile_data_usage_limit**](docs/ProfilesApi.md#get_profile_data_usage_limit) **
GET** /profiles/profileId/limits/data-usages/limitId/ Profile data usage limit details
ForestVPNCloudAPI::ProfilesApi [**
list_profile_data_usage_limits**](docs/ProfilesApi.md#list_profile_data_usage_limits) **
GET** /profiles/profileId/limits/data-usages/ Profile data usage limits list
ForestVPNCloudAPI::ProfilesApi list_profile_stats **
GET** /profiles/profileId/stats/ Profile stats list
ForestVPNCloudAPI::ProfilesApi list_profiles **
GET** /profiles/ Profile list
ForestVPNCloudAPI::ProfilesApi partial_update_profile **
PATCH** /profiles/profileId/ Partial update profile details
ForestVPNCloudAPI::ProfilesApi [**
partial_update_profile_data_usage_limit**](docs/ProfilesApi.md#partial_update_profile_data_usage_limit) **
PATCH** /profiles/profileId/limits/data-usages/limitId/ Partial update profile data usage limit
ForestVPNCloudAPI::ProfilesApi update_profile **
PUT** /profiles/profileId/ Update profile details
ForestVPNCloudAPI::ProfilesApi [**
update_profile_data_usage_limit**](docs/ProfilesApi.md#update_profile_data_usage_limit) **
PUT** /profiles/profileId/limits/data-usages/limitId/ Update profile data usage limit

Documentation for Models

Documentation for Authorization

ApiTokenAuth

  • Type: API key
  • API key parameter name: X-API-TOKEN
  • Location: HTTP header

BearerTokenAuth

  • Type: Bearer authentication (JWT)

Credits