问题
If I look at the below URl for restricting IP Address in API Management with its policy "IP-Filter", we can either limit single IP Address or a range. Is there a way I can filter different IP Address like 172.2.2.2, 122.2.2.4, 134.2.2.3?
https://docs.microsoft.com/en-us/azure/api-management/api-management-access-restriction-policies#RestrictCallerIPs
Thanks and Regards, Manu
回答1:
Graphical interface allows you to add many IP addresses in "Filter IP addresses" policy.
It's changed to the following xml expression
<ip-filter action="allow">
<address>10.10.1.1</address>
<address>10.10.1.200</address>
</ip-filter>
来源:https://stackoverflow.com/questions/53480617/azure-api-management-restrict-multiple-caller-ip-address