Users and Roles - UserSession List and Create Methods

URI

https://164.99.19.131:8443/SentinelRESTServices/objects/user-session

Supported Methods

GET
POST
GET

Authentication

Authentication Types
Sentinel Permissions Needed

Supported Formats

Response

URL Parameters

Required

None.

Optional

ParameterTypeDefault ValueDescription
query string [no filter] The TinyQ language filter that specifies a subset of all available records.
field string not present The name or names of fields whose values are to be returned. The field item may appear zero or more times in the URI query parameters. A single value of "[none]" indicates return only metadata. The absence of any field parameter indicates return all field values,
page integer 1 The 1-based offset into the total records based on page size. Actual offset is (page - 1) * pagesize.
pagesize integer [unlimited] The maximum number of object records to return as a result of the request.

Success Codes

Fault Codes

Response Data

Object type: page
A container for one or more objects in the result listing. There may be multiple pages in a listing if a page size is specified that is less than the total number of objects in the listing.
FieldDescription
nextA URL addressing the subsequent page of objects in the total set of available objects.
objectsThe list of objects returned in the page of results.
prevA URL addressing the previous page of objects in the total set of available objects.
Object type: user-session
A UserSession object contains information about a currently-authenticated user in the Sentinel system.
FieldDescription
addressThe IP address of the client system from which the user authenticated.
metaThe metadata for an object, including the object type name and the URL reference to the object. Definition
nameThe username of the account that is authenticated to the Sentinel system.
os-nameThe username of the associated account on the client operation system. May not be present.
session-typeThe type of session. May be one of "HTTP" or "LEGACY". "LEGACY" indicates a session with the older, SCC-style client connection.
startThe starting date and time of the user session.
userThe URL of the Sentinel User object associated with the session object.
Object type: meta
The metadata for an object, including the object type name and the URL reference to the object.
FieldDescription
@hrefThe URL reference to the object.
typeThe name of the object type

Sample Request

GET https://164.99.19.131:8443/SentinelRESTServices/objects/user-session?page=2&pagesize=1
Sample Response for application/json
Status: 200
{
   "objects":[
      {
         "meta":{
            "type":"user-session",
            "@href":"https://164.99.19.131:8443/SentinelRESTServices/objects/user-session/Wildebeest"
         },
         "session-type":"Wildebeest",
         "start":"2012-04-25T13:33:44.726Z",
         "address":"Wildebeest",
         "name":"Wildebeest",
         "os-name":"Wildebeest"
      }
   ],
   "prev":{
      "@href":"https://164.99.19.131:8443/SentinelRESTServices/objects/user-session?pagesize=1&page=1"
   },
   "next":{
      "@href":"https://164.99.19.131:8443/SentinelRESTServices/objects/user-session?pagesize=1&page=3"
   }
}
POST

Authentication

Authentication Types
Sentinel Permissions Needed

Supported Formats

Request

Response

URL Parameters

None.

Success Codes

Fault Codes

Request Data

Object type: user-session
A UserSession object contains information about a currently-authenticated user in the Sentinel system.
FieldRequiredDescription
addressfalseThe IP address of the client system from which the user authenticated.
namefalseThe username of the account that is authenticated to the Sentinel system.
os-namefalseThe username of the associated account on the client operation system. May not be present.
session-typefalseThe type of session. May be one of "HTTP" or "LEGACY". "LEGACY" indicates a session with the older, SCC-style client connection.
startfalseThe starting date and time of the user session.
userfalseThe URL of the Sentinel User object associated with the session object.

Object type: meta
The metadata for an object, including the object type name and the URL reference to the object.
FieldRequiredDescription
@hreffalseThe URL reference to the object.
typefalseThe name of the object type

Response Data

Object type:
The metadata representation of the newly-created user-session object, including the URL reference to the new object.
FieldDescription
metaThe metadata for an object, including the object type name and the URL reference to the object. Definition
Object type: meta
The metadata for an object, including the object type name and the URL reference to the object.
FieldDescription
@hrefThe URL reference to the object.
typeThe name of the object type

Sample Request

POST https://164.99.19.131:8443/SentinelRESTServices/objects/user-session
{
   "session-type":"Wildebeest",
   "start":"2012-04-25T13:33:44.726Z",
   "address":"Wildebeest",
   "name":"Wildebeest",
   "os-name":"Wildebeest"
}
Sample Response for application/json
Status: 201
Location:https://164.99.19.131:8443/SentinelRESTServices/objects/user-session/Wildebeest
{
   "meta":{
      "type":"user-session",
      "@href":"https://164.99.19.131:8443/SentinelRESTServices/objects/user-session/Wildebeest"
   }
}