Skip to main content

domain_disclaimers

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

Overview​

Namedomain_disclaimers
TypeResource
Idovh.email_pro.domain_disclaimers

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
namestringDisclaimer name
task_pending_idintegertask pending id (wire: taskPendingId)
contentstringSignature, added at the bottom of your organization emails
creation_datestring (date-time)Creation date (wire: creationDate)
outside_onlybooleanActivate the disclaimer only for external emails (wire: outsideOnly)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdomain_name, serviceReturns the content of the disclaimer added at the bottom of the emails of the domain, and whether it is added only to external emails. (Alpha version)
createinsertdomain_name, service, contentCreate a disclaimer. Creates the disclaimer added at the bottom of the emails of the domain, and returns the task. Set outsideOnly to true to add it only to external emails. Insert Active Directory attributes in content as %%AttributeName%%.
updateupdatedomain_name, serviceUpdate the disclaimer. Updates the content of the disclaimer of the domain, and outsideOnly to add it only to external emails. Insert Active Directory attributes in content as %%AttributeName%%.
deletedeletedomain_name, serviceDelete the disclaimer. Removes the disclaimer of the domain, so that it is no longer added to the emails sent from it, 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"}})
domain_namestringDomain name (wire: domainName)
servicestringThe internal name of your pro organization

SELECT examples​

Returns the content of the disclaimer added at the bottom of the emails of the domain, and whether it is added only to external emails. (Alpha version)

SELECT
name,
task_pending_id,
content,
creation_date,
outside_only
FROM ovh.email_pro.domain_disclaimers
WHERE domain_name = '{{ domain_name }}' -- required
AND service = '{{ service }}' -- required
;

INSERT examples​

Create a disclaimer. Creates the disclaimer added at the bottom of the emails of the domain, and returns the task. Set outsideOnly to true to add it only to external emails. Insert Active Directory attributes in content as %%AttributeName%%.

INSERT INTO ovh.email_pro.domain_disclaimers (
content,
outside_only,
domain_name,
service
)
SELECT
'{{ content }}' /* required */,
{{ outside_only }},
'{{ domain_name }}',
'{{ service }}'
RETURNING
id,
finish_date,
function,
status,
todo_date
;

UPDATE examples​

Update the disclaimer. Updates the content of the disclaimer of the domain, and outsideOnly to add it only to external emails. Insert Active Directory attributes in content as %%AttributeName%%.

UPDATE ovh.email_pro.domain_disclaimers
SET
content = '{{ content }}',
outside_only = {{ outside_only }}
WHERE
domain_name = '{{ domain_name }}' --required
AND service = '{{ service }}' --required;

DELETE examples​

Delete the disclaimer. Removes the disclaimer of the domain, so that it is no longer added to the emails sent from it, and returns the task.

DELETE FROM ovh.email_pro.domain_disclaimers
WHERE domain_name = '{{ domain_name }}' --required
AND service = '{{ service }}' --required
;