Windows-based Hosting::QueryCustomerPlans
The QueryCustomerPlans procedure returns a list of plans for a specified customer.
Arguments
The QueryCustomerPlans procedure requires the following input parameters.
Input Argument | Description |
---|---|
<org> |
The Lightweight Directory Access Protocol (LDAP) path of the organization that will own the Web site. |
<preferredDomainController> |
The name of the preferred domain controller. |
Output Arguments
The QueryCustomerPlans procedure has no return values, other than the included XML response.
Remarks
Security
The QueryCustomerPlans procedure has the following security requirements:
- The caller is impersonated.
Sample Code
Example XML Request
The following is an example of an XML request for the QueryCustomerPlans procedure of the Managed Windows-based Hosting Namespace:
<request>
<procedure>
<execute namespace="Windows-based Hosting"
procedure="QueryCustomerPlans" impersonate="1">
<executeData>
<org>LDAP://OU=northwindtraders,OU=consolidatedmessenger,
OU=Hosting,DC=fabrikam,DC=Com</org>
<preferredDomainController>AD01.fabrikam.Com
</preferredDomainController>
<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 QueryCustomerPlans procedure of the Managed Windows-based Hosting Namespace:
<response>
<data>
<org>LDAP://OU=Implement,OU=Microsoft,OU=Hosting,DC=fabrikam,
DC=Com</org>
<preferredDomainController>AD01-wh.fabrikam.com
</preferredDomainController>
<connect Provider="SQLOLEDB" Server="MPS01-WH"
Database="HeCustomerDb" Trusted_Connection="yes"></connect>
<guid>AB70D212-1F9D-B348-8FD9-024A3DCDA1ED</guid>
<statusTypeName>Enabled</statusTypeName>
<returnCode>0</returnCode>
<rowSet>
<row planName="DataBasic" planDescription="Basic Data Hosting
Plan" planStatus="Enabled"
dateCreated="2004-07-15T17:11:34.760000000"
dateLastUpdated="2004-07-15T17:11:34.760000000"/>
<row planName="SharePointBasic" planDescription="Basic SharePoint
Hosting Plan" planStatus="Enabled"
dateCreated="2004-07-15T16:00:46.440000000"
dateLastUpdated="2004-07-15T16:00:46.440000000"/>
<row planName="WebBasic" planDescription="Basic Web Hosting
Plan." planStatus="Enabled"
dateCreated="2004-07-15T15:39:34.803000000"
dateLastUpdated="2004-07-15T15:39:34.803000000" />
</rowSet>
<servicePlans>
<plan>
<planName>DataBasic</planName>
<planDescription>Basic Data Hosting Plan</planDescription>
<planStatus>Enabled</planStatus>
<dateCreated>2004-07-15T17:11:34.760000000</dateCreated>
<dateLastUpdated>2004-07-15T17:11:34.760000000
</dateLastUpdated>
</plan>
<plan>
<planName>SharePointBasic</planName>
<planDescription>Basic SharePoint Hosting
Plan</planDescription>
<planStatus>Enabled</planStatus>
<dateCreated>2004-07-15T16:00:46.440000000</dateCreated>
<dateLastUpdated>2004-07-15T16:00:46.440000000
</dateLastUpdated>
</plan>
<plan>
<planName>WebBasic</planName>
<planDescription>Basic Web Hosting Plan.</planDescription>
<planStatus>Enabled</planStatus>
<dateCreated>2004-07-15T15:39:34.803000000</dateCreated>
<dateLastUpdated>2004-07-15T15:39:34.803000000
</dateLastUpdated>
</plan>
</servicePlans>
</data>
</response>
Applies To
Managed Windows-based Hosting Namespace API for:
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
Windows-based Hosting::AddPlansToCustomer
Windows-based Hosting::ChangeCustomerPlan
Windows-based Hosting::RemovePlansFromCustomer