Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
288 views
in Technique[技术] by (71.8m points)

nessus - PowerBI - Failed to load Web.Contents

So, I am trying to connect PowerBI with a tenable SC instance and keep running into this issue: enter image description here

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...