共用方式為


WorkloadsExtensions.GetSapMonitorsAsync Method

Definition

Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each SAP monitor.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Workloads/monitors
  • Operation Id: monitors_List
  • Default Api Version: 2023-04-01
  • Resource: SapMonitorResource
public static Azure.AsyncPageable<Azure.ResourceManager.Workloads.SapMonitorResource> GetSapMonitorsAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetSapMonitorsAsync : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Workloads.SapMonitorResource>
<Extension()>
Public Function GetSapMonitorsAsync (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of SapMonitorResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to