Condividi tramite


ContainerGroupsOperationsExtensions.ListByResourceGroupAsync Method

Definition

Get a list of container groups in the specified subscription and resource group.

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

Parameters

operations
IContainerGroupsOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

Get a list of container groups in a specified subscription and resource group. 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