Get Session Info

Get Session Info

Required Privileges : (This server version allows only Administrators on Root access group to login. These privileges are NOT relevant currently but will be applicable in later server versions.)

At least one of the listed privileges is required -

Privileges Description
MACHINE_VIEW Caller should have permission to this privilege, on the associated access group of session's pool or farm.
FEDERATED_SESSIONS_VIEW Caller's permission of this privilege is sufficient to read sessions.
Request
URI
GET
https://{api_host}//localhost/rest/inventory/v1/sessions/{id}
COPY
Path Parameters
string
id
Required

id


Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns SessionInfo of type(s) */*
{
    "access_group_id": "6fd4638a-381f-4518-aed6-042aa3d9f14c",
    "agent_version": "7.12.0",
    "application_names": [
        "Calculator"
    ],
    "broker_user_id": "S-1-5-21-1111111111-2222222222-3333333333-500",
    "brokered_remotely": false,
    "client_data": {
        "address": "127.0.0.1",
        "location_id": "6bda20e66cda315084edc8b5c67f9cf1e3b0f4559ba990b1004a",
        "name": "EXAMPLE-CLIENT1",
        "type": "WINDOWS",
        "version": "5.4.0"
    },
    "desktop_pool_id": "0103796c-102b-4ed3-953f-3dfe3d23e0fe",
    "disconnected_time": 1582181947320,
    "farm_id": "0dbd14ba-5795-4141-9cec-128ff6d494b0",
    "id": "7cdd624f-37d1-46c1-ab96-695a5d13956f",
    "idle_duration": 60,
    "last_session_duration_ms": 116320,
    "machine_id": "a00eda55-708a-4f7d-8cbc-1d1b3a2b5f73",
    "rds_server_id": "6f85b3a5-e7d0-4ad6-a1e3-37168dd1ed50",
    "resourced_remotely": false,
    "security_gateway_data": {
        "address": "127.0.0.1",
        "domain_name": "SECURE-GW.example.com",
        "location": "EXTERNAL"
    },
    "session_protocol": "PCOIP",
    "session_state": "CONNECTED",
    "session_type": "APPLICATION",
    "start_time": 1582181831000,
    "unauthenticated": false,
    "user_id": "S-1-5-21-1111111111-2222222222-3333333333-500"
}
string
access_group_id
Optional

Access group id associated with the session. For a non-RDS desktop session, this is the desktop pool's access group id. For an RDS desktop session, this is the RDS desktop pool's farm's access group id. For an application session, this is the application's farm's access group id.

string
agent_version
Optional

Version of agent This property need not be set.

array of string
application_names
Optional

Names of the applications launched in the session. It will be only set when session_type is APPLICATION.

string
broker_user_id
Optional

User SID for the broker user associated with the session. It will be unset for non-broker sessions.

boolean
brokered_remotely
Optional

Indicates whether the session is brokered from a remote pod. It is set only if the Horizon View agent where the session resides is version 6.0 or later.

client_data
Optional

client_data

string
desktop_pool_id
Optional

Unique desktop pool id for the session. This is unset if the session is not brokered through a desktop, such as for direct console access.

integer As int64 As int64
disconnected_time
Optional

Epoch time in milli seconds, when the session was last disconnected. This will be unset if the session's machine has an error state, or if the session has never been disconnected.

string
farm_id
Optional

Unique farm id for this RDS desktop or application session. This is unset if the session is not brokered through a farm, such as for application sessions or direct console access.

string
id
Optional

Unique id representing a session.

integer As int64 As int64
idle_duration
Optional

Idle time duration in minutes, indicating how long the end user of the session has been idle for. This property need not be set.

integer As int64 As int64
last_session_duration_ms
Optional

Duration of the last connection period of the session in milli seconds. If the session is currently connected, this is the duration that the session has been in connected state. If the session is currently disconnected, this is the duration of its previous connection period. This will be unset on error.

string
machine_id
Optional

Unique machine id for the session. This is unset for RDS Desktop or application sessions. If desktop pool id is unset, it is the id of registered un-managed physical machine.

string
rds_server_id
Optional

Unique RDS server id for the RDS desktop or application session. This property need not be set.

boolean
resourced_remotely
Optional

Indicates whether the session is running on remote pod resource.

security_gateway_data
Optional

security_gateway_data

string
session_protocol
Optional

Protocol for the session. It will be unset for disconnected sessions.

  • PCOIP: Display protocol is PCoIP.
  • RDP: Display protocol is RDP.
  • BLAST: Display protocol is BLAST.
  • CONSOLE: Display protocol is console.
  • UNKNOWN: Display protocol is unknown.
Possible values are : PCOIP, RDP, BLAST, CONSOLE, UNKNOWN,
string
session_state
Optional

State of session.

  • CONNECTED: Session is connected
  • DISCONNECTED: Session is disconnected
  • PENDING: Session is pending
Possible values are : CONNECTED, DISCONNECTED, PENDING,
string
session_type
Optional

Type of session.

  • DESKTOP: Desktop or RDS desktop session.
  • APPLICATION: Application session.
Possible values are : DESKTOP, APPLICATION,
integer As int64 As int64
start_time
Optional

Epoch time in milli seconds, when the session was originally logged in. The lifecycle of a session begins at login and ends at logout, with any number of connect and disconnect occurrences in between. The first connection time will be shortly after this time. This property need not be set.

boolean
unauthenticated
Optional

Indicates whether the session is of unauthenticated access user. This property need not be set.

string
user_id
Optional

Unique SID of the user logged into the session. It may not match the broker user id for non-SSO scenarios.


401

User is not authenticated

Operation doesn't return any data structure

403

Access to the resource is forbidden

Operation doesn't return any data structure

404

Not Found

Operation doesn't return any data structure

Inventory Operations
POST
Add Local Application Pools To GAE
POST
Add Local Desktop Pools To GDE
POST
Add Machines
POST
Add Machines By Name
POST
Assign Machine Aliases
POST
Assign Users
POST
Cancel Desktop Pool Task
POST
Cancel Scheduled Push Image
POST
Create Application Pool
POST
Create Global Desktop Entitlement
DELETE
Delete Application Pool
DELETE
Delete Machine
DELETE
Delete Machines
DELETE
Delete Physical Machine
DELETE
Delete RDS Server
POST
Disconnect Sessions
POST
Enter Maintenance
POST
Exit Maintenance
GET
Get Application Icon
GET
Get Application Pool
GET
Get Application Pool V2
GET
Get Desktop Pool
GET
Get Desktop Pool Task
GET
Get Desktop Pool V2
GET
Get Desktop Pool V3
GET
Get Farm
GET
Get Global Application Entitlement
GET
Get Global Desktop Entitlement
GET
Get Machine
GET
Get Machine V2
GET
Get Physical Machine
GET
Get RDS Server
GET
Get Session Info
GET
List Application Icons
GET
List Application Pools
GET
List Application Pools V2
GET
List Compatible Local Application Pools
GET
List Compatible Local Desktop Pools
GET
List Desktop Pools
GET
List Desktop Pools V2
GET
List Desktop Pools V3
GET
List Desktop Pool Tasks
GET
List Farms
GET
List Global Application Entitlements
GET
List Global Desktop Entitlements
GET
List Installed Applications On Desktop Pool
GET
List Installed Applications On Farm
GET
List Local Application Pools
GET
List Local Desktop Pools
GET
List Machines
GET
List Machines V2
GET
List Physical Machines
GET
List RDS Servers
GET
List Session Info
POST
Log Off Sessions
POST
Rebuild Machines
POST
Recover Machines
POST
Recover RDS Servers
POST
Register Physical Machine
POST
Register RDS Server
DELETE
Remove Local Application Pools From GAE
DELETE
Remove Local Desktop Pools From GDE
POST
Remove Machines
POST
Reset Machines
POST
Reset Sessions
POST
Restart Machines
POST
Restart Sessions
POST
Schedule Push Image
POST
Send Message To Sessions
POST
Unassign Machine Aliases
POST
Unassign Users
PUT
Update Application Pool
PUT
Update RDS Server