Get Licenses
To get the license of KnoxConfigure, use the following methods.
Example
- class
- function
import { KnoxInstance } from '@redredgroup/samsungknox-api';
const instance = new KnoxInstance({
region: 'YOUR_KNOX_REGION',
knoxAccessToken: 'YOUR_JWT_TOKEN',
});
const getLicenses = await instance.kcLicense.getLicense({
args: {}, // <- other optional param
});
console.log(getLicenses);
import { kcGetLicenses } from '@redredgroup/samsungknox-api';
const getLicenses = await kcGetLicenses({
args: {}, // <- other optional param
region: 'YOUR_KNOX_REGION',
knoxAccessToken: 'YOUR_JWT_TOKEN',
});
console.log(getLicenses);
Input parameters:
- args: Insert params for the profile (optional) See this document for more params. : https://docs.samsungknox.com/dev/knox-configure/api/#tag/License-APIs/operation/getLicensesUsingGET
- region: Insert your Knox Region. Most are the EU. (Case-insensitive)
- knoxAccessToken: Your X-KNOX-APITOKEN
Output:
- Profiles registered with KnoxConfigure respond in Array format.