Query Global Sessions
Note: CPA must be initialized for the pod for invoking this API.
Exactly one of user_id, pod_id and brokering_pod_id must be set to non-null value.
This API supports Pagination.
At least one of the listed privileges is required -
Privileges | Description |
---|---|
MACHINE_VIEW | Returns results only for those sessions, for which the caller has permission to this privilege, on the associated access group of session's pool or farm. |
FEDERATED_SESSIONS_VIEW | Returns results only for those sessions, for which the caller has permission to this privilege, on the associated federated access group of session's global desktop entitlement or global application entitlement. |
SID of the user.
S-1-5-21-1111111111-2222222222-3333333333-500
ID of the pod that hosted the session.
96d708fe-badb-40f8-9b80-9029b0ab2ef2
ID of the pod that brokered the session.
806ca35f-bcab-4a42-9006-04ba27cad900
page, if passed should be > 0.
1
size, if passed should be > 0.
10
filter expression built using fields with 'supported filters' as described in output model schema of this API.
[object Object]
Field that would be used to sort the results.
<property-name>
Determines the ordering of results.
ASC
OK
[
{
"agent_version": "8.3.0",
"application_names": [
"Calculator",
"Paint"
],
"broker_user_id": "S-1-5-21-1111111111-2222222222-3333333333-500",
"brokered_remotely": true,
"brokering_pod_id": "399eecf2-66ab-4a8f-94d9-b290fda35e4f",
"client_data": {
"address": "127.0.0.1",
"location_id": "ac9be3c194f62043b274058102d3ce39048ec9c26d0e2c8b8ea475909d497f79",
"name": "Client1",
"type": "WINDOWS",
"version": "5.4.0"
},
"desktop_pool_id": "53c4de7c-ae7c-471d-a8d0-3489cb9741d7",
"desktop_pool_or_farm_name": "Farm-Name",
"desktop_pool_or_farm_source": "VIRTUAL_CENTER",
"desktop_pool_or_farm_type": "AUTOMATED",
"disconnected_time": 1621512686000,
"farm_id": "250f68e8-9e7e-4578-b8fa-25864c63f168",
"federated_access_group_ids": [
"310927ee-1195-44c3-b877-5b194b4b4ea8",
"78669598-45b6-44a3-aa0d-11b16d45ab73"
],
"forever_session": false,
"global_application_entitlement_ids": [
"0d23a254-b873-4534-ad9a-ce8d25c5b40e",
"89036a3a-5f6f-4dcd-bc78-e2febdc9dc8a"
],
"global_desktop_entitlement_id": "adcfdefc-c853-4413-8ac7-b299535a509d",
"id": "ac6fc134-d197-3bbc-a6bf-24dc63123ae6",
"idle_duration": 30,
"last_session_duration_ms": 120290,
"local_access_group_id": "95061b82-92fa-4285-b90d-a5e1d8e38c3d",
"machine_id": "3205f64e-1d3d-43c0-942b-0bb6707c481d",
"machine_or_rds_server_dns_name": "machine1.example.com",
"pod_id": "b7ade226-ca2a-4805-b7be-c4bc8cec5188",
"rds_server_id": "a6cddaeb-4477-468d-90ea-593c716790b8",
"resourced_remotely": false,
"security_gateway_data": {
"address": "127.0.0.1",
"domain_name": "SECURE-GW.example.com",
"location": "EXTERNAL"
},
"session_protocol": "BLAST",
"session_state": "CONNECTED",
"session_type": "DESKTOP",
"site_id": "037e6be2-9aa3-4676-93d3-25a519efedf4",
"start_time": 1621512606000,
"unauthenticated": false,
"user_id": "S-1-5-21-1111111111-2222222222-3333333333-500"
}
]
Bad Request
User is not authenticated
Access to the resource is forbidden
Not Found
Conflict | CPA not initialized for the pod