Skip to main content

service_mailing_list_aliases

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

Overview​

Nameservice_mailing_list_aliases
TypeResource
Idovh.email_exchange.service_mailing_list_aliases

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
task_pending_idintegerPending task id (wire: taskPendingId)
aliasstringAlias
creation_datestring (date-time)Creation date (wire: creationDate)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectalias, exchange_service, mailing_list_address, organization_nameGet a group alias. Returns the alias address, its creation date and the ID of its pending task, if any (taskPendingId).
listselectexchange_service, mailing_list_address, organization_namex_pagination_modeList group aliases. Returns the aliases of the group: extra addresses that deliver to the members of the group.
createinsertexchange_service, mailing_list_address, organization_name, aliasCreate a group alias. Adds the alias address to the group, so that the emails sent to it reach the members, and returns the task.
deletedeletealias, exchange_service, mailing_list_address, organization_nameDelete a group alias. Removes the alias address from the group, whose members no longer receive its emails, 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
aliasstringAlias
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"}})
exchange_servicestringThe internal name of your exchange service (wire: exchangeService)
mailing_list_addressstringThe mailing list address (wire: mailingListAddress)
organization_namestringThe internal name of your exchange organization (wire: organizationName)
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 group alias. Returns the alias address, its creation date and the ID of its pending task, if any (taskPendingId).

SELECT
task_pending_id,
alias,
creation_date
FROM ovh.email_exchange.service_mailing_list_aliases
WHERE alias = '{{ alias }}' -- required
AND exchange_service = '{{ exchange_service }}' -- required
AND mailing_list_address = '{{ mailing_list_address }}' -- required
AND organization_name = '{{ organization_name }}' -- required
;

INSERT examples​

Create a group alias. Adds the alias address to the group, so that the emails sent to it reach the members, and returns the task.

INSERT INTO ovh.email_exchange.service_mailing_list_aliases (
alias,
exchange_service,
mailing_list_address,
organization_name
)
SELECT
'{{ alias }}' /* required */,
'{{ exchange_service }}',
'{{ mailing_list_address }}',
'{{ organization_name }}'
RETURNING
id,
finish_date,
function,
status,
todo_date
;

DELETE examples​

Delete a group alias. Removes the alias address from the group, whose members no longer receive its emails, and returns the task.

DELETE FROM ovh.email_exchange.service_mailing_list_aliases
WHERE alias = '{{ alias }}' --required
AND exchange_service = '{{ exchange_service }}' --required
AND mailing_list_address = '{{ mailing_list_address }}' --required
AND organization_name = '{{ organization_name }}' --required
;