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 dictionary
The following arguments are supported:
- Bastion
Host Name This property is required. Changes to this property will trigger replacement.
- The name of the Bastion Host.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- Bastion
Host Name This property is required. Changes to this property will trigger replacement.
- The name of the Bastion Host.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- bastion
Host Name This property is required. Changes to this property will trigger replacement.
- The name of the Bastion Host.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- bastion
Host Name This property is required. Changes to this property will trigger replacement.
- The name of the Bastion Host.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- bastion_
host_ name This property is required. Changes to this property will trigger replacement.
- The name of the Bastion Host.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
- bastion
Host Name This property is required. Changes to this property will trigger replacement.
- The name of the Bastion Host.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group.
getActiveSessions Result
The following output properties are available:
- Next
Link 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.
- Next
Link string - The URL to get the next set of results.
- Value
[]Bastion
Active Session Response - List of active sessions on the bastion.
- next
Link String - The URL to get the next set of results.
- value
List<Bastion
Active Session Response> - List of active sessions on the bastion.
- next
Link string - The URL to get the next set of results.
- value
Bastion
Active Session Response[] - List of active sessions on the bastion.
- next_
link str - The URL to get the next set of results.
- value
Sequence[Bastion
Active Session Response] - List of active sessions on the bastion.
- next
Link 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
This property is required. string - The protocol used to connect to the target.
- Resource
Type This property is required. string - The type of the resource.
- Session
Duration In Mins This property is required. double - Duration in mins the session has been active.
- Session
Id This property is required. string - A unique id for the session.
- Start
Time This property is required. object - The time when the session started.
- Target
Host Name This property is required. string - The host name of the target.
- Target
Ip Address This property is required. string - The IP Address of the target.
- Target
Resource Group This property is required. string - The resource group of the target.
- Target
Resource Id This property is required. string - The resource id of the target.
- Target
Subscription Id This property is required. string - The subscription id for the target virtual machine.
- User
Name This property is required. string - The user name who is active on this session.
- Protocol
This property is required. string - The protocol used to connect to the target.
- Resource
Type This property is required. string - The type of the resource.
- Session
Duration In Mins This property is required. float64 - Duration in mins the session has been active.
- Session
Id This property is required. string - A unique id for the session.
- Start
Time This property is required. interface{} - The time when the session started.
- Target
Host Name This property is required. string - The host name of the target.
- Target
Ip Address This property is required. string - The IP Address of the target.
- Target
Resource Group This property is required. string - The resource group of the target.
- Target
Resource Id This property is required. string - The resource id of the target.
- Target
Subscription Id This property is required. string - The subscription id for the target virtual machine.
- User
Name This property is required. string - The user name who is active on this session.
- protocol
This property is required. String - The protocol used to connect to the target.
- resource
Type This property is required. String - The type of the resource.
- session
Duration In Mins This property is required. Double - Duration in mins the session has been active.
- session
Id This property is required. String - A unique id for the session.
- start
Time This property is required. Object - The time when the session started.
- target
Host Name This property is required. String - The host name of the target.
- target
Ip Address This property is required. String - The IP Address of the target.
- target
Resource Group This property is required. String - The resource group of the target.
- target
Resource Id This property is required. String - The resource id of the target.
- target
Subscription Id This property is required. String - The subscription id for the target virtual machine.
- user
Name This property is required. String - The user name who is active on this session.
- protocol
This property is required. string - The protocol used to connect to the target.
- resource
Type This property is required. string - The type of the resource.
- session
Duration In Mins This property is required. number - Duration in mins the session has been active.
- session
Id This property is required. string - A unique id for the session.
- start
Time This property is required. any - The time when the session started.
- target
Host Name This property is required. string - The host name of the target.
- target
Ip Address This property is required. string - The IP Address of the target.
- target
Resource Group This property is required. string - The resource group of the target.
- target
Resource Id This property is required. string - The resource id of the target.
- target
Subscription Id This property is required. string - The subscription id for the target virtual machine.
- user
Name This property is required. string - The user name who is active on this session.
- protocol
This property is required. str - The protocol used to connect to the target.
- resource_
type This property is required. str - The type of the resource.
- session_
duration_ in_ mins This property is required. float - Duration in mins the session has been active.
- session_
id This property is required. str - A unique id for the session.
- start_
time This property is required. Any - The time when the session started.
- target_
host_ name This property is required. str - The host name of the target.
- target_
ip_ address This property is required. str - The IP Address of the target.
- target_
resource_ group This property is required. str - The resource group of the target.
- target_
resource_ id This property is required. str - The resource id of the target.
- target_
subscription_ id This property is required. str - The subscription id for the target virtual machine.
- user_
name This property is required. str - The user name who is active on this session.
- protocol
This property is required. String - The protocol used to connect to the target.
- resource
Type This property is required. String - The type of the resource.
- session
Duration In Mins This property is required. Number - Duration in mins the session has been active.
- session
Id This property is required. String - A unique id for the session.
- start
Time This property is required. Any - The time when the session started.
- target
Host Name This property is required. String - The host name of the target.
- target
Ip Address This property is required. String - The IP Address of the target.
- target
Resource Group This property is required. String - The resource group of the target.
- target
Resource Id This property is required. String - The resource id of the target.
- target
Subscription Id This property is required. String - The subscription id for the target virtual machine.
- user
Name This property is required. 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