certificateControl.findUsages(options)
|
Method Description |
Returns an audit trail of how a certificate has been used. Includes operations performed with time stamps. |
|
Returns |
An array of operations performed. |
|
Supported Script Types |
Server scripts For more information, see SuiteScript 2.x Script Types. |
|
Governance |
10 units |
|
Module |
|
|
Since |
2019.2 |
Parameters
The options parameter is a JavaScript object.
|
Parameter |
Type |
Required / Optional |
Description |
Since |
|---|---|---|---|---|
|
|
date |
optional |
The start date for your audit trail search. |
2019.2 |
|
|
date |
optional |
The end date for your audit trail search. |
2019.2 |
|
|
string |
optional |
The script ID of the certificate record. |
2019.2 |
|
|
string |
optional |
The certificateControl.Operation performed with the digital certificate. |
2019.2 |
|
|
number |
optional |
The script ID of a script record that used a certificate record. |
2019.2 |
|
|
number |
optional |
The script ID of a script deployment that used a certificate record. |
2019.2 |
|
|
number |
optional |
The internal ID of the employee who performed the operation. |
2019.2 |
|
Error |
Thrown If |
|
SSS_INVALID_TYPE_ARG |
A parameter provided is the wrong type. |
|
TOO_MANY_RESULTS |
There are more than 1000 results. |
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/certificateControl Module Script Samples.
//Add additional code
...
var usages = certificateControl.findUsages({
id: 'custcertificate_china',
operation: certificateControl.Operation.POST
});
...
//Add additional code