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") ornullto just search all config typescoreNodeIdList- a list ofNodeIDvalues (ints fromOrion.Nodes, not Guids fromCirrus.Nodes) as a comma-separated string, ornullto just search configs from all nodesmatchWholeWord-trueif the words insearchStringmust occur as written in the config orfalseif they can appear as a substring or a larger word in the configsearchOnlyMostRecent-trueto only consider the current config of each type orfalseto 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; providenullor just omit the parameter to search all historyendTime- to search configs from a particular date range, provide the end time here; providenullor 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.