Limit Outbound Rest Message Requests
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2024 01:31 PM
Howdy, community.
The question: "How to limit number of outbound requests performed with Rest Message (outbound http)?"
The required result is really simple: we would like to block outbound http requests performed by Rest Message triggered by business rule in case more then 20 requests was created in last 5 seconds. This tool (by our believe) is crucial in any integration to detect and prevent suspicious activities.
According to our research, apparently ServiceNow does not include mechanism for blocking/limiting number of outbound Rest Message requests. This finding makes me wonder how is that possible? As such I come up with the conclusion that I failed to find some secret documentation on that. Tried to utilize sysrule_quota, yet no any documentation on it, as well as a result.
If you've faced the same need or do know how that can be implemented, please, share your thoughts.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2024 10:22 AM
@No_name I think you can create a custom table (Outbound Log with a string field endpoint) and before doing an outbound call, query the table and check how many records created in last 5 seconds if its more than 20 then you can avoid the next call else proceed with out bound call and add a entry on that table. In that way you have also the record of log. how many calls you have done and to which end points.
Mark this helpful if it solves your issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2024 01:49 AM
Not a solution - need to be rewritable and without history.
So apparently ServiceNow does not provide such obvious functionality. Well... no comment