Get list of recent events
get
/api/v2/events/
Retrieves a list of all recent events in the system. This is not retained indefinitely and will only contain the last 250 events.
Request
There are no request parameters for this operation.
Security
-
Authorization: apiKey
Type:
apiKey
Response
Supported Media Types
- text/plain; charset=utf-8
200 Response
200 Response
Default Response
Error Payload
Examples
The following example shows how to retrieve a list of the Oracle Container Cloud Service events. You perform this task by submitting a GET request to the REST resource using cURL. For more information about cURL, see Use cURL.
Note: The command in this example uses the URL structure https://rest_server_url/resource-path
, where rest_server_url
is the manager node for the Oracle Cloud Container instance. See Send Requests for the appropriate URL structure to use for Oracle Public Cloud.
cURL Command
curl -sk
-X "GET"
-H "Authorization: Bearer 34660008cea7eeda"
"https://rest_server_url/api/v2/events/"
Example of Response Body
{
"events": [
{
"actor_id": "host_id",
"actor_type": "host",
"actor_label": "dual",
"sub_actor_id": "",
"sub_actor_type": "",
"sub_actor_label": "",
"event_key": "plugin_system_health_check",
"summary": "successfully retrieving system info on host dual",
"message": "successfully retrieving system info on host dual",
"severity": 1,
"severity_description": "Debug",
"first_seen": "2016-10-26T06:12:17.93489892-04:00",
"details": {
"caller": "getCurrentHostInfo from abcdefghijklmnopqrstuvwzyx012345/occs/cluster-agent/hostinforeporter.(*hostInfoReporter)/hostinforeporter.go:158",
"host_id": "host_id",
"hostname": "dual",
"ttl": "60",
"ttl_enabled": "true",
"ttl_summary": "controller timeout error in retrieving system info on host dual"
},
"host_id": "",
"username": "",
"stateless": false,
"event_id": 117101
}
]
}