Managed Web Hosting::QueryWebSitesByCustomer

The QueryWebSitesByCustomer method returns a listing of Web sites provisioned for a Customer organizational unit.

Arguments

Input argument Required Description

<org>

Yes

The Lightweight Directory Access Protocol (LDAP) path of the organization that will own the Web site.

<preferredDomainController>

Yes

The name of the preferred domain controller.

Output argument Description

<websites>data</websites>

Remarks

Process Steps

The following step occurs when querying Web sites with the QueryWebSitesByCustomer method of the Managed Web Hosting Namespace:

  1. Retrieve pointers to provisioned services.

Security

The QueryWebSitesByCustomer method has the following security requirements:

  • The caller is impersonated.

  • The caller is tested for OrgCreator permissions by checking for membership in any of the following groups:

    • Domain Admins

    • Hosting Admins

    • Reseller Admins

Sample Code

Example XML Request

The following is an example of an XML request for the QueryWebSitesByCustomer method of the Managed Web Hosting Namespace:

<request> 
        <procedure> 
                <execute namespace="Managed Web Hosting"  
                 procedure="QuerySitesByCustomer" impersonate="1"> 
                        <executeData> 
                        <preferredDomainController>AD01.frabrikam.com 
                        </preferredDomainController> 
                        <org>LDAP://OU=alpineskihouse,OU=consolidatedmessenger, 
                         OU=Hosting,DC=fabrikam,DC=Com</org> 
                        </executeData> 
                        <after source="executeData" destination="data" mode="merge" /> 
                </execute> 
        </procedure> 
</request> 

Example XML Response

The following is an example of an XML response from the QueryWebSitesByCustomer method of the Managed Web Hosting Namespace:

<response> 
        <data> 
                <preferredDomainController>AD01-wh.frabrikam.com 
                </preferredDomainController> 
                <org>LDAP://OU=alpineskihouse,OU=consolidatedmessenger, 
                OU=Hosting,DC=fabrikam,DC=Com</org> 
                <websites> 
                <website name="www.alpineskihouse.com" location="IIS://app01- 
                 ra/W3SVC/8843608"/> 
                </websites> 
        </data> 
</response> 

Applies To

Managed Web Hosting Namespace API 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

Managed Web Hosting::GetCustomerWebSiteProperties