Share via


BastionHostsOperationsExtensions.ListAsync Method

Definition

Lists all Bastion Hosts in a subscription.

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Network.Fluent.Models.BastionHostInner>> ListAsync (this Microsoft.Azure.Management.Network.Fluent.IBastionHostsOperations operations, System.Threading.CancellationToken cancellationToken = default);
static member ListAsync : Microsoft.Azure.Management.Network.Fluent.IBastionHostsOperations * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Network.Fluent.Models.BastionHostInner>>
<Extension()>
Public Function ListAsync (operations As IBastionHostsOperations, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of BastionHostInner))

Parameters

operations
IBastionHostsOperations

The operations group for this extension method.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to