> ## Documentation Index > Fetch the complete documentation index at: https://support.appgate.com/llms.txt > Use this file to discover all available pages before exploring further. # Get Active Client Sessions grouped by Distinguished Names > Get session data from currently Active Client Sessions grouped by distinguished name. This API makes the Controller to query every Gateway in the system to collect the session data. The operation may take long if one or more Gateways take long to respond. ## OpenAPI ````json GET /stats/active-sessions/dn { "openapi": "3.0.0", "info": { "title": "AppGate SDP Controller REST API", "version": "API version 24.0", "license": { "name": "Proprietary", "url": "https://www.appgate.com" }, "description": "# About\n This specification documents the REST API calls for the AppGate SDP Controller.\n\n Please refer to the REST API chapter in the manual or contact AppGate support with any questions about\n this functionality.\n# Getting Started\n Requirements for API scripting:\n - Access to the Admin/API TLS Connection (default port 8443) of a Controller appliance.\n (https://support.appgate.com/docs/adminapi-tls-connection-v6-6)\n - An API user with relevant permissions.\n (https://support.appgate.com/docs/configure-admin-roles-v6-6)\n - In order to use the simple login API, Admin MFA must be disabled or the API user must be excluded.\n (https://support.appgate.com/docs/mfa-for-admins-v6-6)\n# Base path\n HTTPS requests must be sent to the Admin Interface hostname and port, with **/admin** path.\n\n For example: **https://appgate.company.com:8443/admin**\n\n All requests must have the **Accept** header as:\n\n **application/vnd.appgate.peer-v24+json**\n\n An exception is made for the **/admin/version** endpoint which instead expects an **application/json** Accept header.\n# API Conventions\n API conventions are important to understand and follow strictly.\n\n - While updating objects (via PUT), entire object must be sent with all fields.\n - For example, in order to add a remedy method to the condition below:\n ```\n {\n \"id\": \"12699e27-b584-464a-81ee-5b4784b6d425\",\n \"name\": \"Test\",\n \"notes\": \"Making a point\",\n \"tags\": [\"test\", \"tag\"],\n \"expression\": \"return true;\",\n \"remedyMethods\": []\n }\n ```\n - send the entire object with updated and non-updated fields:\n ```\n {\n \"id\": \"12699e27-b584-464a-81ee-5b4784b6d425\",\n \"name\": \"Test\",\n \"notes\": \"Making a point\",\n \"tags\": [\"test\", \"tag\"],\n \"expression\": \"return true;\",\n \"remedyMethods\": [{\"type\": \"DisplayMessage\", \"message\": \"test message\"}]\n }\n ```\n\n - In case Controller returns an error (non-2xx HTTP status code), response body is JSON.\n The \"message\" field contains information about the error.\n HTTP 422 \"Unprocessable Entity\" has extra `errors` field to list all the issues with specific fields.\n\n - Empty string (\"\") is considered a different value than \"null\" or field being omitted from JSON.\n Omitting the field is recommended if no value is intended.\n Empty string (\"\") will be almost always rejected as invalid value.\n\n - There are common pattern between many objects:\n - **Configuration Objects**: There are many objects with common fields, namely \"id\", \"name\", \"notes\", \"created\"\n and \"updated\". These entities are listed, queried, created, updated and deleted in a similar fashion.\n - **Distinguished Name**: Users and Devices are identified with what is called Distinguished Names, as used in\n LDAP. The distinguished format that identifies a device and a user combination is\n \"CN=\\,CN=\\,OU=\\\". Some objects have the\n \"userDistinguishedName\" field, which does not include the CN for Device ID.\n This identifies a user on every device.", "x-logo": { "url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdcAAADMCAYAAAAh4uktAAAa1UlEQVR4nO3debgkVXmA8fcOAzOAwOAgIpHFQQbcARGXCEhEE0MkGkAF0RDF3UQTjRuKC0lcYtRozKIIAaNRk6CgUYkbAY0LsqmDIMKAuAEDjMAA4yydP75pvNPTt+ur6lPdfe+8v+ep55Gx69RXfavrVJ3lOyBJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJkiRJUrumxh3AHHQ8cGTFZ94BXDyCWLR52wp4ILAvsDewI7AI2BZYs2FbAfwMWA58b8P/1vCOAJ4KvB24bsyxSLPeFHAV0KnYPjKuADXnHQi8EfgqcBfV12LvdgPwSeBEYOcRxz6XPJ34PlcDHwL2HGs00ix3KLkb2O3AvcYUo+aeXYDXA5dTvzIdtK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VORK5CYII=", "href": "#" }, "contact": { "name": "AppGate SDP Support", "url": "https://support.appgate.com/docs", "email": "appgatesdp.support@appgate.com" } }, "servers": [ { "url": "https://appgate.company.com:8443/admin" } ], "security": [ { "BearerAuth": [] } ], "x-tagGroups": [ { "name": "Authentication & Authorization", "tags": [ "Version", "Login" ] }, { "name": "Dashboard", "tags": [ "Top Entitlements", "User Logins Per Hour", "Devices On-Boarded Per Hour" ] }, { "name": "Admin Messages", "tags": [ "Admin Messages" ] }, { "name": "Access", "tags": [ "Policies", "Conditions", "Entitlements", "Risk Model", "Ringfence Rules", "Admin Roles", "Criteria Scripts", "Entitlement Scripts" ] }, { "name": "Identity", "tags": [ "Client Profiles", "Identity Providers", "IP Pools", "MFA Providers", "Device Claim Scripts", "User Claim Scripts", "Local Users", "Service Users" ] }, { "name": "System", "tags": [ "Appliances", "Replication Targets", "Sites", "Tags", "Appliance Customizations", "Trusted Certificates", "Secrets Manager", "Client Auto-Update", "Certificate Authority", "Appliance Change", "Appliance Upgrade", "Appliance Backup", "Appliance Metrics" ] }, { "name": "Usage", "tags": [ "Active Sessions", "Client Logs", "Discovered Apps", "Health", "Registered Devices", "Blacklisted Users", "Licensed Users", "Default Time-Based OTP Provider Seeds", "FIDO2 Devices", "Issued Certificates" ] }, { "name": "Settings", "tags": [ "Global Settings", "MFA for Admins", "License", "ZTP", "Replication Source" ] }, { "name": "Other", "tags": [ "Admin Preferences" ] } ], "paths": { "/stats/active-sessions/dn": { "get": { "summary": "Get Active Client Sessions grouped by Distinguished Names.", "description": "Get session data from currently Active Client Sessions grouped by distinguished name. This API makes the Controller to query every Gateway in the system to collect the session data. The operation may take long if one or more Gateways take long to respond.", "tags": [ "Active Sessions" ], "parameters": [ { "$ref": "#/components/parameters/query" }, { "$ref": "#/components/parameters/range" }, { "$ref": "#/components/parameters/orderBy" }, { "$ref": "#/components/parameters/descending" }, { "$ref": "#/components/parameters/geolocationQuery" }, { "$ref": "#/components/parameters/filterBy" } ], "responses": { "200": { "description": "Active Client Sessions per user. Disconnected Clients disappear after 5 minutes. When a Client fails over to another Gateway, the API may return the Client on multiple Gateways until during this period.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ActiveSessionsDn" } } } }, "401": { "$ref": "#/components/responses/TokenError" }, "403": { "$ref": "#/components/responses/PermissionError" }, "406": { "$ref": "#/components/responses/responses-NotAcceptableError" }, "500": { "$ref": "#/components/responses/UnexpectedError" } } } } }, "components": { "parameters": { "query": { "name": "query", "in": "query", "description": "Query string to filter the result list. It's used for various fields depending on the object type. Send multiple query parameters to make the queries more specific.", "schema": { "type": "string" } }, "range": { "name": "range", "in": "query", "description": "'Range string to limit the result list. Format: -. 3-10 means the items between the (including) 3rd and the 10th\n will be returned. Defaults to all objects.'", "schema": { "type": "string", "example": "0-10" } }, "orderBy": { "name": "orderBy", "in": "query", "description": "The field name to sort the result list. Supported fields vary from object to object. Defaults to certain field depending on the object type.", "schema": { "type": "string", "example": "name" } }, "descending": { "name": "descending", "in": "query", "description": "Whether the sorting is applied descending or ascending. Defaults to certain field depending on the object type.", "schema": { "type": "string" } }, "geolocationQuery": { "name": "geolocationQuery", "description": "Query parameters for finding active sessions in a given radius in the world.", "in": "query", "schema": { "$ref": "#/components/schemas/GeolocationQuery" }, "style": "form", "explode": true, "allowEmptyValue": true, "example": { "latitude": 59.408, "longitude": 17.8678, "radiusKilometers": 200 } }, "filterBy": { "name": "filterBy", "in": "query", "description": "Filters the result list by the given field and value. Supported fields vary from API to API. The filters can be combined with each other as well as the generic query parameter. The given value is checked for inclusion.", "schema": { "type": "object", "additionalProperties": { "type": "string" } }, "style": "form", "explode": true, "allowEmptyValue": true, "example": { "name": "us-east", "tags": "aws" } } }, "schemas": { "ActiveSessionsDn": { "allOf": [ { "$ref": "#/components/schemas/ResultList" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "allOf": [ { "$ref": "#/components/schemas/BaseActiveSession" }, { "type": "object", "description": "A client and its active sessions.", "properties": { "gateways": { "type": "array", "deprecated": true, "description": "The names of gateways reporting active client sessions of the user. Deprecated as of 6.6. Use Session Details API instead.", "items": { "type": "string", "example": "aws-gateway-1" } } } } ] } }, "geolocationQuery": { "$ref": "#/components/schemas/GeolocationQuery" } } } ] }, "GeolocationQuery": { "type": "object", "description": "Query parameters for finding active sessions in a given radius in the world.", "properties": { "latitude": { "type": "number", "format": "double", "description": "Latitude of the central point of the query.", "example": 59.408 }, "longitude": { "type": "number", "format": "double", "description": "Longitude of the central point of the query.", "example": 17.8678 }, "radiusKilometers": { "type": "number", "format": "double", "description": "Radius of the query in kilometers.", "example": 200 } } }, "ResultList": { "allOf": [ { "$ref": "#/components/schemas/ResultListBase" }, { "type": "object", "properties": { "queries": { "type": "array", "description": "The queries applied to the list.", "items": { "type": "string" } }, "totalCount": { "type": "integer", "description": "The total readable count of entities. Not influenced by the query.", "example": 328 }, "filterBy": { "type": "array", "description": "The filters applied to the list.", "items": { "$ref": "#/components/schemas/FilterBy" } } } } ] }, "BaseActiveSession": { "allOf": [ { "$ref": "#/components/schemas/DeviceAndUser" }, { "type": "object", "properties": { "geoIpLatitude": { "type": "number", "format": "double", "description": "GeoIP Latitude of the client.", "example": 59.408 }, "geoIpLongitude": { "type": "number", "format": "double", "description": "GeoIP Latitude of the client.", "example": 17.8678 }, "hostname": { "type": "string", "description": "Hostname or Device name reported by the Client as Device Claim.", "example": "cmp325" }, "osFamily": { "type": "string", "description": "Family of the operating system of the Client.", "example": "windows" }, "osName": { "type": "string", "description": "Name of the operating system of the Client.", "example": "Microsoft Windows 10 Enterprise N" }, "osParent": { "type": "string", "description": "Parent of the operating system of the Client. Typically available for Linux.", "example": "fedora" }, "clientVersion": { "type": "string", "description": "Client version.", "example": "6.1.2-32120-release" }, "clientType": { "type": "string", "description": "Client type.", "example": "headless" }, "clientSupport": { "type": "string", "description": "The support status of the client.", "enum": [ "full", "partial", "none" ] } } } ] }, "Error": { "type": "object", "description": "Generic HTTP error.", "properties": { "id": { "type": "string", "description": "Machine readable error code." }, "message": { "type": "string", "description": "Human readable error details." } } }, "ResultListBase": { "type": "object", "properties": { "range": { "type": "string", "description": "The range applied to the list. Format: -/. 3-5/8 means, out of 8 count (query affects the total), the items between (including) the 3rd and the 5th are returned.", "example": "0-30/54" }, "orderBy": { "type": "string", "description": "The field name used to sort the list.", "example": "name" }, "descending": { "type": "boolean", "description": "Whether the sorting is applied descending or ascending." } } }, "FilterBy": { "type": "object", "properties": { "name": { "type": "string", "description": "The field name the filter is applied to.", "example": "name" }, "value": { "type": "string", "description": "The value used for comparison.", "example": "AWS" } } }, "DeviceAndUser": { "type": "object", "properties": { "distinguishedName": { "type": "string", "description": "Distinguished name of a user&device combination. Format: \"CN=,CN=,OU=\"", "example": "CN=4c07bc6757ea42ddb702c2d6c45419fc,CN=user,OU=ldap" }, "deviceId": { "type": "string", "format": "uuid", "description": "The device ID, same as the one in the Distinguished Name.", "example": "4c07bc67-57ea-42dd-b702-c2d6c45419fc" }, "username": { "type": "string", "description": "The username, same as the one in the Distinguished Name.", "example": "user" }, "providerName": { "type": "string", "description": "The provider name of the user, same as the one in the Distinguished Name.", "example": "ldap" } } } }, "responses": { "TokenError": { "description": "Token error. Login again.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }, "PermissionError": { "description": "Insufficient permissions to access this resource.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }, "responses-NotAcceptableError": { "description": "Invalid 'Accept' header.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } }, "UnexpectedError": { "description": "Unexpected server side error.", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Error" } } } } }, "securitySchemes": { "BearerAuth": { "type": "http", "scheme": "bearer" } } } } ````