Compartir a través de


IRoutingIntentOperations.BeginCreateOrUpdateWithHttpMessagesAsync Método

Definición

Crea un recurso RoutingIntent si no existe, actualiza el routingIntent existente.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Network.Models.RoutingIntent>> BeginCreateOrUpdateWithHttpMessagesAsync (string resourceGroupName, string virtualHubName, string routingIntentName, Microsoft.Azure.Management.Network.Models.RoutingIntent routingIntentParameters, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member BeginCreateOrUpdateWithHttpMessagesAsync : string * string * string * Microsoft.Azure.Management.Network.Models.RoutingIntent * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Network.Models.RoutingIntent>>
Public Function BeginCreateOrUpdateWithHttpMessagesAsync (resourceGroupName As String, virtualHubName As String, routingIntentName As String, routingIntentParameters As RoutingIntent, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of RoutingIntent))

Parámetros

resourceGroupName
String

Nombre del grupo de recursos de RoutingIntent.

virtualHubName
String

Nombre de VirtualHub.

routingIntentName
String

El nombre del recurso singleton Routing Intent de Cada instancia de VirtualHub.

routingIntentParameters
RoutingIntent

Parámetros proporcionados para crear o actualizar RoutingIntent.

customHeaders
Dictionary<String,List<String>>

Encabezados que se agregarán a la solicitud.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Excepciones

Se produce cuando la operación devolvió un código de estado no válido

Se produce cuando no se puede deserializar la respuesta

Se produce cuando un parámetro obligatorio es NULL

Se aplica a