Share via


Live Communications Resource Manager::QueryAllServerPools

The QueryAllServerPools method of the Live Communications Resource Manager Namespace returns a listing of all Live Communications Server 2005 home servers in the resource pool with capacity data.

Arguments

The QueryAllServerPools method requires the following input parameters.

Input Arguments Required Description

<preferredDomainController>

Yes

The name of the preferred domain controller.

Method Syntax

The QueryAllServerPools method uses the following syntax:

public string QueryAllServerPools( 
string preferredDomainController, 
bool sendCredentials) 
                

Remarks

No remarks.

Sample Code

Typical C# Usage

Typical usage for the QueryAllServerPools method is as follows:

//Get user name and password. 
string userName = this.Request.ServerVariables.Get("AUTH_USER"); 
string pass = this.Request.ServerVariables.Get("AUTH_PASSWORD"); 
//Set credentials. 
LiveCommunicationRM.PreAuthenticate = true; 
LiveCommunicationRM.Credentials = new NetworkCredential(userName,pass); 
 
lblMsg.InnerHtml = mpsResponseHeaderLabel; 
                                 
//Display response. 
this.mpsResponse.DocumentSource = ""; 
response = LiveCommunicationRM.QueryAllServerPools(ldapPath, preferredDomainController, sendCredentials); 
                         
// set the response XML to match the return from MPF 
responseXml.LoadXml(response); 
this.mpsResponse.Document = responseXml; 
lblDone.InnerText = successMsg; 
                

Example XML Response

The following is an example of an XML response from the QueryAllServerPools method:

<response> 
        <data> 
        <preferredDomainController>AD01.fabrikam.com 
        </preferredDomainController> 
                <serverPools> 
                        <serverPool provisionable="1"> 
                        <GUID>4798EAB71E41F64AAFB1F5F64E44AEDA</GUID> 
                        <name>LCSPool01</name> 
                        <total>200000</total> 
                        <free>199950</free> 
                        <path>LDAP://CN=LC Services,CN=Microsoft,CN=LCSPool01, 
                         CN=Pools,CN=RTC Service,CN=Microsoft,CN=System,DC=NCES, 
                         DC=COM</path> 
                        </serverPool> 
                </serverPools> 
        </data> 
</response> 
                

Applies To

Live Communications Resource Manager Web Service for:

  • Hosted Messaging and Collaboration version 3.5

  • Hosted Messaging and Collaboration version 3.0

See also

Tasks

Live Communications Resource Manager::QueryServerPoolByUser