GetTenantExchangePublicKey
Retrieves tenant exchange public key type, modulus and exponent for the given tenant.
/IDPrimeVirtual/Provisioning/V1.0/Tenants/{tenantId}/TenantExchangePublicKey
Usage and SDK Samples
curl -X GET\
-H "Authorization: [[apiKey]]"\
-H "Accept: application/json"\
"//IDPrimeVirtual/Provisioning/V1.0/Tenants/{tenantId}/TenantExchangePublicKey"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ProvisioningApi;
import java.io.File;
import java.util.*;
public class ProvisioningApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: Bearer
ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
Bearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.setApiKeyPrefix("Token");
ProvisioningApi apiInstance = new ProvisioningApi();
String tenantId = tenantId_example; // String | Tenant Identifier (GUID format).
try {
TenantConfiguration result = apiInstance.iDPrimeVirtualProvisioningV10TenantsTenantIdTenantExchangePublicKeyGet(tenantId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProvisioningApi#iDPrimeVirtualProvisioningV10TenantsTenantIdTenantExchangePublicKeyGet");
e.printStackTrace();
}
}
}
import io.swagger.client.api.ProvisioningApi;
public class ProvisioningApiExample {
public static void main(String[] args) {
ProvisioningApi apiInstance = new ProvisioningApi();
String tenantId = tenantId_example; // String | Tenant Identifier (GUID format).
try {
TenantConfiguration result = apiInstance.iDPrimeVirtualProvisioningV10TenantsTenantIdTenantExchangePublicKeyGet(tenantId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProvisioningApi#iDPrimeVirtualProvisioningV10TenantsTenantIdTenantExchangePublicKeyGet");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: Bearer)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
String *tenantId = tenantId_example; // Tenant Identifier (GUID format).
ProvisioningApi *apiInstance = [[ProvisioningApi alloc] init];
// Gets tenant exchange public key type, modulus and exponent for the given tenant.
[apiInstance iDPrimeVirtualProvisioningV1TenantsTenantIdTenantExchangePublicKeyGetWith:tenantId
completionHandler: ^(TenantConfiguration output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ProvisioningApIs = require('provisioning_ap_is');
var defaultClient = ProvisioningApIs.ApiClient.instance;
// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"
var api = new ProvisioningApIs.ProvisioningApi()
var tenantId = tenantId_example; // {{String}} Tenant Identifier (GUID format).
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.iDPrimeVirtualProvisioningV10TenantsTenantIdTenantExchangePublicKeyGet(tenantId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class iDPrimeVirtualProvisioningV1TenantsTenantIdTenantExchangePublicKeyGetExample
{
public void main()
{
// Configure API key authorization: Bearer
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new ProvisioningApi();
var tenantId = tenantId_example; // String | Tenant Identifier (GUID format).
try
{
// Gets tenant exchange public key type, modulus and exponent for the given tenant.
TenantConfiguration result = apiInstance.iDPrimeVirtualProvisioningV10TenantsTenantIdTenantExchangePublicKeyGet(tenantId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ProvisioningApi.iDPrimeVirtualProvisioningV10TenantsTenantIdTenantExchangePublicKeyGet: " + e.Message );
}
}
}
}
<?php require_once(__DIR__ . '/vendor/autoload.php' );
// Configure API key authorization: Bearer
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');
$api_instance = new Swagger\Client\ApiProvisioningApi();
$tenantId = tenantId_example; // String | Tenant Identifier (GUID format).
try {
$result = $api_instance->iDPrimeVirtualProvisioningV10TenantsTenantIdTenantExchangePublicKeyGet($tenantId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProvisioningApi->iDPrimeVirtualProvisioningV10TenantsTenantIdTenantExchangePublicKeyGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ProvisioningApi;
# Configure API key authorization: Bearer
$WWW::SwaggerClient::Configuration::api_key->{'Authorization'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'Authorization'} = "Bearer";
my $api_instance = WWW::SwaggerClient::ProvisioningApi->new();
my $tenantId = tenantId_example; # String | Tenant Identifier (GUID format).
eval {
my $result = $api_instance->iDPrimeVirtualProvisioningV10TenantsTenantIdTenantExchangePublicKeyGet(tenantId => $tenantId);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ProvisioningApi->iDPrimeVirtualProvisioningV10TenantsTenantIdTenantExchangePublicKeyGet: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: Bearer
swagger_client.configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.ProvisioningApi()
tenantId = tenantId_example # String | Tenant Identifier (GUID format).
try:
# Gets tenant exchange public key type, modulus and exponent for the given tenant.
api_response = api_instance.i_d_prime_virtual_provisioning_v1_tenants_tenant_id_tenant_exchange_public_key_get(tenantId)
pprint(api_response)
except ApiException as e:
print("Exception when calling ProvisioningApi->iDPrimeVirtualProvisioningV10TenantsTenantIdTenantExchangePublicKeyGet: %s\n" % e)
Parameters
Name | Description |
---|---|
tenantId* |
String
Tenant Identifier (GUID format).
Required
|