Identifying the FTP or Web sites of an owner by using XML

Use the QuerySitesByOwner procedure to query the IIS Resource Manager. The IIS Resource Manager will then return all File Transfer Protocol (FTP) sites and Web sites owned by an owner organization.

This procedure runs as the Microsoft Provisioning Framework (MPF) service account in order to make calls to the Resource Manager database.

Example of a request that calls the QuerySitesByOwner procedure

<request>
 <procedure>
   <execute namespace="IIS Resource Manager" procedure="QuerySitesByOwner" >
	 <executeData>
	 <owner>LDAP://OU=Hosting,DC=contoso,DC=com</owner>
	 </executeData>
	 <after source="executeData" destination="data" mode="merge"/>
   </execute>
 </procedure>
</request>

Input for QuerySitesByOwner

The following input is valid for this request:

Typical response for QuerySitesByOwner

This request returns a list of the FTP sites and Web sites owned by the specified organization.

<response>
 <data>
   <owner>LDAP://OU=Hosting,DC=contoso,DC=com</owner>
   <IISPaths>
	 <IISPath>IIS://contoso0/W3SVC/13846063</IISPath>
	 <IISPath>IIS://contoso0/W3SVC/13471018</IISPath>
   </IISPaths>
 </data>
</response>

Important