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.
시작하기 전에
Role required: admin
![]() |
이 태스크 정보
- Status Filter
- App Filter
- Capability Filter
- IP Filter
프로시저
예
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;
}
