Skip to main content

domain_services

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

Overview​

Namedomain_services
TypeResource
Idovh.pack_xdsl.domain_services

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
valuestring

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectpack_nameList the domain services of an xDSL pack. Returns the domain names ordered or transferred as a service of the pack.
createinsertpack_name, action, domain, tldCreate a domain service in an xDSL pack. Orders, transfers or triggers the given action on a domain with its TLD, using the auth code for a transfer. Returns the task that performs it.

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"}})
pack_namestringThe internal name of your pack (wire: packName)

SELECT examples​

List the domain services of an xDSL pack. Returns the domain names ordered or transferred as a service of the pack.

SELECT
value
FROM ovh.pack_xdsl.domain_services
WHERE pack_name = '{{ pack_name }}' -- required
;

INSERT examples​

Create a domain service in an xDSL pack. Orders, transfers or triggers the given action on a domain with its TLD, using the auth code for a transfer. Returns the task that performs it.

INSERT INTO ovh.pack_xdsl.domain_services (
action,
auth_info,
domain,
tld,
pack_name
)
SELECT
'{{ action }}' /* required */,
'{{ auth_info }}',
'{{ domain }}' /* required */,
'{{ tld }}' /* required */,
'{{ pack_name }}'
RETURNING
id,
function,
status,
update_date
;