Override the MID Server selection filter
Use the override feature to write your own filter condition that overrides the normal MID Server selection criteria for an application. An override has precedence over the default filter and can be defined for a specific selection condition.
Vorbereitungen
Role required: admin
Warum und wann dieser Vorgang ausgeführt wird
- Status Filter
- App Filter
- Capability Filter
- IP Filter
Prozedur
Beispiel
The Cloud Discovery schedule selects MID Servers based on Applications and Capabilities.
To select different MID Servers for different service accounts, you can customize the
MID Selector Override. After the line (function filter(/* MIDServerJS
Array */ candidateMIDList, /* MIDServerJS Array */ defaultSelectedMIDList, /*
Native JS object */ midSelectorContext, /* MIDSelectorParamJS */ requestedParameters)
{ add the following code with your information:
var result = [];
if (JSON.parse(midSelectorContext).service_account_id == '[example-account-id]') {
for (var mid in defaultSelectedMIDList) {
if (defaultSelectedMIDList[mid].sysId == '[example-MID-1]' || defaultSelectedMIDList[mid].sysId == '[example-MID-2]')
result.push(defaultSelectedMIDList[mid]);
}
return result;
}