共用方式為


MockableElasticSubscriptionResource.GetElasticMonitorsAsync Method

Definition

List all monitors under the specified subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Elastic/monitors
  • Operation Id: Monitors_List
  • Default Api Version: 2024-03-01
  • Resource: ElasticMonitorResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.Elastic.ElasticMonitorResource> GetElasticMonitorsAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member GetElasticMonitorsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Elastic.ElasticMonitorResource>
override this.GetElasticMonitorsAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Elastic.ElasticMonitorResource>
Public Overridable Function GetElasticMonitorsAsync (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