Skip to main content

name_task_foas

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

Overview​

Namename_task_foas
TypeResource
Idovh.domain_v2.name_task_foas

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstring (uuid)Unique identifier of the FOA
checksumstringComputed hash of the current state of the FOA. Reflects the latest observed state.
current_stateobjectCurrent state of the FOA (wire: currentState)
resource_statusstringReadiness of the FOA resource (CREATING, CREATION_PLANNED, DELETING, ERROR, OUT_OF_SYNC, READY, SUSPENDED, UNKNOWN, UPDATING) (wire: resourceStatus)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdomain_name, foa_id, task_idGet a specific FOA (Form of Authorization) attached to a domain name task (Beta version)
listselectdomain_name, task_idx_pagination_cursor, x_pagination_sizeList the FOAs (Form of Authorization) attached to a domain name task. Trade operations may produce several FOAs (one per involved contact). Outgoing transfers produce a single FOA. (Beta version)
resendexecdomainName, foaId, taskIdResend the FOA (Form of Authorization) email to its recipient. Fails when the FOA has already been answered, when it is expired, or when the underlying task has already finished. (Beta version)

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"}})
domainNamestringDomain name
domain_namestringDomain name (wire: domainName)
foaIdstring (uuid)Foa ID
foa_idstring (uuid)Foa ID (wire: foaId)
taskIdstring (uuid)Task ID
task_idstring (uuid)Task ID (wire: taskId)
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

Get a specific FOA (Form of Authorization) attached to a domain name task (Beta version)

SELECT
id,
checksum,
current_state,
resource_status
FROM ovh.domain_v2.name_task_foas
WHERE domain_name = '{{ domain_name }}' -- required
AND foa_id = '{{ foa_id }}' -- required
AND task_id = '{{ task_id }}' -- required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Resend the FOA (Form of Authorization) email to its recipient. Fails when the FOA has already been answered, when it is expired, or when the underlying task has already finished. (Beta version)

EXEC ovh.domain_v2.name_task_foas.resend
@domainName='{{ domainName }}' --required,
@foaId='{{ foaId }}' --required,
@taskId='{{ taskId }}' --required
;