Dela via


SqlResourcesOperationsExtensions.CreateUpdateSqlRoleDefinitionAsync Method

Definition

Creates or updates an Azure Cosmos DB SQL Role Definition.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.CosmosDB.Models.SqlRoleDefinitionGetResults> CreateUpdateSqlRoleDefinitionAsync (this Microsoft.Azure.Management.CosmosDB.ISqlResourcesOperations operations, string roleDefinitionId, string resourceGroupName, string accountName, Microsoft.Azure.Management.CosmosDB.Models.SqlRoleDefinitionCreateUpdateParameters createUpdateSqlRoleDefinitionParameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateUpdateSqlRoleDefinitionAsync : Microsoft.Azure.Management.CosmosDB.ISqlResourcesOperations * string * string * string * Microsoft.Azure.Management.CosmosDB.Models.SqlRoleDefinitionCreateUpdateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.CosmosDB.Models.SqlRoleDefinitionGetResults>
<Extension()>
Public Function CreateUpdateSqlRoleDefinitionAsync (operations As ISqlResourcesOperations, roleDefinitionId As String, resourceGroupName As String, accountName As String, createUpdateSqlRoleDefinitionParameters As SqlRoleDefinitionCreateUpdateParameters, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SqlRoleDefinitionGetResults)

Parameters

operations
ISqlResourcesOperations

The operations group for this extension method.

roleDefinitionId
String

The GUID for the Role Definition.

resourceGroupName
String

The name of the resource group. The name is case insensitive.

accountName
String

Cosmos DB database account name.

createUpdateSqlRoleDefinitionParameters
SqlRoleDefinitionCreateUpdateParameters

The properties required to create or update a Role Definition.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to