Apache CloudStack 4.21.0.0 Root Admin API Reference

listConsoleSessions

Lists console sessions.

Request parameters

Parameter NameDescriptionRequired
accountidThe ID of the account that created the console endpoint.false
acquiredLists acquired console sessions, defaults to false. Acquired console sessions are the ones that have been accessed. The 'activeonly' parameter has precedence over the 'acquired' parameter, i.e., when the 'activeonly' parameter is 'true', the 'acquired' parameter value will be ignored.false
activeonlyLists only active console sessions, defaults to true. Active sessions are the ones that have been acquired and have not been removed.false
clientaddressIP address of the client that accessed the console session.false
consoleendpointcreatoraddressIP address of the creator of the console endpoint.false
domainidThe domain ID of the account that created the console endpoint.false
enddateLists console sessions generated up until this date. The recommended format is "yyyy-MM-dd'T'HH:mm:ssZ" (e.g.: "2023-01-01T12:00:00+0100"); however, the following formats are also accepted: "yyyy-MM-dd HH:mm:ss" (e.g.: "2023-01-01 12:00:00") and "yyyy-MM-dd" (e.g.: "2023-01-01" - if the time is not added, it will be interpreted as "23:59:59"). If the recommended format is not used, the date will be considered in the server timezone.false
hostidLists console sessions from the specified host.false
idThe ID of the console session.false
isrecursiveLists console sessions recursively per domain. If an account ID is informed, only the account's console sessions will be listed. Defaults to false.false
keywordList by keywordfalse
pagefalse
pagesizefalse
startdateLists console sessions generated from this date onwards. The recommended format is "yyyy-MM-dd'T'HH:mm:ssZ" (e.g.: "2023-01-01T12:00:00+0100"); however, the following formats are also accepted: "yyyy-MM-dd HH:mm:ss" (e.g.: "2023-01-01 12:00:00") and "yyyy-MM-dd" (e.g.: "2023-01-01" - if the time is not added, it will be interpreted as "00:00:00"). If the recommended format is not used, the date will be considered in the server timezone.false
useridThe ID of the user that created the console endpoint.false
virtualmachineidThe ID of the virtual machine.false

Response Tags

Response NameDescription
idID of the console session.
accountAccount that created the console endpoint.
accountidID of the account that created the console endpoint.
acquiredDate when the console session was acquired.
clientaddressIP address of the client that created the console session.
consoleendpointcreatoraddressIP address of the creator of the console endpoint.
createdDate when the console session's endpoint was created.
domainDomain of the account that created the console endpoint.
domainidDomain ID of the account that created the console endpoint.
domainpathDomain path of the account that created the console endpoint.
hostidID of the host.
hostnameName of the host.
removedDate when the console session was removed.
userUser that created the console endpoint.
useridID of the user that created the console endpoint.
virtualmachineidID of the virtual machine.
virtualmachinenameName of the virtual machine.