Share via


ActionGroupCollection.CreateOrUpdate 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.ActionGroupResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string actionGroupName, Azure.ResourceManager.Monitor.ActionGroupData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Monitor.ActionGroupData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.ActionGroupResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Monitor.ActionGroupData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.ActionGroupResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, actionGroupName As String, data As ActionGroupData, Optional cancellationToken As CancellationToken = Nothing) As 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