Skip to main content

delegated_account_responders

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

Overview​

Namedelegated_account_responders
TypeResource
Idovh.email_domain.delegated_account_responders

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
accountstringName of account
contentstringContent of responder
copybooleanIf true, emails will be copy to emailToCopy address
copy_tostringAccount where copy emails (wire: copyTo)
fromstring (date-time)Date of start responder
tostring (date-time)Date of end responder

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectemailGet a delegated account responder. Returns the content, the start and end dates and the copy settings of the responder of the delegated email account.
createinsertemail, content, copyCreate a delegated account responder. Creates the automatic reply of the delegated email account with its content and optional start and end dates, and returns the task. Set copy to true to copy the emails to copyTo.
updateupdateemailUpdate a delegated account responder. Updates the content and the start and end dates of the responder.
deletedeleteemailDelete a delegated account responder. Removes the automatic reply of the delegated email account and returns the task.

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"}})
emailstringEmail

SELECT examples​

Get a delegated account responder. Returns the content, the start and end dates and the copy settings of the responder of the delegated email account.

SELECT
account,
content,
copy,
copy_to,
from,
to
FROM ovh.email_domain.delegated_account_responders
WHERE email = '{{ email }}' -- required
;

INSERT examples​

Create a delegated account responder. Creates the automatic reply of the delegated email account with its content and optional start and end dates, and returns the task. Set copy to true to copy the emails to copyTo.

INSERT INTO ovh.email_domain.delegated_account_responders (
content,
copy,
copy_to,
from,
to,
email
)
SELECT
'{{ content }}' /* required */,
{{ copy }} /* required */,
'{{ copy_to }}',
'{{ from }}',
'{{ to }}',
'{{ email }}'
RETURNING
id,
account,
action,
date,
domain,
type
;

UPDATE examples​

Update a delegated account responder. Updates the content and the start and end dates of the responder.

UPDATE ovh.email_domain.delegated_account_responders
SET
content = '{{ content }}',
from = '{{ from }}',
to = '{{ to }}'
WHERE
email = '{{ email }}' --required;

DELETE examples​

Delete a delegated account responder. Removes the automatic reply of the delegated email account and returns the task.

DELETE FROM ovh.email_domain.delegated_account_responders
WHERE email = '{{ email }}' --required
;