Skip to main content

delegations

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

Overview​

Namedelegations
TypeResource
Idovh.ip.delegations

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
targetstringNS target for delegation

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectip, targetGet a reverse delegation. Returns the name server that this delegation points the reverse zone of the IPv6 block to.
listselectipx_pagination_modeList reverse delegations. Returns the name servers the reverse zone of the IPv6 block is delegated to. Reverse delegation applies to IPv6 blocks only.
createinsertip, targetCreate a reverse delegation. Delegates the reverse zone of the IPv6 block to the given name server, and returns the new delegation.
deletedeleteip, targetDelete a reverse delegation. Removes this name server from the reverse delegation of the IPv6 block. The call returns no content.

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"}})
ipstring (ip-block)
targetstringNS target for delegation
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 a reverse delegation. Returns the name server that this delegation points the reverse zone of the IPv6 block to.

SELECT
target
FROM ovh.ip.delegations
WHERE ip = '{{ ip }}' -- required
AND target = '{{ target }}' -- required
;

INSERT examples​

Create a reverse delegation. Delegates the reverse zone of the IPv6 block to the given name server, and returns the new delegation.

INSERT INTO ovh.ip.delegations (
target,
ip
)
SELECT
'{{ target }}' /* required */,
'{{ ip }}'
RETURNING
target
;

DELETE examples​

Delete a reverse delegation. Removes this name server from the reverse delegation of the IPv6 block. The call returns no content.

DELETE FROM ovh.ip.delegations
WHERE ip = '{{ ip }}' --required
AND target = '{{ target }}' --required
;