NCM Config Search - solarwinds/OrionSDK GitHub Wiki
The Network Configuration Manager search interface can be called through the API using the ConfigSearch
verb on Cirrus.ConfigArchive
.
Cirrus.ConfigArchive
Verb: ConfigSearch
Search for configs matching a query.
string[] ConfigSearch(string searchString, string configType,
string coreNodeIdList, bool matchWholeWord, bool searchOnlyMostRecent = false,
DateTime? startTime = null, DateTime? endTime = null)
The parameters for ConfigSearch
are:
searchString
- the text to search forconfigType
- the name of a config type (such as "Running" or "Startup") ornull
to just search all config typescoreNodeIdList
- a list ofNodeID
values (ints fromOrion.Nodes
, not Guids fromCirrus.Nodes
) as a comma-separated string, ornull
to just search configs from all nodesmatchWholeWord
-true
if the words insearchString
must occur as written in the config orfalse
if they can appear as a substring or a larger word in the configsearchOnlyMostRecent
-true
to only consider the current config of each type orfalse
to search history as well. This parameter can be omitted; if so, history will be searched.startTime
- to search configs from a particular date range, provide the start time here; providenull
or just omit the parameter to search all historyendTime
- to search configs from a particular date range, provide the end time here; providenull
or just omit the parmater to search all history newer thanstartTime
The return value of ConfigSearch
is a list of id values for configs that match the query. To get the details of each matching config, including what node it came from, when it was obtained, and the full text of the config, use these ids to query Cirrus.ConfigArchive
.