Skip to main content

glue_records

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

Overview​

Nameglue_records
TypeResource
Idovh.domain.glue_records

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
hoststringHost of the glue record
ipsarrayIP address

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselecthost, service_nameGet this glue record
listselectservice_namehost, x_pagination_modeList of glue records
createinsertservice_name, host, ipsCreate a glue record
deletedeletehost, service_nameDelete the glue record
updateexechost, serviceName, ipsUpdate the glue record

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"}})
hoststringHost
serviceNamestringService name
service_namestringService name (wire: serviceName)
hoststringFilter the value of host property
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 this glue record

SELECT
host,
ips
FROM ovh.domain.glue_records
WHERE host = '{{ host }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Create a glue record

INSERT INTO ovh.domain.glue_records (
host,
ips,
service_name
)
SELECT
'{{ host }}' /* required */,
'{{ ips }}' /* required */,
'{{ service_name }}'
RETURNING
id,
can_accelerate,
can_cancel,
can_relaunch,
comment,
creation_date,
domain,
done_date,
function,
last_update,
status,
todo_date,
type
;

DELETE examples​

Delete the glue record

DELETE FROM ovh.domain.glue_records
WHERE host = '{{ host }}' --required
AND service_name = '{{ service_name }}' --required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Update the glue record

EXEC ovh.domain.glue_records.update
@host='{{ host }}' --required,
@serviceName='{{ serviceName }}' --required
@@json=
'{
"ips": "{{ ips }}"
}'
;