Skip to main content

task_contact_changes

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

Overview​

Nametask_contact_changes
TypeResource
Idovh.me.task_contact_changes

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idinteger
asking_accountstringAccount who asked the contact change (wire: askingAccount)
contact_typesarrayContacts to be changed (wire: contactTypes)
date_donestring (date-time)Date at which the contact change has been finished (wire: dateDone)
date_requeststring (date-time)Date at which the request has been made (wire: dateRequest)
from_accountstringAccount to change contact from (wire: fromAccount)
service_domainstringThe service on which the task runs (wire: serviceDomain)
statestringCurrent state of the request (aborted, checkValidity, doing, done, error, expired, refused, todo, validatingByCustomers)
to_accountstringAccount to change contact to (wire: toAccount)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectidGet this object properties
listselectasking_account, state, to_account, x_pagination_modeList of service contact change tasks you are involved in
acceptexecid, tokenAccept this change request
refuseexecid, tokenRefuse this change request
resend_emailexecidThis call will send you a new email, containing a new token

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
asking_accountstringFilter the value of askingAccount property (like) (wire: askingAccount)
statestringFilter the value of state property (like)
to_accountstringFilter the value of toAccount property (like) (wire: toAccount)
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,
asking_account,
contact_types,
date_done,
date_request,
from_account,
service_domain,
state,
to_account
FROM ovh.me.task_contact_changes
WHERE id = '{{ id }}' -- required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Accept this change request

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