Compartir a través de


IServerAdministratorsOperations.CreateOrUpdateWithHttpMessagesAsync Método

Definición

Crea o actualiza el administrador de Active Directory en un servidor existente. La acción de actualización sobrescribirá al administrador existente.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.PostgreSQL.Models.ServerAdministratorResource>> CreateOrUpdateWithHttpMessagesAsync (string resourceGroupName, string serverName, Microsoft.Azure.Management.PostgreSQL.Models.ServerAdministratorResource properties, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateWithHttpMessagesAsync : string * string * Microsoft.Azure.Management.PostgreSQL.Models.ServerAdministratorResource * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.PostgreSQL.Models.ServerAdministratorResource>>
Public Function CreateOrUpdateWithHttpMessagesAsync (resourceGroupName As String, serverName As String, properties As ServerAdministratorResource, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of ServerAdministratorResource))

Parámetros

resourceGroupName
String

Nombre del grupo de recursos. El nombre distingue mayúsculas de minúsculas.

serverName
String

El nombre del servidor.

properties
ServerAdministratorResource

Parámetros necesarios para crear o actualizar un administrador del servidor de AAD.

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