Compartir a través de


IBackendOperations.CreateOrUpdateWithHttpMessagesAsync Método

Definición

Crea o actualiza un servidor back-end

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.ApiManagement.Models.BackendContract,Microsoft.Azure.Management.ApiManagement.Models.BackendCreateOrUpdateHeaders>> CreateOrUpdateWithHttpMessagesAsync (string resourceGroupName, string serviceName, string backendId, Microsoft.Azure.Management.ApiManagement.Models.BackendContract parameters, string ifMatch = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateWithHttpMessagesAsync : string * string * string * Microsoft.Azure.Management.ApiManagement.Models.BackendContract * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.ApiManagement.Models.BackendContract, Microsoft.Azure.Management.ApiManagement.Models.BackendCreateOrUpdateHeaders>>
Public Function CreateOrUpdateWithHttpMessagesAsync (resourceGroupName As String, serviceName As String, backendId As String, parameters As BackendContract, Optional ifMatch As String = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of BackendContract, BackendCreateOrUpdateHeaders))

Parámetros

resourceGroupName
String

Nombre del grupo de recursos.

serviceName
String

Nombre del servicio API Management.

backendId
String

Identificador de la entidad back-end. Debe ser único en la instancia de servicio API Management actual.

parameters
BackendContract

Crear parámetros.

ifMatch
String

ETag de la entidad. No es necesario al crear una entidad, pero es necesario al actualizar una entidad.

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