共用方式為


ContainerGroupsOperationsExtensions.ListAsync Method

Definition

Get a list of container groups in the specified subscription.

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

Parameters

operations
IContainerGroupsOperations

The operations group for this extension method.

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

Get a list of container groups in the specified subscription. This operation returns properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes.

Applies to