Identifying the IIS resources of a Web site by using XML

Use the QueryResourcesByWebSite procedure of the IIS Resource Manager namespace to return all Web site resources that are currently being used by a particular Web site.

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 QueryResourcesByWebSite procedure

<request>
 <procedure>
   <execute namespace="IIS Resource Manager" procedure="QueryResourcesByWebSite">
	 <executeData>
	 <IISPath>IIS://MyServer/W3SVC/7</IISPath>
	 </executeData>
	 <after source="executeData" destination="data" sourcePath="webSite"/>
  </execute>
 </procedure>
</request>

Input for QueryResourcesByWebSite

The following input is valid for this request:

Typical response for QueryResourcesByWebSite

This request returns the name of the server hosting the Web site, the Internet Protocol (IP) address of the Web site, and, in the <port> tag, the ports (if any) owned by the Web site.

Note

The request also returns the location of the disk volume associated with the Web site and the disk volume storage (in megabytes) allocated to the Web site.

<response>
 <data>
   <webSite>
	 <serverName>machine04</serverName>
	 <IPAddress>
	 <address>157.60.0.1</address>
	 <portOwned>80</portOwned>
	 </IPAddress>
	 <volume>
	 <location>c:</location>
	 <megabytes>21000</megabytes>
	 </volume>
   </webSite>
 </data>
</response>

Important