Skip to content

Latest commit

 

History

History
108 lines (68 loc) · 2.64 KB

File metadata and controls

108 lines (68 loc) · 2.64 KB

HyperstackApi.PartnerConfigApi

All URIs are relative to https://infrahub-api.nexgencloud.com/v1

Method HTTP request Description
getPartnerConfig GET /auth/partner-config Get partner config
getPartnerConfigByDomain GET /auth/partner-config/docs

getPartnerConfig

PartnerConfig getPartnerConfig()

Get partner config

Fetch the customised customer configuration for Hyperstack.

Example

import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript';
let defaultClient = HyperstackApi.ApiClient.instance;
// Configure API key authorization: apiKey
let apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

let apiInstance = new HyperstackApi.PartnerConfigApi();
apiInstance.getPartnerConfig().then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

Parameters

This endpoint does not need any parameter.

Return type

PartnerConfig

Authorization

apiKey

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

getPartnerConfigByDomain

PartnerConfig getPartnerConfigByDomain(opts)

Fetch the partner config for a given domain.

Example

import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript';
let defaultClient = HyperstackApi.ApiClient.instance;
// Configure API key authorization: apiKey
let apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

let apiInstance = new HyperstackApi.PartnerConfigApi();
let opts = {
  'domain': "domain_example" // String | The domain to look up the partner config for.
};
apiInstance.getPartnerConfigByDomain(opts).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

Parameters

Name Type Description Notes
domain String The domain to look up the partner config for. [optional]

Return type

PartnerConfig

Authorization

apiKey

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json