Skip to main content

hosted_email_services_accounts

Creates, updates, deletes, gets or lists a hosted_email_services_accounts resource.

Overview​

Namehosted_email_services_accounts
TypeResource
Idovh.pack_xdsl.hosted_email_services_accounts

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
antispam_enabledbooleanIs the anti-spam enabled ? (wire: antispamEnabled)
antivirus_enabledbooleanIs the anti-virus enabled ? (wire: antivirusEnabled)
offerstringOffer name (individual)
primary_email_addressstringPrimary email address (wire: primaryEmailAddress)
quotaobjectQuota of the mailbox
sizeobjectSize of the maibox

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdomain, pack_nameGet the account of a hosted email service. Returns the primary address, offer, quota, mailbox size and the anti-spam and anti-virus status of the account.

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.

NameDatatypeDescription
api_hoststringThe 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"}})
domainstring
pack_namestringThe internal name of your pack (wire: packName)

SELECT examples​

Get the account of a hosted email service. Returns the primary address, offer, quota, mailbox size and the anti-spam and anti-virus status of the account.

SELECT
antispam_enabled,
antivirus_enabled,
offer,
primary_email_address,
quota,
size
FROM ovh.pack_xdsl.hosted_email_services_accounts
WHERE domain = '{{ domain }}' -- required
AND pack_name = '{{ pack_name }}' -- required
;