Get system events

Content Platform for Cloud Scale Management API Reference

Version
2.6.x
Audience
anonymous
Part Number
MK-HCPCS007-09

The method system/info retrieves the 100 most recent system events.

HTTP request syntax (URI)

POST https://host_ip:9099/mapi/v1/system/info

Request structure

Not applicable.

Response structure

The response body is:

{
  "events": [
    {
      "severity": "INFO|WARNING|SEVERE",
      "subject": "event_subject",
      "message": "event_message",
      "subsystem": "event_subsystem",
      "timestamp": date_time
    },
    .
    .
    .
  ]
}

Parameter

Type

Description

severity String The severity of the event:
  • INFO
  • WARNING
  • SEVERE
subject String Summary of the event.
message String Details about the event.
subsystem String The event category (for example, User, Bucket, or S3 settings).
timestamp 64-bit integer The date and time, in milliseconds since 00:00:00 on 1 January 1970 GMT, when the event was generated.

Return codes

Status code

HTTP name

Description

200 OK The request was executed successfully.
401 Unauthorized Access was denied because credentials are not valid.
405 Method Not Allowed The specified HTTP method is not allowed for administrative data. Resend using POST.

Example

Request example:

POST https://10.10.24.195:9099/mapi/v1/system/info

JSON response:

{
  "events": [
    {
      "severity": "INFO",
      "subject": "User admin@company.com authenticated",
      "message": "User admin@company.com with Id d3c01db4-ac18-4d90-a321-899bb210baf7 authenticated successfully to the Administration App.",
      "subsystem": "User",
      "timestamp": 1559547959735
    },
    {
      "severity": "INFO",
      "subject": "Unexpectedly failed authentication request by user admin@company.com",
      "message": "An authentication request unexpectedly failed for username admin@company.com.",
      "subsystem": "User",
      "timestamp": 1559547646844
    }
  ]
}