So, I am trying to connect PowerBI with a tenable SC instance and keep running into this issue:
Here's the code I have so far... almost anytime I try to get to "rest/analysis" it says Forbidden but has been saying that anytime something doesn't exist, etc. I have admin rights and access is okay.
let
url = "https://scnessus(REMOVED)/rest/analysis/download",
body = "{""type"": vuln, ""query"": {""id"":6056}}",
Parsed_JSON = Json.Document(body),
BuildQueryString = Uri.BuildQueryString(Parsed_JSON),
Source = Json.Document(Web.Contents(url, [Headers=[#"x-apikey"="accesskey=REMOVED; secretkey=REMOVED", #"Content-Type"="application/json"], Content = Text.ToBinary(body)]))
in
Source
Here's what I am using to figure this out, along with online guides for programming this correctly since I am not familiar with this...
https://docs.tenable.com/tenablesc/api/Analysis.htm
question from:
https://stackoverflow.com/questions/65943014/powerbi-failed-to-load-web-contents 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…