Freigeben über


IActionGroupsOperations.CreateOrUpdateWithHttpMessagesAsync Methode

Definition

Erstellen Sie eine neue Aktionsgruppe, oder aktualisieren Sie eine vorhandene Aktionsgruppe.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Monitor.Models.ActionGroupResource>> CreateOrUpdateWithHttpMessagesAsync (string resourceGroupName, string actionGroupName, Microsoft.Azure.Management.Monitor.Models.ActionGroupResource actionGroup, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateWithHttpMessagesAsync : string * string * Microsoft.Azure.Management.Monitor.Models.ActionGroupResource * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Monitor.Models.ActionGroupResource>>
Public Function CreateOrUpdateWithHttpMessagesAsync (resourceGroupName As String, actionGroupName As String, actionGroup As ActionGroupResource, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of ActionGroupResource))

Parameter

resourceGroupName
String

Der Name der Ressourcengruppe. Für den Namen wird die Groß-/Kleinschreibung nicht beachtet.

actionGroupName
String

Der Name der Aktionsgruppe.

actionGroup
ActionGroupResource

Die Aktionsgruppe, die erstellt oder für das Update verwendet werden soll.

customHeaders
Dictionary<String,List<String>>

Die Header, die der Anforderung hinzugefügt werden.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Ausnahmen

Wird ausgelöst, wenn der Vorgang einen ungültigen status Code zurückgegeben hat.

Wird ausgelöst, wenn die Antwort nicht deserialisiert werden kann

Wird ausgelöst, wenn ein erforderlicher Parameter NULL ist

Gilt für: