Compartir a través de


RoleAssignmentsClient.CreateRoleAssignmentAsync Método

Definición

Crear asignación de roles.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Analytics.Synapse.AccessControl.Models.RoleAssignmentDetails>> CreateRoleAssignmentAsync (string roleAssignmentId, Guid roleId, Guid principalId, string scope, string principalType = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateRoleAssignmentAsync : string * Guid * Guid * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Analytics.Synapse.AccessControl.Models.RoleAssignmentDetails>>
override this.CreateRoleAssignmentAsync : string * Guid * Guid * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Analytics.Synapse.AccessControl.Models.RoleAssignmentDetails>>
Public Overridable Function CreateRoleAssignmentAsync (roleAssignmentId As String, roleId As Guid, principalId As Guid, scope As String, Optional principalType As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RoleAssignmentDetails))

Parámetros

roleAssignmentId
String

Identificador de la asignación de roles.

roleId
Guid

Id. de rol del rol de Built-In synapse.

principalId
Guid

Id. de objeto de la entidad de seguridad o grupo de seguridad de AAD.

scope
String

Ámbito en el que se crea la asignación de roles.

principalType
String

Tipo del identificador de entidad de seguridad: Usuario, Grupo o ServicePrincipal.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Se aplica a