What is the correct URL for my instances Event Tabel REST API endpoint so I can receive events from a third party and what roles does the REST API username require?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2017 08:25 AM
I am configuring a new REST API integration into the Events table. Is this the correct URL for my endpoint:
https://myinstance.service-now.com/api/now/table/em_event?
Also what roles do I need to give to the RESt API that I create for the third party to post to this table?
- Labels:
-
Event Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2017 08:47 AM
Hi Anna,
The api user may not have specific role to consume and fetch/create record in table.
But on safer side you can give rest_service role
The endpoint will be based on the resource you create and give them to consume
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2017 01:23 AM
Hi Ankur
Thanks for your reply. The operation will be a Table API Post message only to post events directly into the Events table so I am guessing from the documentation that the URL is correct.
Regards
Anna Williams
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2023 06:55 AM - edited 05-19-2023 06:57 AM
Hi @annawilliams @Ankur Bawiskar
I am also trying to implement the event driven discovery. We setup the SNS topic over AWS. But, while creating the subscription for instance, the endpoint i provided is throwing error(refer to below SS).
I followed this document: Configure the AWS Config service to send event notifications to the ServiceNow instance
I created a user and provided the below mentioned roles: rest_service, snsc_internal, sn_cmp.cloud_event_integration
I used below two endpoint URLs :
1. [https://newly_created_user:user_password@instancename.service-now.com/api/now/cloud_event] This endpoint is throwing the error shown in above SS.
2. [https://newly_created_user:user_password@instancename.service-now.com/api/now/table/sn_cmp... This endpoint is also throwing the same error as above.
I researched little bit bit and found out that Amazon SNS doesn't support private HTTPS(s) endpoint.(refer to below SS)
Could you please help me to find the fix for the error knowing what am I missing here and how can I generate publicly available URL. Also, if there is any other way to do the Event based discovery, pls share that too.
Your help would be very much appreciated.
Thankyou