Skip to main content

circuits

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

Overview​

Namecircuits
TypeResource
Idovh.ovh_cloud_connect.circuits

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idintegerCircuit id
namestringCircuit name
creation_datestring (date-time)Creation date of the circuit (wire: creationDate)
done_datestring (date-time)Date when the circuit was terminated (wire: doneDate)
keystringPairing key of the circuit
last_updatestring (date-time)Last update date of the circuit (wire: lastUpdate)
operational_statusstringOperational status of the circuit (degraded, down, unknown, up) (wire: operationalStatus)
statusstringCircuit status (active, pending, pending_customer, terminated, to_check)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectid, service_nameReturns the circuit's pairing key, status and operational status.
listselectservice_namex_pagination_modeReturns the IDs of the circuits created from Google pairing keys.
deletedeleteid, service_nameDissociates the pairing key and removes the circuit (async task).

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"}})
idintegerId
service_namestring (uuid)Service name (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​

Returns the circuit's pairing key, status and operational status.

SELECT
id,
name,
creation_date,
done_date,
key,
last_update,
operational_status,
status
FROM ovh.ovh_cloud_connect.circuits
WHERE id = '{{ id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

DELETE examples​

Dissociates the pairing key and removes the circuit (async task).

DELETE FROM ovh.ovh_cloud_connect.circuits
WHERE id = '{{ id }}' --required
AND service_name = '{{ service_name }}' --required
;