共用方式為


MonitorExtensions.GetActionGroupsAsync Method

Definition

Get a list of all action groups in a subscription.

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to