DocumentCaptureTask.ociConfig

Property Description

Oracle Cloud Infrastructure (OCI) credentials when using unlimited usage mode.

For more information, see the description of the options.ociConfig parameter in documentCapture.documentToStructure(options). For an example, see Extract Content from a Document Asynchronously.

Type

Object

Module

N/task Module

Parent Object

task.DocumentCaptureTask

Sibling Object Members

DocumentCaptureTask Object Members

Since

2025.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/task Module Script Samples.

            // Add additional code
...
var myDocCaptureTask = task.create({
    taskType: task.TaskType.DOCUMENT_CAPTURE
});

// Make sure you use the credentials from your OCI account with access to the
// OCI Document Understanding service
myDocCaptureTask.ociConfig = {
    userId: 'user-ocid',
    tenancyId: 'user-tenancy',
    compartmentId: 'user-compartment',
    fingerprint: 'custsecret_secret_fingerprint_id',
    privateKey: 'custsecret_secret_privatekey_id',
    objectStorageNamespace: 'oraclenetsuite',
    outputBucketName: 'in-bucket-name',
    inputBucketName: 'out-bucket-name'
};
...
// Add additional code 

          

General Notices