Share via


DatabasesOperationsExtensions.AddPrincipalsAsync Method

Definition

Add Database principals permissions.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Kusto.Models.DatabasePrincipalListResult> AddPrincipalsAsync (this Microsoft.Azure.Management.Kusto.IDatabasesOperations operations, string resourceGroupName, string clusterName, string databaseName, Microsoft.Azure.Management.Kusto.Models.DatabasePrincipalListRequest databasePrincipalsToAdd, System.Threading.CancellationToken cancellationToken = default);
static member AddPrincipalsAsync : Microsoft.Azure.Management.Kusto.IDatabasesOperations * string * string * string * Microsoft.Azure.Management.Kusto.Models.DatabasePrincipalListRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Kusto.Models.DatabasePrincipalListResult>
<Extension()>
Public Function AddPrincipalsAsync (operations As IDatabasesOperations, resourceGroupName As String, clusterName As String, databaseName As String, databasePrincipalsToAdd As DatabasePrincipalListRequest, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DatabasePrincipalListResult)

Parameters

operations
IDatabasesOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group containing the Kusto cluster.

clusterName
String

The name of the Kusto cluster.

databaseName
String

The name of the database in the Kusto cluster.

databasePrincipalsToAdd
DatabasePrincipalListRequest

List of database principals to add.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to