Management OData IIS Extensions

OData, which stands for Open Data Protocol, is a RESTful web protocol. OData is based on HTTP and JSON, and using this, we can perform operations such as querying and updating.

We will cover the ODataUtils class before starting with OData IIS Extensions.

OData allows us to create a client-side module based on the OData endpoints. This is based on CDXML. Just take a look at the Microsoft.PowerShell.ODataUtils module.

This module has a single command, Export-ODataEndpointProxy, but is very powerful for exploring management data.

Let's create a client-side module using the following code:

$Odata = @{
  Uri = 'http://services.odata.org/v3/(S(snyobsk1hhutkb2yulwldgf1))/odata/odata.svc'
 MetadataUri = 'http://services.odata.org/v3/(S(snyobsk1hhutkb2yulwldgf1))/odata/odata.svc/$metadata' ...

Get Windows PowerShell for .NET Developers - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.