From the course: PowerShell: Functions for Advanced Automation

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Use REST API in Windows PowerShell

Use REST API in Windows PowerShell

From the course: PowerShell: Functions for Advanced Automation

Start my 1-month free trial

Use REST API in Windows PowerShell

- [Instructor] There's another tool that uses programming and scripting methods beyond PowerShell native expressions. The REST APIs are a nice way of pulling web-based information into PowerShell. REST stands for REpresentational State Transfer, and it refers to a protocol that pulls data from a web server. If you're not familiar, APIs are the software that connects one application to another or one dataset or one system to another. The REST APIs run over traditional web protocols of HTTP and HTTPS and are generally designed to access databases. One of the more common formats for simple web databases is the JSON file which we'll be discussing in greater detail later on in this course. You may be familiar with the commandlet Invoke-webRequest and how it can be used to download content directly into the PowerShell pipeline. Invoke-webRequest is a PowerShell native commandlet, and you could use it to pull information from an external website, but the syntax gets a little bit long. Using…

Contents