Skip to main content

domains

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

Overview​

Namedomains
TypeResource
Idovh.domain.domains

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
service_idintegerTechnical service identifier (wire: serviceId)
contact_adminobjectAdministrative contact data (wire: contactAdmin)
contact_billingobjectBilling contact data (wire: contactBilling)
contact_ownerobjectOwner (registrant) contact data (wire: contactOwner)
contact_techobjectTechnical contact data (wire: contactTech)
dnssec_statestringCurrent DNSSEC state of the domain name (disabled, enabled, not_supported) (wire: dnssecState)
dnssec_supportedbooleanWhether DNSSEC is activated for this domain name (wire: dnssecSupported)
domainstringDomain name
expiration_datestring (date-time)Date when the domain name will expire, if not renewed (wire: expirationDate)
glue_record_ipv_6_supportedbooleanWhether the registry supports IPv6 glue records (wire: glueRecordIpv6Supported)
glue_record_multi_ip_supportedbooleanWhether the registry supports multi-ip glue records (wire: glueRecordMultiIpSupported)
host_supportedbooleanWhether the registry supports hosts as independent entities (wire: hostSupported)
iamobjectIAM resource metadata
last_updatestring (date-time)Last update date (wire: lastUpdate)
name_server_typestringName servers type (anycast, dedicated, empty, external, hold, hosted, hosting, mixed, parking) (wire: nameServerType)
name_serversarrayName servers list (wire: nameServers)
offerstringOffer associated with the domain name (diamond, gold, platinum)
owo_supportedbooleanWhether Whois data obfuscation is supported for this domain name (wire: owoSupported)
parent_serviceobjectParent service (wire: parentService)
renewal_datestring (date-time)Date when the domain name should be renewed (relevant if renewalState is automatic_renew) (wire: renewalDate)
renewal_statestringCurrent renewal state of the domain name (automatic_renew, cancellation_complete, cancellation_requested, manual_renew, unpaid) (wire: renewalState)
statestringCurrent state of the domain name (autorenew_in_progress, autorenew_registry_in_progress, deleted, dispute, expired, ok, outgoing_transfer, pending_create, pending_delete, pending_incoming_transfer, pending_installation, registry_suspended, restorable, technical_suspended)
suspension_statestringCurrent suspension state of the domain name (not_suspended, suspended) (wire: suspensionState)
transfer_lock_statusstringCurrent transfer lock status of the domain name (locked, locking, unavailable, unlocked, unlocking) (wire: transferLockStatus)
whois_ownerstringOwner (registrant) contact ID (contact data can be edited via /me/contact/<ID>) (wire: whoisOwner)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameGet domain name information
listselectiam_tags, whois_owner, x_pagination_modeGet the list of managed domain names
updateupdateservice_nameEdit domain name properties
order_createexecdomaindryRunOrder a new domain name (Beta version)
change_contactexecserviceNameLaunch a contact change procedure
name_servers_updateexecserviceName, nameServersUpdate DNS servers
uk_outgoing_transferexecserviceName, tagSchedule an outgoing transfer task for this domain (.uk only)

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"}})
serviceNamestringService name
service_namestringService name (wire: serviceName)
dryRunbooleanIf true, simulate the order and return the pricing without actually placing it. Default to false.
iam_tagsobjectFilter resources on IAM tags (wire: iamTags)
whois_ownerstringFilter domain names by owner ID (wire: whoisOwner)
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 domain name information

SELECT
service_id,
contact_admin,
contact_billing,
contact_owner,
contact_tech,
dnssec_state,
dnssec_supported,
domain,
expiration_date,
glue_record_ipv_6_supported,
glue_record_multi_ip_supported,
host_supported,
iam,
last_update,
name_server_type,
name_servers,
offer,
owo_supported,
parent_service,
renewal_date,
renewal_state,
state,
suspension_state,
transfer_lock_status,
whois_owner
FROM ovh.domain.domains
WHERE service_name = '{{ service_name }}' -- required
;

UPDATE examples​

Edit domain name properties

UPDATE ovh.domain.domains
SET
name_server_type = '{{ name_server_type }}',
transfer_lock_status = '{{ transfer_lock_status }}'
WHERE
service_name = '{{ service_name }}' --required
RETURNING
service_id,
contact_admin,
contact_billing,
contact_owner,
contact_tech,
dnssec_state,
dnssec_supported,
domain,
expiration_date,
glue_record_ipv_6_supported,
glue_record_multi_ip_supported,
host_supported,
last_update,
name_server_type,
name_servers,
offer,
owo_supported,
parent_service,
renewal_date,
renewal_state,
state,
suspension_state,
transfer_lock_status,
whois_owner;

Lifecycle Methods​

EXEC variables use wire (API) names.

Order a new domain name (Beta version)

EXEC ovh.domain.domains.order_create
@dryRun={{ dryRun }}
@@json=
'{
"contacts": "{{ contacts }}",
"dns": "{{ dns }}",
"domain": "{{ domain }}",
"duration": "{{ duration }}",
"priceAcknowledge": "{{ priceAcknowledge }}",
"promoCodes": "{{ promoCodes }}",
"waiveRetractationPeriod": {{ waiveRetractationPeriod }},
"zone": "{{ zone }}"
}'
;