active_sessions
Creates, updates, deletes, gets or lists a active_sessions
resource.
Overview
Name | active_sessions |
Type | Resource |
Id | azure.network.active_sessions |
Fields
Name | Datatype | Description |
---|---|---|
protocol | string | The protocol used to connect to the target. |
resourceType | string | The type of the resource. |
sessionDurationInMins | number | Duration in mins the session has been active. |
sessionId | string | A unique id for the session. |
startTime | object | The time when the session started. |
targetHostName | string | The host name of the target. |
targetIpAddress | string | The IP Address of the target. |
targetResourceGroup | string | The resource group of the target. |
targetResourceId | string | The resource id of the target. |
targetSubscriptionId | string | The subscription id for the target virtual machine. |
userName | string | The user name who is active on this session. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | bastionHostName, resourceGroupName, subscriptionId | Returns the list of currently active sessions on the Bastion. |
SELECT
examples
Returns the list of currently active sessions on the Bastion.
SELECT
protocol,
resourceType,
sessionDurationInMins,
sessionId,
startTime,
targetHostName,
targetIpAddress,
targetResourceGroup,
targetResourceId,
targetSubscriptionId,
userName
FROM azure.network.active_sessions
WHERE bastionHostName = '{{ bastionHostName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';