Key.save()
Method Description |
Saves the key. |
Returns |
Object |
Supported Script Types |
Server scripts For additional information, see SuiteScript 2.x Script Types. |
Governance |
10 units |
Module |
|
Since |
2019.2 |
Syntax
Important:
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/keyControl Module Script Samples.
// Add additional code
...
var key = keyControl.createKey();
key.file = file.load(422);
//id of file containing private key
key.name = 'SFTP key';
key.save();
...
// Add addtional code