Create Application Profile
To Create the application profile 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 kcCreateApplicationProfile = await instance.kcContentManagementApplication.createApplicationProfile({
args: {
additionalEula: {
termsAndConditions: 'YOUR_TERMS_AND_CONDITIONS',
title: 'YOUR_TITLE',
},
name: 'YOUR_PROFILE_NAME',
}, // <- other optional param
});
console.log(kcCreateApplicationProfile);
import { kcCreateApplicationProfile } from '@redredgroup/samsungknox-api';
const createApplicationProfile = await kcCreateApplicationProfile({
args: {
additionalEula: {
termsAndConditions: 'YOUR_TERMS_AND_CONDITIONS',
title: 'YOUR_TITLE',
},
name: 'YOUR_PROFILE_NAME',
}, // <- other optional param
region: 'YOUR-KNOX-REGION',
knoxAccessToken: 'YOUR-X-KNOX-APITOKEN',
});
console.log(createApplicationProfile);
Input parameters:
- args: Insert parameters for the application profile (required) additionalEula(termsAndConditions, title) and name.
- region: Insert the Knox region. Most of them are EU (case insensitive)
- knoxAccessToken: Your X-KNOX-APITOKEN.
Output:
- Response with the results of the application profile created.