REST Get Events
Returns a list of events in the cluster, and information on each event.
To retrieve events reported in the cluster (Node Inactive, DiskFailed, Volumed Degraded), use the following command:
curl -s -X GET --insecure -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer [JWT]" https://[LightOS Node]:443/api/v2/events
[JWT] would be the Lightbits cluster JWT. The easiest option is to add the JWT to a variable, as shown in the example below. [LightOS Node] would be the name or IP of one of the Lightbits cluster's nodes.
Sample Command
curl -s -X GET --insecure -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer $LIGHTOS_JWT" https://localhost:443/api/v2/events | jq
Sample Output
x
{ [1/526] "events": [
{ },
{ },
{ }
],
"nextToken": ""
}
Was this page helpful?