Limit Outbound Rest Message Requests

No_name
Tera Contributor

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.

2 REPLIES 2

Prana Krushna
Giga Guru

@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.

No_name
Tera Contributor

Not a solution - need to be rewritable and without history.

So apparently ServiceNow does not provide such obvious functionality. Well... no comment