Private Cloud Client Configuration

Overview

Once you install Cloudmersive Private Cloud, connect to your API instances from the Cloudmersive clients for popular programming languages. Only one line of code is needed to configure a client to point to your private cloud-deployed API endpoint.

Note that the Cloudmersive Private Cloud endpoint is standard HTTP, so you can also apply proxies and/or API Management in front of the API as needed.

.NET Framework

To configure the .NET Framework client, simply add this line of code into your application:

Configuration.Default.BasePath = "https://myprivatecloud.mycompany.com";

In this example, be sure to configure the URL appropriately, replacing myprivatecloud.mycompany.com with the appropriate endpoint path. You can also use IP addresses instead of fully-qualified domain names if needed.

.NET Core

To configure the .NET Core client, simply add this line of code into your application:

Configuration.Default.BasePath = "https://myprivatecloud.mycompany.com";

In this example, be sure to configure the URL appropriately, replacing myprivatecloud.mycompany.com with the appropriate endpoint path. You can also use IP addresses instead of fully-qualified domain names if needed.

Python

To configure the Python client, simply add this line of code into your application:

api_instance.api_client.configuration.host = "https://myprivatecloud.mycompany.com"

In this example, be sure to configure the URL appropriately, replacing myprivatecloud.mycompany.com with the appropriate endpoint path. You can also use IP addresses instead of fully-qualified domain names if needed.

Ruby

To configure the Ruby client, simply add this line of code into your application:

config.host = 'https://myprivatecloud.mycompany.com'"

In this example, be sure to configure the URL appropriately, replacing myprivatecloud.mycompany.com with the appropriate endpoint path. You can also use IP addresses instead of fully-qualified domain names if needed.

Java

To configure the Java client, simply add this line of code into your application:

defaultClient.setBasePath("https://myprivatecloud.mycompany.com");

In this example, be sure to configure the URL appropriately, replacing myprivatecloud.mycompany.com with the appropriate endpoint path. You can also use IP addresses instead of fully-qualified domain names if needed.

Node.js

To configure the Node.js client, simply add this line of code into your application:

defaultClient.defaultClient = "https://myprivatecloud.mycompany.com";

In this example, be sure to configure the URL appropriately, replacing myprivatecloud.mycompany.com with the appropriate endpoint path. You can also use IP addresses instead of fully-qualified domain names if needed.

PHP

To configure the PHP client, simply add this line of code into your application:

$config->setHost("https://myprivatecloud.mycompany.com");

In this example, be sure to configure the URL appropriately, replacing myprivatecloud.mycompany.com with the appropriate endpoint path. You can also use IP addresses instead of fully-qualified domain names if needed.