account_usages
Creates, updates, deletes, gets or lists an account_usages resource.
Overview​
| Name | account_usages |
| Type | Resource |
| Id | ovh.email_domain.account_usages |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
date | string (date-time) | Timestamp |
email_count | integer | Number of message in mailbox (wire: emailCount) |
quota | integer | Size of mailbox (bytes) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | account_name, domain | Get email account usage. Returns the number of emails, the maximum size in bytes of the mailbox (quota) and the date of the measure. |
Parameters​
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
account_name | string | Name of account (wire: accountName) |
api_host | string | The OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}}) |
domain | string | Name of your domain name |
SELECT examples​
- get
Get email account usage. Returns the number of emails, the maximum size in bytes of the mailbox (quota) and the date of the measure.
SELECT
date,
email_count,
quota
FROM ovh.email_domain.account_usages
WHERE account_name = '{{ account_name }}' -- required
AND domain = '{{ domain }}' -- required
;