The iConsole provides mechanisms for accessing a search using a URI (Uniform Resource Identifier).
A typical iConsole URI has the form:
http://<server>/CA/Default.aspx?external="<type>"¶meters="<request>"
where <server> is the name of the iConsole Server <type> is the type of external request and <request> contains details for the request.
For a bookmark:
<type> = bookmark
<request> = <CMS>, <bookmark_type>, <search name>, <major>, <minor>, <section>,<category>, <version>, <target>, <timezone>
where:
The name of the CMS that the iConsole is to connect to.
'search' to run the search or 'customize' to customize the search
The name of the iConsole search
The major version number of the search
The minor version number of the search (-1 for latest, -2 for derived)
The section containing the search (e.g. 'published' or 'custom' for a saved search)
The category folder containing the search (e.g. Reports)
The URI format version number (current values are 3 for bookmarks and 2 for external searches)
The target page for the search (usually blank)
The time zone information to be used for the search (from bookmark version 3).
This takes the form tzoffset:dst where:
Is the offset (in minutes) from UTC for the time zone on 21 December (for example -300 for EST)
Is the difference in the offset on 21 June due to DST corrections (for example 60 for EST)
Note: The time zone definition was different for bookmark version 2. The values had the opposite sign and It took the form todayoffset: tzoffset: dst where:
Is the number of minutes from UTC today
Is the number of minutes from UTC on 21 December (for example 300 for EST)
Is the number of minutes for DST (for example -60 for EST)
For example, this bookmark would run the latest version 2 standard search on 'myserver' connecting to CMS 'myCMS' in the EST time zone.
http://myserver/CA/Default.aspx?external=%22bookmark%22¶meters=%22myCMS, Search,Standard%20Search,2,-1,published,,3,,-300:-300:60%22
Note: Here, the special characters quotes(") and space have been URL Encoded as %22 and %20 respectively.
For an external search:
<type> = search
<request> = <search name>, <major>, <minor>, <section>, <category>, <timezone>, <version>
The external search is more powerful because search parameters can be specified by appending them to the end of the URI in the form &<name>=<value> e.g. &chkEE=true for the standard search would search for email events. If the name is enclosed in square brackets the value is interpreted as the parameter attributes. This is useful for date ranges e.g. &[dateRange]=2;1;2;1 would set the date range to 'All Dates'.
Note: To specify time zone information, the external search version must be set to 2.
No CMS is specified with an external search; if more than one CMS is available the user would be expected select an appropriate CMS when logging on, or to be authenticated by SSO.
Copyright © 2014 CA.
All rights reserved.
|
|