Share via


Data Hosting Resource Manager::QueryOrganizationQuota

This procedure returns capacity data for a specified organization.

Arguments

Input argument Required Description

<org>

Yes

The Lightweight Directory Access Protocol (LDAP) path of the owning organization.

<preferredDomainController>

Yes

Output argument Description

<maxDatabases>

<databasesFree>

<megabytes>

<megabytesFree>

Remarks

Access Level

Public

Provisioning Steps

  1. Retrieve the capacity limits assigned to the organization.

Security

  • Impersonate Caller.

  • Caller Tested for OrgCreator permissions:

    • Domain admins

    • Hosting admins

    • Reseller admins

Note

Reseller admins cannot query databases for their own organization, only for child organizations.

Sample Code

Example XML Request

<request> 
  <procedure> 
    <execute namespace="Data Hosting Resource Manager" procedure="QueryOrganizationQuota" 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> 
    <maxDatabases>10</maxDatabases> 
    <databasesFree>8</databasesFree> 
    <megabytes>100</megabytes> 
    <megabytesFree>80</megabytesFree> 
  </data> 
</response> 

Applies To

Data Hosting Resource Manager 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

Data Hosting Resource Manager::QueryAllOrganizations
Data Hosting Resource Manager::QueryDatabasesByOrganization