Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
PasanSenarathne
Regular Visitor

Expression.Error: Access to the resource is forbidden (WEB API)


Hi everyone,

 

I've been working on connecting Cisco Umbrella Web API Endpoints with Power BI recently. However, I've encountered an "Access to the resource is forbidden" error when trying to call the following URL: "https://api.umbrella.com/reports/v2/activity?from=-1days&to=now&limit=100&offset=0".

 

I've configured the Credentials Type as "Anonymous" and set the Privacy Level to "Organization."

I can successfully call the "https://api.umbrella.com/deployments/v2/sites" URL endpoint without any errors.

 

Any insights on how to resolve this issue or alternative solutions would be greatly appreciated.

 

Thanks!

 

PasanSenarathne_0-1697436696490.png

 

1 ACCEPTED SOLUTION

Does it work in Postman? Yes.

 

According to the Umbrella API Documentation, Umbrella stores its reporting data in geolocated data warehouses, with separate endpoints for the EU and US regions:

For the EU region: api.eu.reports.umbrella.com
For the US region: api.us.reports.umbrella.com

 

Therefore, I modified the URL as follows, and it now works correctly: https://api.umbrella.com/reports.us/v2/activity?from=-1days&to=now&limit=100&offset=0

 

@lbendlin, Thank You!

 

 

 

View solution in original post

6 REPLIES 6
lbendlin
Super User
Super User

Are you using the Query parameter of Web.Contents ?

Hi, 

 

Yes, I used the query parameter inside the "Web.Contents". 

 

Capture.PNG

Check the token with jwt.io , maybe it has the wrong scope.

Hi,

 

I checked the token with jwt.io but it is in the correct scope.

 

Here I have attached query diagnostic details for your reference.

 

Error.PNG

Does it work in Postman?

Does it work in Postman? Yes.

 

According to the Umbrella API Documentation, Umbrella stores its reporting data in geolocated data warehouses, with separate endpoints for the EU and US regions:

For the EU region: api.eu.reports.umbrella.com
For the US region: api.us.reports.umbrella.com

 

Therefore, I modified the URL as follows, and it now works correctly: https://api.umbrella.com/reports.us/v2/activity?from=-1days&to=now&limit=100&offset=0

 

@lbendlin, Thank You!

 

 

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.