This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v2.82.0 published on Friday, Jan 10, 2025 by Pulumi
azure-native.network.getActiveSessions
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v2.82.0 published on Friday, Jan 10, 2025 by Pulumi
Returns the list of currently active sessions on the Bastion. Azure REST API version: 2023-02-01.
Other available API versions: 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01, 2024-05-01.
Using getActiveSessions
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getActiveSessions(args: GetActiveSessionsArgs, opts?: InvokeOptions): Promise<GetActiveSessionsResult>
function getActiveSessionsOutput(args: GetActiveSessionsOutputArgs, opts?: InvokeOptions): Output<GetActiveSessionsResult>def get_active_sessions(bastion_host_name: Optional[str] = None,
                        resource_group_name: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetActiveSessionsResult
def get_active_sessions_output(bastion_host_name: Optional[pulumi.Input[str]] = None,
                        resource_group_name: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetActiveSessionsResult]func GetActiveSessions(ctx *Context, args *GetActiveSessionsArgs, opts ...InvokeOption) (*GetActiveSessionsResult, error)
func GetActiveSessionsOutput(ctx *Context, args *GetActiveSessionsOutputArgs, opts ...InvokeOption) GetActiveSessionsResultOutput> Note: This function is named GetActiveSessions in the Go SDK.
public static class GetActiveSessions 
{
    public static Task<GetActiveSessionsResult> InvokeAsync(GetActiveSessionsArgs args, InvokeOptions? opts = null)
    public static Output<GetActiveSessionsResult> Invoke(GetActiveSessionsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetActiveSessionsResult> getActiveSessions(GetActiveSessionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: azure-native:network:getActiveSessions
  arguments:
    # arguments dictionaryThe following arguments are supported:
- BastionHost stringName 
- The name of the Bastion Host.
- ResourceGroup stringName 
- The name of the resource group.
- BastionHost stringName 
- The name of the Bastion Host.
- ResourceGroup stringName 
- The name of the resource group.
- bastionHost StringName 
- The name of the Bastion Host.
- resourceGroup StringName 
- The name of the resource group.
- bastionHost stringName 
- The name of the Bastion Host.
- resourceGroup stringName 
- The name of the resource group.
- bastion_host_ strname 
- The name of the Bastion Host.
- resource_group_ strname 
- The name of the resource group.
- bastionHost StringName 
- The name of the Bastion Host.
- resourceGroup StringName 
- The name of the resource group.
getActiveSessions Result
The following output properties are available:
- NextLink string
- The URL to get the next set of results.
- Value
List<Pulumi.Azure Native. Network. Outputs. Bastion Active Session Response> 
- List of active sessions on the bastion.
- NextLink string
- The URL to get the next set of results.
- Value
[]BastionActive Session Response 
- List of active sessions on the bastion.
- nextLink String
- The URL to get the next set of results.
- value
List<BastionActive Session Response> 
- List of active sessions on the bastion.
- nextLink string
- The URL to get the next set of results.
- value
BastionActive Session Response[] 
- List of active sessions on the bastion.
- next_link str
- The URL to get the next set of results.
- value
Sequence[BastionActive Session Response] 
- List of active sessions on the bastion.
- nextLink String
- The URL to get the next set of results.
- value List<Property Map>
- List of active sessions on the bastion.
Supporting Types
BastionActiveSessionResponse   
- Protocol string
- The protocol used to connect to the target.
- ResourceType string
- The type of the resource.
- SessionDuration doubleIn Mins 
- Duration in mins the session has been active.
- SessionId string
- A unique id for the session.
- StartTime object
- The time when the session started.
- TargetHost stringName 
- The host name of the target.
- TargetIp stringAddress 
- The IP Address of the target.
- TargetResource stringGroup 
- The resource group of the target.
- TargetResource stringId 
- The resource id of the target.
- TargetSubscription stringId 
- The subscription id for the target virtual machine.
- UserName string
- The user name who is active on this session.
- Protocol string
- The protocol used to connect to the target.
- ResourceType string
- The type of the resource.
- SessionDuration float64In Mins 
- Duration in mins the session has been active.
- SessionId string
- A unique id for the session.
- StartTime interface{}
- The time when the session started.
- TargetHost stringName 
- The host name of the target.
- TargetIp stringAddress 
- The IP Address of the target.
- TargetResource stringGroup 
- The resource group of the target.
- TargetResource stringId 
- The resource id of the target.
- TargetSubscription stringId 
- The subscription id for the target virtual machine.
- UserName string
- The user name who is active on this session.
- protocol String
- The protocol used to connect to the target.
- resourceType String
- The type of the resource.
- sessionDuration DoubleIn Mins 
- Duration in mins the session has been active.
- sessionId String
- A unique id for the session.
- startTime Object
- The time when the session started.
- targetHost StringName 
- The host name of the target.
- targetIp StringAddress 
- The IP Address of the target.
- targetResource StringGroup 
- The resource group of the target.
- targetResource StringId 
- The resource id of the target.
- targetSubscription StringId 
- The subscription id for the target virtual machine.
- userName String
- The user name who is active on this session.
- protocol string
- The protocol used to connect to the target.
- resourceType string
- The type of the resource.
- sessionDuration numberIn Mins 
- Duration in mins the session has been active.
- sessionId string
- A unique id for the session.
- startTime any
- The time when the session started.
- targetHost stringName 
- The host name of the target.
- targetIp stringAddress 
- The IP Address of the target.
- targetResource stringGroup 
- The resource group of the target.
- targetResource stringId 
- The resource id of the target.
- targetSubscription stringId 
- The subscription id for the target virtual machine.
- userName string
- The user name who is active on this session.
- protocol str
- The protocol used to connect to the target.
- resource_type str
- The type of the resource.
- session_duration_ floatin_ mins 
- Duration in mins the session has been active.
- session_id str
- A unique id for the session.
- start_time Any
- The time when the session started.
- target_host_ strname 
- The host name of the target.
- target_ip_ straddress 
- The IP Address of the target.
- target_resource_ strgroup 
- The resource group of the target.
- target_resource_ strid 
- The resource id of the target.
- target_subscription_ strid 
- The subscription id for the target virtual machine.
- user_name str
- The user name who is active on this session.
- protocol String
- The protocol used to connect to the target.
- resourceType String
- The type of the resource.
- sessionDuration NumberIn Mins 
- Duration in mins the session has been active.
- sessionId String
- A unique id for the session.
- startTime Any
- The time when the session started.
- targetHost StringName 
- The host name of the target.
- targetIp StringAddress 
- The IP Address of the target.
- targetResource StringGroup 
- The resource group of the target.
- targetResource StringId 
- The resource id of the target.
- targetSubscription StringId 
- The subscription id for the target virtual machine.
- userName String
- The user name who is active on this session.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v2.82.0 published on Friday, Jan 10, 2025 by Pulumi