REST_API call Request

Hi All,

I am new to here and requesting you to achieve to get the data over RESTAPI from application using power shell script,

 

I don’t know where do I start my level, can any one please post some example to write for calling (getting) the data from application over rest method with credential method,

 

Thanks,

Nagaraj,

 

You can do Get-Help Invoke-RestMethod -Online from a PowerShell console where it can connect to public network.

Hi,

This is my scenario, we have some restapi query to get the result from application, like

(https://server.domain.com:12345/api/query?relevance=(name of it, operating system of it, cpu of it, id of it, last report time of it) of bes computers)

if I run this query from my application support tool it should ask credential (user name: xxxxx & password: XXXXX) then will display the result in txt file

so using power shell how do write the condition to call this method, please any example help me to get more,

 

Thanks,

Nagaraj,

 

 

Help online should give you enough examples. Please read the entire help document to have better clarity.
hint: -Credential