Skip to main content

dns_mx_filters

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

Overview​

Namedns_mx_filters
TypeResource
Idovh.email_domain.dns_mx_filters

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
valuestringPossible values for MX filter (CUSTOM, FULL_FILTERING, NO_FILTERING, REDIRECT, SIMPLE_FILTERING)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdomainsub_domainGet the MX filter. Returns the MX filter of the domain, or of subDomain: CUSTOM, FULL_FILTERING, NO_FILTERING, REDIRECT or SIMPLE_FILTERING.

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
sub_domainstringSub domain (wire: subDomain)

SELECT examples​

Get the MX filter. Returns the MX filter of the domain, or of subDomain: CUSTOM, FULL_FILTERING, NO_FILTERING, REDIRECT or SIMPLE_FILTERING.

SELECT
value
FROM ovh.email_domain.dns_mx_filters
WHERE domain = '{{ domain }}' -- required
AND sub_domain = '{{ sub_domain }}'
;