Exchange 2007 Resource Manager::QueryResourcesByOrganization

This procedure returns the resources owned by an organization.

Arguments

Input Arguments Required Description

<preferredDomainController>

Yes

The Fully Qualified Domain Names (FQDN) or IP Address of the domain controller to use for this procedure.

<GUID>

No

The GUID for the public store, mailstore, or mailbox..

<organization>

Yes

The Lightweight directory access protocol (LDAP) path of the organization or a container element for organization properties elements.

Output Arguments Description

<organization>

The LDAP path of the organization or a container element for organization properties elements.

<orgResources>

<orgResources/ mailStores>

The container element for child mailStore elements.

<mailboxes/ mailbox/ path>

The LDAP path for the mailbox or organization.

<mailStores/@megabytes>

The size of disk storage or the size of an adjustment.

<mailStores/@megabytesFree>

The number of megabytes yet to be allocated for the public store or mailstore.

<orgResources/ mailStores/ mailStore>

The container element for each set of child mailstore properties elements.

<mailStores/ mailStore/ GUID>

The GUID for the public store, mailstore, or mailbox..

<mailStores/ mailStore/ serverName>

Required if the publicStore element is present. The NETBIOS name of the Exchange server.

<mailStores/ mailStore/ mailStoreName>

The name of the mailstore. This name must be unique amongst all of the mailbox stores in the Active Directory tree. A naming scheme of Mailbox Store N (ServerName) where N is an integer that is unique on this server is recommended.

<mailStores/ mailStore/ megabytes>

The size of disk storage or the size of an adjustment.

< mailStores/ mailStore/ megabytesFree>

The number of megabytes yet to be allocated for the public store or mailstore.

<orgResources/ publicStore>

The container element for each set of child public store properties elements.

<orgResources/ publicStore/ GUID>

orgResources/ publicStore/ GUID False The GUID for the public store, mailstore, or mailbox..

<orgResources/ publicStore/ serverName>

Required if the publicStore element is present. The NETBIOS name of the Exchange server.

<orgResources/ publicStore/ publicStoreName>

Defaults to Public Folder Store (ServerName). Must be unique amongst all the public folder stores in the Active Directory tree.

<orgResources/ publicStore/ megabytes>

The size of disk storage or the size of an adjustment.

<orgResources/ publicStore/ megabytesFree>

The number of megabytes yet to be allocated for the public store or mailstore.

Remarks

Security

The caller must be at least a member of role: UserCreators

Sample Code

Example XML Request

<request>  
        <data>  
                <organization>LDAP://OU=AlpineSkiHouse,ou=ConsolidatedMessenger,ou=Hosting,dc=Fabrikam,dc=com </organization> 
                <preferredDomainController>AD01.fabrikam.com </preferredDomainController> 
        </data> 
        <procedure>  
                <execute namespace="Exchange 2007 Resource Manager" procedure="QueryResourcesByOrganization" impersonate="1" >  
                        <before source="data" destination="executeData" mode="merge" /> 
                        <after source="executeData" destination="data" mode="merge" /> 
                </execute> 
        </procedure> 
</request> 

Example XML Response

<response>  
        <data>  
                <organization> LDAP://ou=Reseller,ou=Hosting,dc=raven01,dc=com </organization> 
                <orgResources>  
                        <mailStores megabytes="400" megabytesFree="400" >  
                                <mailStore>  
                                        <GUID>2485e2f23bae4562be7ba3952228e699 </GUID> 
                                        <serverName>EXBE01 </serverName> 
                                        <mailStoreName>Mailbox Store 1 (EXBE01) </mailStoreName> 
                                        <megabytes>200 </megabytes> 
                                        <megabytesFree>200 </megabytesFree> 
                                </mailStore> 
                        </mailStores> 
                        <publicStore>  
                                <GUID>2485e2f23bae4562be7ba3952228e234 </GUID> 
                                <serverName>EXBE01 </serverName> 
                                <publicStoreName>Public Folder Store (EXBE01) </publicStoreName> 
                                <megabytes>100 </megabytes> 
                                <megabytesFree>100 </megabytesFree> 
                        </publicStore> 
                </orgResources> 
        </data> 
</response> 

Applies To

Exchange 2007 Resource Manager Namespace for:

  • Hosted Messaging and Collaboration version 4.5

  • Hosted Messaging and Collaboration version 4.0