Skip to main content

task_email_changes

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

Overview​

Nametask_email_changes
TypeResource
Idovh.me.task_email_changes

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idinteger
date_donestring (date-time)End date of that request (wire: dateDone)
date_requeststring (date-time)Creation date of that request (wire: dateRequest)
new_emailstringThe email address to change for (wire: newEmail)
statestringCurrent state of the request (aborted, done, refused, todo)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectidGet this object properties
listselectstate, x_pagination_modeList of email change tasks you are involved in
acceptexecid, tokenAccept this change request
refuseexecid, tokenRefuse this change request

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"}})
idinteger
statestringFilter the value of state property (like)
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 this object properties

SELECT
id,
date_done,
date_request,
new_email,
state
FROM ovh.me.task_email_changes
WHERE id = '{{ id }}' -- required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Accept this change request

EXEC ovh.me.task_email_changes.accept
@id='{{ id }}' --required
@@json=
'{
"token": "{{ token }}"
}'
;