Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Create and access a list of your products

Dell ObjectScale 1.3 Administration Guide

Get Management User audit entries using the KAHM API

You can get the details of an audit event after it is passed to KAHM using the KAHM API.

Prerequisites

You must be a Management User with Admin, Operations Admin, or ReadOnly role.

Steps

  1. Obtain KAHM IP and port number.
    # kubectl -n <OBJECTSCALE_NAMESPACE> get svc | grep kahm-restapi
    kahm-restapi ClusterIP 10.105.34.45 <none> 17999/TCP 7m59s
  2. Set a variable.
    KAHMIP=10.105.34.45
  3. Obtain KAHM REST API credentials.
    $ kubectl -n <OBJECTSCALE_NAMESPACE> get secrets kahm-restapi-secrets -o yaml
    apiVersion: v1
    data:
    credentials.conf: cmVhbG06IGthaG0tcmVzdGFwaQp1c2VybmFtZToga2FobQpwYXNzd29yZDogQ2hhbmdlTW
  4. Using base64, decode the value of credentials.conf to get credentials.
  5. Send the request.
    Use either Management Service or Federation Service in the filter parameter to identify relevant events.
    NOTE:This API does not support OR logic.
    curl -G --data-urlencode "filter=component eq Management Service"  -k -X GET -u kahm:ChangeMe http://$KAHMIP:17999/v1/api/events | python -m json.tool  | less    
    {
            "id": "objectscale-manager-default-fedsvc-98p22",
            "type": "Normal",
            "component": "Management Service",
            "message": "Management user root logged out of sessionId d3bf6ad3-ded1-4489-9996-e0333a9f9921",
            "reason": "LOGOUT",
            "appname": "objectscale-manager",
            "namespace": "default",
            "createdon": "2023-02-20T21:41:01Z",
            "updatedon": "2023-02-20T21:41:01Z",
            "resourceID": "d3bf6ad3-ded1-4489-9996-e0333a9f9921",
            "count": 1
    },

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\