Compartir a través de


ILoggerOperations.CreateOrUpdateWithHttpMessagesAsync Método

Definición

Crea o actualiza un registrador

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.ApiManagement.Models.LoggerContract,Microsoft.Azure.Management.ApiManagement.Models.LoggerCreateOrUpdateHeaders>> CreateOrUpdateWithHttpMessagesAsync (string resourceGroupName, string serviceName, string loggerId, Microsoft.Azure.Management.ApiManagement.Models.LoggerContract 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.LoggerContract * 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.LoggerContract, Microsoft.Azure.Management.ApiManagement.Models.LoggerCreateOrUpdateHeaders>>
Public Function CreateOrUpdateWithHttpMessagesAsync (resourceGroupName As String, serviceName As String, loggerId As String, parameters As LoggerContract, 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 LoggerContract, LoggerCreateOrUpdateHeaders))

Parámetros

resourceGroupName
String

Nombre del grupo de recursos.

serviceName
String

Nombre del servicio API Management.

loggerId
String

Identificador del registrador. Debe ser único en la instancia de servicio API Management.

parameters
LoggerContract

Cree 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