Skip to main content

names

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

Overview​

Namenames
TypeResource
Idovh.domain_v2.names

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstringUnique identifier of the resource. Here, the domain name itself is used as an identifier.
checksumstringComputed hash used to control concurrent modification requests. Here, it represents the current target specification value.
current_stateobjectCurrent state of the domain name (wire: currentState)
current_tasksarrayOngoing asynchronous tasks related to the domain name resource (wire: currentTasks)
iamobjectIAM resource metadata
resource_statusstringReflects the readiness of the domain name resource. A new target specification request will be accepted only in READY, UPDATING or ERROR status. (CREATING, CREATION_PLANNED, DELETING, ERROR, OUT_OF_SYNC, READY, SUSPENDED, UNKNOWN, UPDATING) (wire: resourceStatus)
target_specobjectLatest target specification of the domain name resource (wire: targetSpec)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdomain_nameGet a domain name resource (Beta version)
listselectx_pagination_cursor, x_pagination_size, additional_states, contact_administrator, contact_billing, contact_owner, contact_technical, iam_tags, main_state, search_value, suspension_stateList all domain name resources (Beta version)
updateupdatedomain_name, target_specUpdate an existing domain name by modifying various configurations through the targetSpec (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"}})
domain_namestringDomain name (wire: domainName)
additional_statesarrayFilter the results having all these additional states (wire: additionalStates)
contact_administratorarrayFilter the results by administrator contact id (wire: contactAdministrator)
contact_billingarrayFilter the results by billing contact id (wire: contactBilling)
contact_ownerarrayFilter the results by owner contact id (wire: contactOwner)
contact_technicalarrayFilter the results by technical contact id (wire: contactTechnical)
iam_tagsobjectFilter resources on IAM tags (wire: iamTags)
main_statearrayFilter the results having all these main states (wire: mainState)
search_valuestringFilter the results with the search value on resource id (wire: searchValue)
suspension_statearrayFilter the results having all these suspension states (wire: suspensionState)
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

Get a domain name resource (Beta version)

SELECT
id,
checksum,
current_state,
current_tasks,
iam,
resource_status,
target_spec
FROM ovh.domain_v2.names
WHERE domain_name = '{{ domain_name }}' -- required
;

UPDATE examples​

Update an existing domain name by modifying various configurations through the targetSpec (Beta version)

UPDATE ovh.domain_v2.names
SET
checksum = '{{ checksum }}',
target_spec = '{{ target_spec }}'
WHERE
domain_name = '{{ domain_name }}' --required
AND target_spec = '{{ target_spec }}' --required
RETURNING
id,
checksum,
current_state,
current_tasks,
resource_status,
target_spec;