Application Framework Reference

Splunk API

undoWorldReadable()

The undoWorldReadable() method sets the current job access control to not world-readable. An error is not indicated if the job is already set to not world readable.

Synopsis

results = undoWorldReadable( onSuccess , onFailure )

Parameters

onSuccess

Function

(Optional) Function to call on successful operation.

onFailure

Function

(Optional) Function to call on unsuccessful operation.

Return Value

Undefined

Example

var context = this.getContext();
var search = context.get('search');
search.job.undoWorldReadable(
        function() { console.log('Current job access control set to not world readable.'); },
        function() { console.log('Failed to set current job access control to not world readable.'); } );
);
 

See Also

makeWorldReadable()