Language

CassandraRoleAssignmentCollection.GetAsync(String, CancellationToken) Method

Definition

Retrieves the properties of an existing Azure Cosmos DB Cassandra Role Assignment with the given Id.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraRoleAssignments/{roleAssignmentId}.
  • Operation Id. : CassandraRoleAssignmentResources_GetCassandraRoleAssignment.
  • Default Api Version. : 2026-03-15.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.CassandraRoleAssignmentResource>> GetAsync(string roleAssignmentId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.CassandraRoleAssignmentResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CosmosDB.CassandraRoleAssignmentResource>>
Public Overridable Function GetAsync (roleAssignmentId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CassandraRoleAssignmentResource))

Parameters

roleAssignmentId
String

The GUID for the Role Assignment.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

roleAssignmentId is null.

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

Applies to