This is an archive version of the document. To get the most up-to-date information, see the current version.

(GET) /logonSessions

In this article

    Returns a collection of currently existing login sessions for Veeam Backup Enterprise Manager RESTful API.

    Request

    To get a list of logon sessions, you need to send the GET HTTP request to the URL of the /logonSessions resource.

    HTTP Request

    GET http://<Enterprise-Manager>:9399/api/logonSessions

    Request Header

    The request contains the following headers:

    Header

    Required

    Description

    X-RestSvcSessionId

    True

    The request requires authorization. In the header, the client must send a session ID copied from the server reply to the request creating a new logon session. To learn more, see Authentication and Security.

    Request Body

    None.

    Query Parameters

    None.

    Response

    The server returns the following response to the client.

    Response Codes

    A successfully completed operation returns response code 200 Success.

    Response Headers

    The response to this request contains the following headers. The response may also include additional standard HTTP headers.

    Header

    Description

    Content-length

    The length of the response body.

    Content-type

    The media type and syntax of the request body message: application/xml.

    Response Body

    In the response body, Veeam Backup Enterprise Manager returns a representation of the /logonSessions resource.

    Example

    The example below returns a collection of logon sessions that currently exist.

    Request:

    GET http://localhost:9399/api/logonSessions

     

    Request Header:

    X-RestSvcSessionId   NDRjZmJkYmUtNWE5NS00MTU2LTg4NjctOTFmMDY5YjdjMmNj

     

    Response:

    200 Success

     

    Response Body:

    <LogonSessions xmlns="http://www.veeam.com/ent/v1.0">
     <LogonSession Type="LogonSession" Href="http://localhost:9399/api/logonSessions/372a8d3c-9b3b-479d-9027-ec814e19115e">
       <Links>
         <Link Rel="Up" Type="EnterpriseManager" Href="http://localhost:9399/api/" />
         <Link Rel="Down" Type="BackupServerReferenceList" Href="http://localhost:9399/api/backupServers" />
         <Link Rel="Down" Type="ManagedServerReferenceList" Href="http://localhost:9399/api/managedServers" />
         <Link Rel="Down" Type="JobReferenceList" Href="http://localhost:9399/api/jobs" />
         <Link Rel="Down" Type="FailoverPlanReferenceList" Href="http://localhost:9399/api/failoverPlans" />
         <Link Rel="Down" Type="HierarchyRootReferenceList" Href="http://localhost:9399/api/hierarchyRoots" />
         <Link Rel="Down" Type="RepositoryReferenceList" Href="http://localhost:9399/api/repositories" />
         <Link Rel="Down" Type="BackupReferenceList" Href="http://localhost:9399/api/backups" />
         <Link Rel="Down" Type="RestorePointReferenceList" Href="http://localhost:9399/api/restorePoints" />
         <Link Rel="Down" Type="VmRestorePointReferenceList" Href="http://localhost:9399/api/vmRestorePoints" />
         <Link Rel="Down" Type="VAppRestorePointReferenceList" Href="http://localhost:9399/api/vAppRestorePoints" />
         <Link Rel="Down" Type="ReplicaReferenceList" Href="http://localhost:9399/api/replicas" />
         <Link Rel="Down" Type="VmReplicaPointReferenceList" Href="http://localhost:9399/api/vmReplicaPoints" />
         <Link Rel="Down" Type="CatalogVmReferenceList" Href="http://localhost:9399/api/catalog/vms" />
         <Link Rel="Down" Type="BackupJobSessionReferenceList" Href="http://localhost:9399/api/backupSessions" />
         <Link Rel="Down" Type="RestoreSessionReferenceList" Href="http://localhost:9399/api/restoreSessions" />
         <Link Rel="Down" Type="ReplicaJobSessionReferenceList" Href="http://localhost:9399/api/replicaSessions" />
         <Link Rel="Down" Type="BackupTaskSessionReferenceList" Href="http://localhost:9399/api/backupTaskSessions" />
         <Link Rel="Down" Type="ReplicaTaskSessionReferenceList" Href="http://localhost:9399/api/replicaTaskSessions" />
         <Link Rel="Down" Type="EnterpriseSecuritySettings" Href="http://localhost:9399/api/security" />
         <Link Rel="Down" Type="WanAcceleratorReferenceList" Href="http://localhost:9399/api/wanAccelerators" />
         <Link Rel="Down" Type="TaskList" Href="http://localhost:9399/api/tasks" />
         <Link Rel="Down" Type="QueryService" Href="http://localhost:9399/api/querySvc" />
         <Link Rel="Down" Type="LookupService" Href="http://localhost:9399/api/lookupSvc" />
         <Link Rel="Down" Type="Report" Href="http://localhost:9399/api/reports/summary" Name="Summary" />
         <Link Rel="Down" Type="BackupServerList" Href="http://localhost:9399/api/backupServers?format=Entity" />
         <Link Rel="Down" Type="ManagedServerList" Href="http://localhost:9399/api/managedServers?format=Entity" />
         <Link Rel="Create" Href="http://localhost:9399/api/backupServers?action=create" />
         <Link Rel="Down" Type="JobList" Href="http://localhost:9399/api/jobs?format=Entity" />
         <Link Rel="Down" Type="FailoverPlanList" Href="http://localhost:9399/api/failoverPlans?format=Entity" />
         <Link Rel="Down" Type="HierarchyRootList" Href="http://localhost:9399/api/hierarchyRoots?format=Entity" />
         <Link Rel="Down" Type="RepositoryList" Href="http://localhost:9399/api/repositories?format=Entity" />
         <Link Rel="Down" Type="BackupList" Href="http://localhost:9399/api/backups?format=Entity" />
         <Link Rel="Down" Type="RestorePointList" Href="http://localhost:9399/api/restorePoints?format=Entity" />
         <Link Rel="Down" Type="VmRestorePointList" Href="http://localhost:9399/api/vmRestorePoints?format=Entity" />
         <Link Rel="Down" Type="VAppRestorePointList" Href="http://localhost:9399/api/vAppRestorePoints?format=Entity" />
         <Link Rel="Down" Type="ReplicaList" Href="http://localhost:9399/api/replicas?format=Entity" />
         <Link Rel="Down" Type="VmReplicaPointList" Href="http://localhost:9399/api/vmReplicaPoints?format=Entity" />
         <Link Rel="Down" Type="CatalogVmList" Href="http://localhost:9399/api/catalog/vms?format=Entity" />
         <Link Rel="Down" Type="BackupJobSessionList" Href="http://localhost:9399/api/backupSessions?format=Entity" />
         <Link Rel="Down" Type="RestoreSessionList" Href="http://localhost:9399/api/restoreSessions?format=Entity" />
         <Link Rel="Down" Type="ReplicaJobSessionList" Href="http://localhost:9399/api/replicaSessions?format=Entity" />
         <Link Rel="Down" Type="BackupTaskSessionList" Href="http://localhost:9399/api/backupTaskSessions?format=Entity" />
         <Link Rel="Down" Type="ReplicaTaskSessionList" Href="http://localhost:9399/api/replicaTaskSessions?format=Entity" />
         <Link Rel="Down" Type="WanAcceleratorList" Href="http://localhost:9399/api/wanAccelerators?format=Entity" />
         <Link Rel="Down" Type="CloudConnectService" Href="http://localhost:9399/api/cloud" />
         <Link Rel="Delete" Type="LogonSession" Href="http://localhost:9399/api/logonSessions/372a8d3c-9b3b-479d-9027-ec814e19115e" />
       </Links>
       <UserName>SRV36\Administrator</UserName>
       <SessionId>372a8d3c-9b3b-479d-9027-ec814e19115e</SessionId>
     </LogonSession>
    </LogonSessions>