config_pop_statuses
Creates, updates, deletes, gets or lists a config_pop_statuses resource.
Overview​
| Name | config_pop_statuses |
| Type | Resource |
| Id | ovh.ovh_cloud_connect.config_pop_statuses |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
flap_count | number | Number of flap since last UP (wire: flapCount) |
last_change | string (date-time) | Last time the interface changed status (wire: lastChange) |
last_down | string (date-time) | Last time the interface status went from up to down (wire: lastDown) |
last_flap | string (date-time) | Last time the session flapped (wire: lastFlap) |
last_up | string (date-time) | Last time the interface status went from down to up (wire: lastUp) |
last_update | string (date-time) | Last time the status was updated (wire: lastUpdate) |
status | string | Status of the peering (down, up) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | pop_id, service_name | Returns 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.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The 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_id | integer | Pop ID (wire: popId) |
service_name | string (uuid) | Service name (wire: serviceName) |
SELECT examples​
- get
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
;