Share via


ElasticMonitorResourceCollection.GetAllAsync(CancellationToken) Method

Definition

List all monitors under the specified resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors
  • Operation Id: Monitors_ListByResourceGroup
  • Default Api Version: 2024-06-15-preview
  • Resource: ElasticMonitorResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.Elastic.ElasticMonitorResource> GetAllAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Elastic.ElasticMonitorResource>
override this.GetAllAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Elastic.ElasticMonitorResource>
Public Overridable Function GetAllAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ElasticMonitorResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to