Creating a Management OData Web Service
Management ODATA IIS Extension is an infrastructure for creating an ASP.NET web service end point that exposes your management data, accessed through Windows PowerShell cmdlets and scripts, as OData Web service entities. It does that by processing OData requests and converting them into a Windows PowerShell invocation. Product teams can build on top of this infrastructure to create endpoints that expose specific sets of management data.
Download and install the PswsRoleBasedPlugins sample. Follow the instructions to deploy the web service. This web service exposes Services and Processes through Create, Read, Update, and Delete (CRUD) operations. CRUD requests made to the web service invoke Windows PowerShell commands that perform the requested operations. A mapping between the CRUD operations and the underlying Windows PowerShell commands is implemented by two schema files, schema.mof and schema.xml. The schema.mof file uses the Distributed Management Task Force (DTMF) Managed Object (MOF) standard. The schema.xml file uses an XML schema that is described in Resource Mapping Schema.
For more information about Windows PowerShell Web Services, download the white paper located at Management ODATA Web Services Dev. Tools
Before you enabling Management ODATA IIS Extension on Windows Server 2008 R2 SP1, the following features must be enabled.
Steps for creating a Management OData web service
The following topics describe how to create and deploy a Management OData web service.
Adding Resources to a Management OData Web Service
Implementing Custom Authorization for a Management OData web service
Implementing SessionConfiguration for a Management OData web service
Authoring the MOF schema file for a Management OData web service
Authoring the XML schema file for a Management OData web service
Authoring the Web.config file for a Management OData web service
Deploying a Management OData web service
Associating Management OData Entities