Web Hosting Resource Manager::QueryWebSitesByServer

This procedure returns a listing of all Web sites allocated in the resource pool to a particular server.

Arguments

Input argument Required Description

<serverName>

Yes

NetBios name of the server.

<preferredDomainController>

Yes

<container>

No

A starting LDAP container to look for the server in. The procedure performs an LDAP search to resolve the <server>/<name> to the Active Directory computer object. You can improve the performance of this search by specifying a default container (for example, LDAP://OU=Computers,DC=fabrikam,DC=Com).

Output Arguments

<web sites>/<web site> node containing current allocation data. For example:

      <web site> 
        <web siteName>AlpineCustomer</web siteName> 
 
        <megabytes>10</megabytes> 
 
      </web site> 

Remarks

Access Level

Public.

Provisioning Steps

  1. Retrieve a listing of all WebSite allocations for a specified server.

Security

  1. Impersonate Caller.

  2. Caller Tested for domain admin permissions:

    1. Domain admins

Sample Code

Example XML Request

<request> 
  <procedure> 
 
    <execute namespace="Web Hosting Resource Manager" procedure="QueryWebSitesByServer" impersonate="1"> 
 
      <executeData> 
 
        <container>LDAP://CN=Computers,DC=fabrikam,DC=Com</container> 
 
        <serverName>WEB01</serverName> 
 
        <preferredDomainController>AD01-wh.fabrikam.com</preferredDomainController> 
 
      </executeData> 
 
      <after source="executeData" destination="data" mode="merge"/> 
 
    </execute> 
 
  </procedure> 
 
</request> 

Example XML Response

(Shown for formatting only, content may not match)

<response> 
  <data> 
 
    <container>LDAP://CN=Computers,DC=fabrikam,DC=Com</container> 
 
    <serverName>WEB01</serverName> 
 
    <preferredDomainController>AD01-wh.fabrikam.com</preferredDomainController> 
 
    <GUID>AFF7B1E1DF90A042BABA475A5D5E155D</GUID> 
 
    <path>LDAP://CN=WEB01,CN=Computers,DC=fabrikam,DC=com</path> 
 
    <webSites> 
 
      <webSite> 
 
        <IISPath>IIS://WEB01/W3SVC/123434534</IISPath> 
 
        <megabytes>10</megabytes> 
 
      </webSite> 
 
      <webSite> 
 
        <IISPath>IIS://WEB01/W3SVC/124534534</IISPath> 
 
        <megabytes>10</megabytes> 
 
      </webSite> 
 
    </webSites> 
 
  </data> 
 
</response>  

Applies To

Web Hosting Resource Manager Namespace for:

  • Hosted Messaging and Collaboration version 4.5

  • Hosted Messaging and Collaboration version 4.0

  • Hosted Messaging and Collaboration version 3.5

  • Hosted Messaging and Collaboration version 3.0

  • Windows-based Hosting version 4.5

  • Windows-based Hosting version 4.0

  • Windows-based Hosting version 3.5

  • Windows-based Hosting for Applications version 1.0

See also

Tasks

Web Hosting Resource Manager::QueryWebSiteAllocation