Application Framework Reference

Splunk API

getUrl()

The getUrl() method gets the URI to access resources for the current search job.

Synopsis

jobURI = getUrl( asset , optionalArgs )

Parameters

asset

String

(Optional) asset type:

results

control

summary

events

timeline

optionalArgs

Object

(Not implemented)

Return Value

String

Job URI.

Example

var context = this.getContext();var search  = context.get("search");
var url = search.getUrl();
alert('results url is ' + url);
 

See Also

Splunk.Job