Partager via


IServiceUnitsOperations.BeginCreateOrUpdateWithHttpMessagesAsync Méthode

Définition

Crée ou met à jour une unité de service sous le service dans la topologie du service.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.DeploymentManager.Models.ServiceUnitResource,Microsoft.Azure.Management.DeploymentManager.Models.ServiceUnitsCreateOrUpdateHeaders>> BeginCreateOrUpdateWithHttpMessagesAsync (string resourceGroupName, string serviceTopologyName, string serviceName, string serviceUnitName, Microsoft.Azure.Management.DeploymentManager.Models.ServiceUnitResource serviceUnitInfo, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member BeginCreateOrUpdateWithHttpMessagesAsync : string * string * string * string * Microsoft.Azure.Management.DeploymentManager.Models.ServiceUnitResource * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.DeploymentManager.Models.ServiceUnitResource, Microsoft.Azure.Management.DeploymentManager.Models.ServiceUnitsCreateOrUpdateHeaders>>
Public Function BeginCreateOrUpdateWithHttpMessagesAsync (resourceGroupName As String, serviceTopologyName As String, serviceName As String, serviceUnitName As String, serviceUnitInfo As ServiceUnitResource, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of ServiceUnitResource, ServiceUnitsCreateOrUpdateHeaders))

Paramètres

resourceGroupName
String

Nom du groupe de ressources. Le nom ne respecte pas la casse.

serviceTopologyName
String

Nom de la topologie de service .

serviceName
String

Nom de la ressource de service.

serviceUnitName
String

Nom de la ressource d’unité de service.

serviceUnitInfo
ServiceUnitResource

Objet de ressource d’unité de service.

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 de status non valide

Levée en cas d’impossibilité de désérialiser la réponse

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

Remarques

Il s’agit d’une opération asynchrone qui peut être interrogée jusqu’à la fin à l’aide de la ressource d’opération retournée par cette opération.

S’applique à