/api/space/user-management/active-user-sessions

The following operations are supported on this resource:

  • GET - Get all logged-in/active user sessions
  • POST - Get Active User Sessions By Names
GET /active-user-sessions Version 1

This API retrieves details about all logged in user sessions.

Sample Usage

GET /active-user-sessions


  • Sample Output XML:
    <activeusersessions total="1" size="1">
      <activeuser key="65859">
        <sessionId>553358674B3BED5F58A0CB10C6DE4711</ sessionId>
        <sessionStartTime>Oct 9, 2012 4:39:30 PM</sessionStartTime>
        <session-duration>15mins 14 Seconds</session-duration>
        <userIpAddr>192.168.27.10</userIpAddr>
        <username>ramesh</username>
        <fabric-node-name>Space</fabric-node-name>
        <domain-name>Global/test</domain-name>
      </activeuser>
    </activeusersessions>

  • Sample Output JSON:
    {
      "activeusersessions": {
            "@size":"1",
            "@total":"1"
            "activeuser": [
                {
                   ;"@key":"65859",
                   ;"sessionId":"553358674B3BED5F58A0CB10C6DE4711",
                   ;"sessionStartTime":"Oct 9, 2012 4:39:30 PM",
                   ;"session-duration":"15mins 14 Seconds",
                   ;"userIpAddr":"192.168.27.10",
                   ;"username":"ramesh"
                   ;"fabric-node-name":"Space"
                   ;"domain-name":"Global/test"
                }
            ]
      }
    }

  • Access Control

    The following capabilities are required to access this API: ViewUserSessions

    POST /active-user-sessions Version 3

    Get Active User Sessions By Names.

    Sample Usage

    POST /active-user-sessions


  • Sample Input XML:
    <active-user-sessions-by-names-request>
         <users-name-list>
               <users-name-list>String</users-name-list>
         </users-name-list>
    </active-user-sessions-by-names-request>

  • Sample Output XML:
    <active-users total="Integer" uri="/api/space/user-management/active-user-sessions">
         <active-user href="/api/space/user-management/active-users/{id}" uri="/api/space/user-management/active-user-sessions/{id}">
               <domain-name>String</domain-name>
               <job-status>String</job-status>
               <job-id>Integer</job-id>
               <session-start-time>java.sql.Date</session-start-time>
               <id>Integer</id>
               <ip-address>String</ip-address>
               <user-name>String</user-name>
               <fabric-node-name>String</fabric-node-name>
               <session-duration>String</session-duration>
         </active-user>
    </active-users>

  • Sample Input JSON:
    {
       "active-user-sessions-by-names-request" : {
         "users-name-list" : {
           "users-name-list" : "String"
         }
       }
    }

  • Sample Output JSON:
    {
       "active-users" : {
         "@total" : "Integer" ,
         "@uri" : "/api/space/user-management/active-user-sessions" ,
         "active-user" : {
           "@href" : "/api/space/user-management/active-users/{id}" ,
           "@uri" : "/api/space/user-management/active-user-sessions/{id}" ,
           "domain-name" : "String" ,
           "job-status" : "String" ,
           "job-id" : "Integer" ,
           "session-start-time" : "java.sql.Date" ,
           "id" : "Integer" ,
           "ip-address" : "String" ,
           "user-name" : "String" ,
           "fabric-node-name" : "String" ,
           "session-duration" : "String"
         }
       }
    }