dns_mx_filters
Creates, updates, deletes, gets or lists a dns_mx_filters resource.
Overview​
| Name | dns_mx_filters |
| Type | Resource |
| Id | ovh.email_domain.dns_mx_filters |
Fields​
The following fields are returned by SELECT queries:
- get
| Name | Datatype | Description |
|---|---|---|
value | string | Possible values for MX filter (CUSTOM, FULL_FILTERING, NO_FILTERING, REDIRECT, SIMPLE_FILTERING) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | domain | sub_domain | Get 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.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The 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 | string | Name of your domain name |
sub_domain | string | Sub domain (wire: subDomain) |
SELECT examples​
- get
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 }}'
;