Compartilhar via


UsersOperationsExtensions.BeginCreateOrUpdateAsync Método

Definição

Cria um novo usuário ou atualiza as informações de um usuário existente em um dispositivo de borda/gateway do data box.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.EdgeGateway.Models.User> BeginCreateOrUpdateAsync (this Microsoft.Azure.Management.EdgeGateway.IUsersOperations operations, string deviceName, string name, string resourceGroupName, Microsoft.Azure.Management.EdgeGateway.Models.AsymmetricEncryptedSecret encryptedPassword = default, System.Collections.Generic.IList<Microsoft.Azure.Management.EdgeGateway.Models.ShareAccessRight> shareAccessRights = default, System.Threading.CancellationToken cancellationToken = default);
static member BeginCreateOrUpdateAsync : Microsoft.Azure.Management.EdgeGateway.IUsersOperations * string * string * string * Microsoft.Azure.Management.EdgeGateway.Models.AsymmetricEncryptedSecret * System.Collections.Generic.IList<Microsoft.Azure.Management.EdgeGateway.Models.ShareAccessRight> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.EdgeGateway.Models.User>
<Extension()>
Public Function BeginCreateOrUpdateAsync (operations As IUsersOperations, deviceName As String, name As String, resourceGroupName As String, Optional encryptedPassword As AsymmetricEncryptedSecret = Nothing, Optional shareAccessRights As IList(Of ShareAccessRight) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of User)

Parâmetros

operations
IUsersOperations

O grupo de operações para esse método de extensão.

deviceName
String

O nome do dispositivo.

name
String

O nome do usuário.

resourceGroupName
String

O nome do grupo de recursos.

encryptedPassword
AsymmetricEncryptedSecret

Os detalhes da senha.

shareAccessRights
IList<ShareAccessRight>

Lista de compartilhamentos nos quais o usuário tem direitos. Esse campo não deve ser especificado durante a criação do usuário.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Aplica-se a