Partager via


IJobTargetGroupsOperations.CreateOrUpdateWithHttpMessagesAsync Méthode

Définition

Crée ou met à jour un groupe cible.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Sql.Fluent.Models.JobTargetGroupInner>> CreateOrUpdateWithHttpMessagesAsync (string resourceGroupName, string serverName, string jobAgentName, string targetGroupName, System.Collections.Generic.IList<Microsoft.Azure.Management.Sql.Fluent.Models.JobTarget> members, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateWithHttpMessagesAsync : string * string * string * string * System.Collections.Generic.IList<Microsoft.Azure.Management.Sql.Fluent.Models.JobTarget> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Sql.Fluent.Models.JobTargetGroupInner>>
Public Function CreateOrUpdateWithHttpMessagesAsync (resourceGroupName As String, serverName As String, jobAgentName As String, targetGroupName As String, members As IList(Of JobTarget), Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of JobTargetGroupInner))

Paramètres

resourceGroupName
String

Nom du groupe de ressources qui contient la ressource. Vous pouvez obtenir cette valeur à partir de l’API Azure Resource Manager ou du portail.

serverName
String

Le nom du serveur

jobAgentName
String

Nom de l’agent de travail.

targetGroupName
String

Nom du groupe cible.

members
IList<JobTarget>

Membres du groupe cible.

customHeaders
Dictionary<String,List<String>>

En-têtes qui seront ajoutés à la demande.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

Exceptions

Levée lorsque l’opération a retourné un code status non valide

Levée lorsque la réponse ne peut pas être désérialisée

Levée lorsqu’un paramètre requis a la valeur Null

S’applique à