Configure API Client

The first step is to configure the Fortanix Data Security Manager (DSM) service endpoint to communicate with the Fortanix DSM service and authenticate with the service.

The endpoint is the full Fortanix DSM cluster URL. For example: https://sdkms.fortanix.com

C#

using Fortanix.SDKMS.Client;

Configuration.Default.BasePath = "<Endpoint URL>";

Go

import (
"github.com/fortanix/sdkms-client-go/sdkms"
)
client := sdkms.Client{
Endpoint: "<Endpoint URL>",
HTTPClient: http.DefaultClient,
}

Java

ApiClient apiClient = new ApiClient();
apiClient.setBasePath(<Endpoint URL>);

Python

config = sdkms.v1.Configuration()
config.host = "<Endpoint URL>"
client = sdkms.v1.ApiClient(configuration=config)

PHP

$configuration = new SdkmsClient\Configuration();
$configuration->setHost('<Endpoint URL>');
$client = new SdkmsClient\ApiClient($configuration);

Javascript

var FortanixSdkmsRestApi = require('fortanix_sdkms_rest_api');
var client = FortanixSdkmsRestApi.ApiClient.instance;
client.basePath = '<Endpoint URL>';

REST API using curl

 curl <Endpoint URL> ...
Was this article helpful?
0 out of 0 found this helpful