Skip to main content

ovh_cloud_connects

Creates, updates, deletes, gets or lists an ovh_cloud_connects resource.

Overview​

Nameovh_cloud_connects
TypeResource
Idovh.vrack.ovh_cloud_connects

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
ovh_cloud_connectstring (uuid)ovhCloudConnect service name (wire: ovhCloudConnect)
vrackstringvrack name

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectovh_cloud_connect, service_nameGet a service. Returns the attached OVHcloud Connect service and its vRack.
listselectservice_namex_pagination_modeList services. Returns the identifiers of the OVHcloud Connect services attached to the vRack.
createinsertservice_name, ovh_cloud_connectAttach a service. Attaches an OVHcloud Connect service to the vRack. Returns the task that performs it.
deletedeleteovh_cloud_connect, service_nameDetach a service. Detaches the OVHcloud Connect service from the vRack. 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"}})
ovh_cloud_connectstring (uuid)ovhCloudConnect service name (wire: ovhCloudConnect)
service_namestringThe internal name of your vrack (wire: serviceName)
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 service. Returns the attached OVHcloud Connect service and its vRack.

SELECT
ovh_cloud_connect,
vrack
FROM ovh.vrack.ovh_cloud_connects
WHERE ovh_cloud_connect = '{{ ovh_cloud_connect }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Attach a service. Attaches an OVHcloud Connect service to the vRack. Returns the task that performs it.

INSERT INTO ovh.vrack.ovh_cloud_connects (
ovh_cloud_connect,
service_name
)
SELECT
'{{ ovh_cloud_connect }}' /* required */,
'{{ service_name }}'
RETURNING
id,
order_id,
service_name,
function,
last_update,
status,
target_domain,
todo_date
;

DELETE examples​

Detach a service. Detaches the OVHcloud Connect service from the vRack. Returns the task that performs it.

DELETE FROM ovh.vrack.ovh_cloud_connects
WHERE ovh_cloud_connect = '{{ ovh_cloud_connect }}' --required
AND service_name = '{{ service_name }}' --required
;