Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Windows PowerShell for .NET Developers - Second Edition

You're reading from   Windows PowerShell for .NET Developers - Second Edition Efficiently administer and maintain your development environment with Windows PowerShell

Arrow left icon
Product type Paperback
Published in Oct 2015
Publisher
ISBN-13 9781785287435
Length 330 pages
Edition 2nd Edition
Arrow right icon
Toc

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'
  OutputModule = 'C:\Temp\DemoModule'
  AllowUnSecureConnection = $true
}
Export-odataEndpointProxy @Odata

The output is illustrated in the following...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image