Share via


IPoolOperations.ListByBatchAccountWithHttpMessagesAsync Method

Definition

Lists all of the pools in the specified account.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Batch.Models.Pool>>> ListByBatchAccountWithHttpMessagesAsync (string resourceGroupName, string accountName, int? maxresults = default, string select = default, string filter = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ListByBatchAccountWithHttpMessagesAsync : string * string * Nullable<int> * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Management.Batch.Models.Pool>>>
Public Function ListByBatchAccountWithHttpMessagesAsync (resourceGroupName As String, accountName As String, Optional maxresults As Nullable(Of Integer) = Nothing, Optional select As String = Nothing, Optional filter As String = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of IPage(Of Pool)))

Parameters

resourceGroupName
String

The name of the resource group that contains the Batch account.

accountName
String

The name of the Batch account.

maxresults
Nullable<Int32>

The maximum number of items to return in the response.

select
String

Comma separated list of properties that should be returned. e.g. "properties/provisioningState". Only top level properties under properties/ are valid for selection.

filter
String

OData filter expression. Valid properties for filtering are:

name properties/allocationState properties/allocationStateTransitionTime properties/creationTime properties/provisioningState properties/provisioningStateTransitionTime properties/lastModified properties/vmSize properties/interNodeCommunication properties/scaleSettings/autoScale properties/scaleSettings/fixedScale

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

Thrown when the operation returned an invalid status code

Thrown when unable to deserialize the response

Thrown when a required parameter is null

Applies to