Web Hosting Resource Manager::QueryWebSitesByOrganization
This procedure returns a listing of all Web sites allocated in the resource pool to a particular organization.
Arguments
Input argument | Required | Description |
---|---|---|
<org> |
Yes |
The LDAP path of the owning organization. |
<preferredDomainController> |
Yes |
Output Argument
<servers>/<server>/<web sites>/<web site> node containing current allocation data. For example:
<server>
<GUID>6AD7B4A02DC5FA44AAD90005870EEB49</GUID>
<path>LDAP://CN=WEB01,CN=Computers,DC=fabrikam,DC=com</path>
<web sites>
<web site>
<web siteName>AlpineSales</web siteName>
<megabytes>10</megabytes>
</web site>
<web site>
<web siteName>AlpineCustomer</web siteName>
<megabytes>10</megabytes>
</web site>
</web sites>
</server>
Remarks
Access Level
Public.
Provisioning Steps
- Retrieve a listing of all Web sites per server owned by the organization .
Security
Impersonate Caller.
Caller Tested for OrgCreator permissions:
Domain admins
Hosting admins
Reseller admins
Note
Reseller admins cannot query Web sites for their own organization, only for child organizations.
Sample Code
Example XML Request
<request>
<procedure>
<execute namespace="Web Hosting Resource Manager" procedure="QueryWebSitesByOrganization" impersonate="1">
<executeData>
<org>LDAP://OU=alpineskihouse,OU=consolidatedmessenger,OU=Hosting,DC=fabrikam,DC=Com</org>
<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>
<org>LDAP://OU=alpineskihouse,OU=consolidatedmessenger,OU=Hosting,DC=fabrikam,DC=Com</org>
<preferredDomainController>AD01-wh.fabrikam.com</preferredDomainController>
<GUID>48DD9AB9D94A6B4BBBA6C2F6B1E9BDFC</GUID>
<servers>
<server GUID="6AD7B4A02DC5FA44AAD90005870EEB49"
name="MPS01-WH">
<webSites>
<webSite>
<IISPath>IIS://MPS01-WH/W3SVC/12434534</IISPath>
<megabytes>10</megabytes>
</webSite>
<webSite>
<IISPath>IIS://MPS01-WH/W3SVC/123434534</IISPath>
<megabytes>10</megabytes>
</webSite>
<webSite>
<IISPath>IIS://MPS01-WH/W3SVC/124534534</IISPath>
<megabytes>10</megabytes>
</webSite>
</webSites>
</server>
</servers>
</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
Web Hosting Resource Manager::QueryAllOrganizations