Share via


CosmosDBTableRoleAssignmentCollection.CreateOrUpdateAsync Method

Definition

Creates or updates an Azure Cosmos DB Table Role Assignment.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tableRoleAssignments/{roleAssignmentId}
  • Operation Id: TableResources_CreateUpdateTableRoleAssignment
  • Default Api Version: 2024-12-01-preview
  • Resource: CosmosDBTableRoleAssignmentResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CosmosDB.CosmosDBTableRoleAssignmentResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string roleAssignmentId, Azure.ResourceManager.CosmosDB.CosmosDBTableRoleAssignmentData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.CosmosDB.CosmosDBTableRoleAssignmentData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CosmosDB.CosmosDBTableRoleAssignmentResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.CosmosDB.CosmosDBTableRoleAssignmentData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CosmosDB.CosmosDBTableRoleAssignmentResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, roleAssignmentId As String, data As CosmosDBTableRoleAssignmentData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of CosmosDBTableRoleAssignmentResource))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

roleAssignmentId
String

The GUID for the Role Assignment.

data
CosmosDBTableRoleAssignmentData

The properties required to create or update a Role Assignment.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

roleAssignmentId is an empty string, and was expected to be non-empty.

roleAssignmentId or data is null.

Applies to