Skip to main content

dkims

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

Overview​

Namedkims
TypeResource
Idovh.email_domain.dkims

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
active_selectorstringactiveSelector (wire: activeSelector)
autoconfigbooleanIf true your DNS CNAME configuration is valid
selectorsarrayDKIM status
statusstringDKIM status (disabled, enabled, error, modifying, toConfigure)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdomainGet the DKIM configuration. Returns the DKIM status, the active selector, the selectors with their CNAME records, and whether the DNS CNAME configuration is valid.
disableexecdomainDisable DKIM. Stops signing the emails sent from the domain with DKIM, and returns the task. Read the result with GET dkim.
enableexecdomainEnable DKIM. Starts signing the emails sent from the domain with DKIM, and returns the task. Read the result with GET dkim.

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

SELECT examples​

Get the DKIM configuration. Returns the DKIM status, the active selector, the selectors with their CNAME records, and whether the DNS CNAME configuration is valid.

SELECT
active_selector,
autoconfig,
selectors,
status
FROM ovh.email_domain.dkims
WHERE domain = '{{ domain }}' -- required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Disable DKIM. Stops signing the emails sent from the domain with DKIM, and returns the task. Read the result with GET dkim.

EXEC ovh.email_domain.dkims.disable
@domain='{{ domain }}' --required
;