Skip to main content

service_domain_disclaimers

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

Overview​

Nameservice_domain_disclaimers
TypeResource
Idovh.email_exchange.service_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, exchange_service, organization_nameGet the disclaimer. Returns the content of the disclaimer added to the emails of the domain, and whether it applies to external emails only.
createinsertdomain_name, exchange_service, organization_name, contentCreate a disclaimer. Adds a disclaimer at the bottom of the emails of the domain, and returns the task. Set outsideOnly to add it to external emails only. Insert Active Directory attributes in content as %%AttributeName%%.
updateupdatedomain_name, exchange_service, organization_nameUpdate the disclaimer. Updates the content of the disclaimer and outsideOnly, which limits it to external emails. Insert Active Directory attributes in content as %%AttributeName%%.
deletedeletedomain_name, exchange_service, organization_nameDelete 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)
exchange_servicestringThe internal name of your exchange service (wire: exchangeService)
organization_namestringThe internal name of your exchange organization (wire: organizationName)

SELECT examples​

Get the disclaimer. Returns the content of the disclaimer added to the emails of the domain, and whether it applies to external emails only.

SELECT
name,
task_pending_id,
content,
creation_date,
outside_only
FROM ovh.email_exchange.service_domain_disclaimers
WHERE domain_name = '{{ domain_name }}' -- required
AND exchange_service = '{{ exchange_service }}' -- required
AND organization_name = '{{ organization_name }}' -- required
;

INSERT examples​

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

INSERT INTO ovh.email_exchange.service_domain_disclaimers (
content,
outside_only,
domain_name,
exchange_service,
organization_name
)
SELECT
'{{ content }}' /* required */,
{{ outside_only }},
'{{ domain_name }}',
'{{ exchange_service }}',
'{{ organization_name }}'
RETURNING
id,
finish_date,
function,
status,
todo_date
;

UPDATE examples​

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

UPDATE ovh.email_exchange.service_domain_disclaimers
SET
content = '{{ content }}',
outside_only = {{ outside_only }}
WHERE
domain_name = '{{ domain_name }}' --required
AND exchange_service = '{{ exchange_service }}' --required
AND organization_name = '{{ organization_name }}' --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_exchange.service_domain_disclaimers
WHERE domain_name = '{{ domain_name }}' --required
AND exchange_service = '{{ exchange_service }}' --required
AND organization_name = '{{ organization_name }}' --required
;