Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Richard_Smith_Uchotski
Contributor II
Contributor II

Trying to connect to Qlik Using PowerShell

I have an end point say: 

$endpoint = 'https://myserver.com/api/odag/v1/links'

and I have certificates say: 

$certificates = \\certifcates.dev.pfx

I am using: 

$clientCert = Get-PfxCertificate $certificates 

and then I am using: 

$response = Invoke-RestMethod -Uri $endpoint -Method Get -Certificate $clientCert

What am I missing from the Invoke-RestMethod to get on the server. I know that the certificates work as they work the the qlik-cli, however I can not use the qlik CLI in my case.

The ultimate task is to write a function in PowerShell, that can get the odag link that has been create in on environment and deploy it in another 

 

Labels (2)
1 Reply
ajaykakkar93
Specialist III
Specialist III

Hi,

Below is the curl code for the same

curl -k -L --ntlm -H "User-Agent: Windows" -H "Cache-Control: no-cache" -u USERNAME:PASSWORD https://192.1681.251/healthapi/engine/healthcheck/

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting