共用方式為


MonitorExtensions.GetActionGroups Method

Definition

Overloads

GetActionGroups(ResourceGroupResource)

Gets a collection of ActionGroupResources in the ResourceGroupResource. MockingTo mock this method, please mock GetActionGroups() instead.

GetActionGroups(SubscriptionResource, CancellationToken)

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

GetActionGroups(ResourceGroupResource)

Source:
MonitorExtensions.cs
Source:
MonitorExtensions.cs

Gets a collection of ActionGroupResources in the ResourceGroupResource. MockingTo mock this method, please mock GetActionGroups() instead.

public static Azure.ResourceManager.Monitor.ActionGroupCollection GetActionGroups (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetActionGroups : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Monitor.ActionGroupCollection
<Extension()>
Public Function GetActionGroups (resourceGroupResource As ResourceGroupResource) As ActionGroupCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of ActionGroupResources and their operations over a ActionGroupResource.

Exceptions

resourceGroupResource is null.

Applies to

GetActionGroups(SubscriptionResource, CancellationToken)

Source:
MonitorExtensions.cs
Source:
MonitorExtensions.cs

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.Pageable<Azure.ResourceManager.Monitor.ActionGroupResource> GetActionGroups (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetActionGroups : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Monitor.ActionGroupResource>
<Extension()>
Public Function GetActionGroups (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ActionGroupResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to