Overview | Service | Command |
Count number of accounts by cos in a domain,
Note, it doesn't include any account with zimbraIsSystemResource=TRUE, nor does it include any calendar resources.
e.g.
<CountAccountResponse> <cos id="044382d5-f2c5-4265-9a1a-ac255fce729f" name="basic">123</cos> <cos id="723d7cf6-8d76-443a-b5f3-c56563a8b4c7" name="standard">456</cos> <cos id="35c6e603-123a-4a08-b485-b00e1f6d1663" name="premium">789</cos> <cos id="35c6e603-123a-4a08-b485-b00e1f6d1663" name="default">55</cos> </CountAccountResponse>
Authorization token required | true |
Admin Authorization token required | true |
<CountAccountRequest> ## CountAccountRequest
<domain [by="{domain-selector-by} (id|name|virtualHostname|krb5Realm|foreignName)"]>{key}</domain> ## DomainSelector
</CountAccountRequest>
The following table describes elements and attributes you can define within a
<CountAccountRequest>
element:
XPath | Required / Optional | Description |
/domain | Optional (0 or 1) | Type:{key} Domain Description for element text content:The key used to identify the domain. Meaning determined by {domain-selector-by} |
/domain@by | Optional (0 or 1) | Type:id|name|virtualHostname|krb5Realm|foreignName Select the meaning of {domain-selector-key} |
<CountAccountResponse> ## CountAccountResponse
(<cos name="{cos-name}" id="{cos-id}">{value} (long)</cos> ## CosCountInfo)*
</CountAccountResponse>
The following table describes elements and attributes you can define within a
<CountAccountResponse>
element:
XPath | Required / Optional | Description |
/cos | Optional (0 or more) | Type:{value} (long) Account count information by Class Of Service (COS) Description for element text content:Account count. Note, it doesn't include any account with zimbraIsSystemResource=TRUE, nor does it include any calendar resources. |
/cos@name | Required (only 1) | Type:String Class Of Service (COS) name |
/cos@id | Required (only 1) | Type:String Class Of Service (COS) ID |