Get Session Info

Get Session Info

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 should have permission to this privilege, on the associated federated access group of session's global desktop entitlement or global application entitlement.
Request
URI
GET
https://{api_host}/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.
Supported Filters : 'Equals'.

string
agent_version
Optional

Version of agent This property need not be set.
Supported Filters : 'Equals'. This property can be used for sorting.

array of string
application_names
Optional

Names of the applications launched in the session. It will be only set when session_type is APPLICATION.
Supported Filters : 'Contains'.

string
broker_user_id
Optional

User SID for the broker user associated with the session. It will be unset for non-broker sessions.
Supported Filters : 'Equals'.

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.
Supported Filters : 'Equals'. This property can be used for sorting.

object
client_data
Optional

Client data associated with the session.

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.
Supported Filters : 'Equals'.

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.
Supported Filters : 'Equals'. This property can be used for sorting.

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.
Supported Filters : 'Equals'.

string
id
Optional

Unique id representing a session.
Supported Filters : 'Equals'.

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.
Supported Filters : 'Equals'. This property can be used for sorting.

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.
Supported Filters : 'Equals'. This property can be used for sorting.

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.
Supported Filters : 'Equals'.

string
rds_server_id
Optional

Unique RDS server id for the RDS desktop or application session. This property need not be set.
Supported Filters : 'Equals'.

boolean
resourced_remotely
Optional

Indicates whether the session is running on remote pod resource.
Supported Filters : 'Equals'. This property can be used for sorting.

object
security_gateway_data
Optional

Security gateway data associated with the session.

string
session_protocol
Optional

Protocol for the session. It will be unset for disconnected sessions.
Supported Filters : 'Equals'. This property can be used for sorting.

  • 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.
Supported Filters : 'Equals', 'NotEquals'. This property can be used for sorting.

  • 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.
Supported Filters : 'Equals'. This property can be used for sorting.

  • 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.
Supported Filters : 'Equals'. This property can be used for sorting.

boolean
unauthenticated
Optional

Indicates whether the session is of unauthenticated access user. This property need not be set.
Supported Filters : 'Equals'. This property can be used for sorting.

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.
Supported Filters : 'Equals'.


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

Code Samples
COPY
                    curl -H 'Authorization: <value>' https://{api_host}/rest/inventory/v1/sessions/{id}
                
Inventory Operations
GET
List Agent Installer Packages
POST
Register Agent Installer Package
GET
Get Agent Installer Package
POST
Unregister Agent Installer Package
GET
List Application Icons
POST
Create Application Icon
GET
List Custom Application Icons
DELETE
Delete Application Icon
GET
Get Application Icon
GET
List Application Pools
POST
Create Application Pool
POST
Application Icon Bulk Associate
POST
Check Application Pool Name Availability
POST
Disable Application Pools
POST
Enable Application Pools
POST
Application Icon Bulk Remove Association
DELETE
Delete Application Pool
GET
Get Application Pool
PUT
Update Application Pool
POST
Add Custom Icon
POST
Remove Custom Icon
GET
List Category Folders
GET
List Desktop Pools
POST
Create Desktop Pool
POST
Check Desktop Pool Name Availability
POST
Disable Desktop Pools
POST
Disable Provisioning For Desktop Pools
POST
Enable Desktop Pools
POST
Enable Provisioning For Desktop Pools
POST
Validate Specified Names
GET
List User Policies Overrides
DELETE
Delete Desktop Pool
GET
Get Desktop Pool
PUT
Update Desktop Pool
POST
Add Machines
POST
Add Machines By Name
POST
Desktop Pool Apply Image
POST
Cancel Scheduled Push Image
POST
Desktop Pool Promote Pending Image
POST
Remove Machines
POST
Schedule Push Image
POST
Validate Installed Applications On Desktop Pool
GET
List Installed Applications On Desktop Pool
GET
List Policies On Desktop Pool
PUT
Updates Policies On Desktop Pool
DELETE
Delete Policy Overrides For Users
POST
Create Policy Overrides For Users
PUT
Update Policy Overrides For Users
GET
List Desktop Pool Tasks
GET
Get Desktop Pool Task
POST
Cancel Desktop Pool Task
POST
Pause Desktop Pool Task
POST
Resume Desktop Pool Task
GET
List Farms
POST
Create Farm
POST
Check Farm Name Availability
DELETE
Delete Farm
GET
Get Farm
PUT
Update Farm
POST
Add Rds Servers
POST
Farm Apply Image
POST
Cancel Scheduled Maintenance
POST
Farm Promote Pending Image
POST
Remove Rds Servers
POST
Schedule Maintenance
POST
Validate Installed Applications On Farm
GET
List App Volumes Applications On Farm
GET
List Installed Applications On Farm
GET
List Global Application Entitlements
POST
Create Global Application Entitlement
DELETE
Delete Global Application Entitlement
GET
Get Global Application Entitlement
PUT
Update Global Application Entitlement
GET
List Compatible Backup GA Es
GET
List Compatible Local Application Pools
DELETE
Remove Local Application Pools From GAE
GET
List Local Application Pools
POST
Add Local Application Pools To GAE
GET
List Global Desktop Entitlements
POST
Create Global Desktop Entitlement
DELETE
Delete Global Desktop Entitlement
GET
Get Global Desktop Entitlement
PUT
Update Global Desktop Entitlement
GET
List Compatible Backup GD Es
GET
List Compatible Local Desktop Pools
DELETE
Remove Local Desktop Pools From GDE
GET
List Local Desktop Pools
POST
Add Local Desktop Pools To GDE
GET
Query Global Sessions
POST
Disconnect Global Sessions
POST
Log Off Global Sessions
POST
Reset Global Sessions
POST
Restart Global Sessions
POST
Send Message To Global Sessions
DELETE
Delete Machines
GET
List Machines
POST
Archive Machines
POST
Cancel Agent Upgrades
POST
Check Machine Prefix Availability
POST
Enter Maintenance
POST
Exit Maintenance
POST
Rebuild Machines
POST
Recover Machines
POST
Recreate From Persistent Disk
POST
Reset Machines
POST
Restart Machines
POST
Schedule Agent For Upgrade
GET
List Agent Upgrade Tasks
GET
Get Agent Upgrade Task
GET
List Unentitled Machines
DELETE
Delete Machine
GET
Get Machine
POST
Assign Machine Aliases
POST
Assign Users
POST
Attach Persistent Disk
POST
Detach Persistent Disk
POST
Unassign Machine Aliases
POST
Unassign Users
GET
List Persistent Disks
POST
Create Persistent Disk
DELETE
Delete Persistent Disk
GET
Get Persistent Disk
PUT
Update Persistent Disk
GET
List Attachable Machines
GET
List Physical Machines
POST
Register Physical Machine
DELETE
Delete Physical Machine
GET
Get Physical Machine
GET
List RDS Servers
POST
Cancel Rds Server Agent Upgrades
POST
Check RDS Server Prefix Availability
POST
Recover RDS Servers
POST
Register RDS Server
POST
Schedule Agent For Upgrade Rds Server
GET
List Rds Server Agent Upgrade Tasks
GET
Get Rds Server Agent Upgrade Task
DELETE
Delete RDS Server
GET
Get RDS Server
PUT
Update RDS Server
GET
List Session Info
POST
Disconnect Sessions
POST
Log Off Sessions
POST
Reset Sessions
POST
Restart Sessions
POST
Send Message To Sessions
GET
Get Session Info
GET
List Application Pools V2
POST
Create Application Pool V2
GET
Get Application Pool V2
PUT
Update Application Pool V2
GET
List Desktop Pools V2
POST
Create Desktop Pool V2
GET
Get Desktop Pool V2
POST
Schedule Push Image V2
GET
List Farms V2
POST
Create Farm V2
GET
Get Farm V2
PUT
Update Farm V2
POST
Schedule Maintenance V2
GET
List Global Application Entitlements V2
GET
Get Global Application Entitlement V2
GET
List Global Desktop Entitlements V2
POST
Create Global Desktop Entitlement V2
GET
Get Global Desktop Entitlement V2
GET
List Machines V2
POST
Schedule Agent For Upgrade V2
GET
List Agent Upgrade Tasks V2
GET
Get Agent Upgrade Task V2
GET
Get Machine V2
GET
List Physical Machines V2
GET
Get Physical Machine V2
GET
List RDS Servers V2
DELETE
Delete RDS Server V2
GET
Get RDS Server V2
PUT
Update RDS Server V2
GET
List Session Info V2
GET
List Application Pools V3
POST
Create Application Pool V3
GET
Get Application Pool V3
PUT
Update Application Pool V3
GET
List Desktop Pools V3
GET
Get Desktop Pool V3
GET
List Farms V3
POST
Create Farm V3
GET
Get Farm V3
PUT
Update Farm V3
GET
List Global Application Entitlements V3
POST
Create Global Application Entitlement V3
DELETE
Delete Global Application Entitlement V3
GET
Get Global Application Entitlement V3
PUT
Update Global Application Entitlement V3
GET
List Global Desktop Entitlements V3
POST
Create Global Desktop Entitlement V3
DELETE
Delete Global Desktop Entitlement V3
GET
Get Global Desktop Entitlement V3
PUT
Update Global Desktop Entitlement V3
GET
List Machines V3
GET
Get Machine V3
DELETE
Delete Application Pools
GET
List Application Pools V4
GET
Get Application Pool V4
GET
List Desktop Pools V4
GET
Get Desktop Pool V4
GET
List Farms V4
GET
Get Farm V4
GET
List Global Application Entitlements V4
POST
Create Global Application Entitlement V4
DELETE
Delete Global Application Entitlement V4
GET
Get Global Application Entitlement V4
PUT
Update Global Application Entitlement V4
GET
List Global Desktop Entitlements V4
POST
Create Global Desktop Entitlement V4
DELETE
Delete Global Desktop Entitlement V4
GET
Get Global Desktop Entitlement V4
PUT
Update Global Desktop Entitlement V4
GET
List Machines V4
GET
Get Machine V4
DELETE
Delete Application Pools V5
GET
List Application Pools V5
POST
Create Application Pool V5
GET
Get Application Pool V5
PUT
Update Application Pool V5
GET
List Desktop Pools V5
GET
Get Desktop Pool V5
GET
List Farms V5
GET
Get Farm V5
GET
List Machines V5
GET
Get Machine V5
DELETE
Delete Application Pools V6
GET
List Application Pools V6
POST
Create Application Pool V6
GET
Get Application Pool V6
PUT
Update Application Pool V6
GET
List Desktop Pools V6
GET
Get Desktop Pool V6
GET
List Farms V6
POST
Create Farm V6
DELETE
Delete Farm V6
GET
Get Farm V6
PUT
Update Farm V6
GET
List Desktop Pools V7
POST
Create Desktop Pool V7
DELETE
Delete Desktop Pool V7
GET
Get Desktop Pool V7
PUT
Update Desktop Poolv7
GET
List Farms V7
POST
Create Farm V7
DELETE
Delete Farm V7
GET
Get Farm V7
PUT
Update Farm V7
GET
List Desktop Pools V8
POST
Create Desktop Pool V8
DELETE
Delete Desktop Pool V8
GET
Get Desktop Pool V8
PUT
Update Desktop Poolv8