Skip to main content

config_pop_statuses

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

Overview​

Nameconfig_pop_statuses
TypeResource
Idovh.ovh_cloud_connect.config_pop_statuses

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
flap_countnumberNumber of flap since last UP (wire: flapCount)
last_changestring (date-time)Last time the interface changed status (wire: lastChange)
last_downstring (date-time)Last time the interface status went from up to down (wire: lastDown)
last_flapstring (date-time)Last time the session flapped (wire: lastFlap)
last_upstring (date-time)Last time the interface status went from down to up (wire: lastUp)
last_updatestring (date-time)Last time the status was updated (wire: lastUpdate)
statusstringStatus of the peering (down, up)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectpop_id, service_nameReturns whether the L3 BGP session is up or down, with its flap count and last changes. (Beta version)

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"}})
pop_idintegerPop ID (wire: popId)
service_namestring (uuid)Service name (wire: serviceName)

SELECT examples​

Returns whether the L3 BGP session is up or down, with its flap count and last changes. (Beta version)

SELECT
flap_count,
last_change,
last_down,
last_flap,
last_up,
last_update,
status
FROM ovh.ovh_cloud_connect.config_pop_statuses
WHERE pop_id = '{{ pop_id }}' -- required
AND service_name = '{{ service_name }}' -- required
;