Skip to main content

task_mailinglists

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

Overview​

Nametask_mailinglists
TypeResource
Idovh.email_domain.task_mailinglists

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idinteger
accountstring
actionstring
datestring (date-time)
domainstring
languagestringPossible values for mailing list language (de, en, es, fr, it, nl, pl, pt)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdomain, idGet a mailing list task. Returns the action, the account, the domain, the language and the creation date of the mailing list task.
listselectdomainaccount, x_pagination_modeList mailing list tasks. Returns the IDs of the pending mailing list tasks of the domain. Filter them by 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"}})
domainstringName of your domain name
idinteger
accountstringAccount name
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Get a mailing list task. Returns the action, the account, the domain, the language and the creation date of the mailing list task.

SELECT
id,
account,
action,
date,
domain,
language
FROM ovh.email_domain.task_mailinglists
WHERE domain = '{{ domain }}' -- required
AND id = '{{ id }}' -- required
;