Dela via


AgFoodPlatformExtensions.GetFarmBeatsAsync Method

Definition

Lists the FarmBeats instances for a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.AgFoodPlatform/farmBeats
  • Operation Id: FarmBeatsModels_ListBySubscription
public static Azure.AsyncPageable<Azure.ResourceManager.AgFoodPlatform.FarmBeatResource> GetFarmBeatsAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, int? maxPageSize = default, string skipToken = default, System.Threading.CancellationToken cancellationToken = default);
static member GetFarmBeatsAsync : Azure.ResourceManager.Resources.SubscriptionResource * Nullable<int> * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.AgFoodPlatform.FarmBeatResource>
<Extension()>
Public Function GetFarmBeatsAsync (subscriptionResource As SubscriptionResource, Optional maxPageSize As Nullable(Of Integer) = Nothing, Optional skipToken As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of FarmBeatResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

maxPageSize
Nullable<Int32>

Maximum number of items needed (inclusive). Minimum = 10, Maximum = 1000, Default value = 50.

skipToken
String

Skip token for getting next set of results.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of FarmBeatResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to