interface_statuses
Creates, updates, deletes, gets or lists an interface_statuses resource.
Overview​
| Name | interface_statuses |
| Type | Resource |
| Id | ovh.ovh_cloud_connect.interface_statuses |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
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_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 interface (down, up) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | id, service_name | Returns whether the port is up or down, with its last up, down and change times. (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"}}) |
id | integer | Id |
service_name | string (uuid) | Service name (wire: serviceName) |
SELECT examples​
- get
Returns whether the port is up or down, with its last up, down and change times. (Beta version)
SELECT
last_change,
last_down,
last_up,
last_update,
status
FROM ovh.ovh_cloud_connect.interface_statuses
WHERE id = '{{ id }}' -- required
AND service_name = '{{ service_name }}' -- required
;