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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Syndicate_Admin
Administrator
Administrator

power query Velocloud orchestrator REST APIs

Hi All,

 

Would appreciate some help here if possible as i'm very new to power BI.

Trying to write a query to pull data from the VMware Velocloud orchestrator, which uses REST API's.

The documentation is here: https://developer.vmware.com/apis/1532/

The main thing it uses is POST instead of GET, and requires an authorization key and a few parameters.
I've checked a few of the forum posts here which got me to the following query:

let
Json = Json.FromValue({params={enterpriseProxyId=0}}),
Source = Json.Document(Web.Contents("https://XXX.velocloud.net/portal/rest/enterpriseProxy/getEnterpriseProxyEnterprises", [Headers=[ContentType="application/json", Authorization="Token XXX"]]))
in
Source

Getting a "(404): Not Found" error. 
Anyone able to check the above query and advise where i'm going wrong?

I know the Token and params are correct as i can poll this data successfully using postman and with my python scripts, but just can't do the same in power bi.

 

Thanks in advanced!

1 REPLY 1
lbendlin
Super User
Super User

for a POST you need to provide a content payload (can be an empty string)

 

See example 2

Web.Contents - PowerQuery M | Microsoft Learn

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.