ActionGroupCollection.CreateOrUpdateAsync Method

Definition

Create a new action group or update an existing one.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}
  • Operation Id: ActionGroups_CreateOrUpdate
  • Default Api Version: 2023-01-01
  • Resource: ActionGroupResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.ActionGroupResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string actionGroupName, Azure.ResourceManager.Monitor.ActionGroupData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Monitor.ActionGroupData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.ActionGroupResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Monitor.ActionGroupData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.ActionGroupResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, actionGroupName As String, data As ActionGroupData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ActionGroupResource))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

actionGroupName
String

The name of the action group.

data
ActionGroupData

The action group to create or use for the update.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

actionGroupName is an empty string, and was expected to be non-empty.

actionGroupName or data is null.

Applies to