CosmosDBAccountResource.GetMongoMIRoleDefinition Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the properties of an existing Azure Cosmos DB MongoMI Role Definition with the given Id.
public virtual Azure.Response<Azure.ResourceManager.CosmosDB.MongoMIRoleDefinitionResource> GetMongoMIRoleDefinition(string roleDefinitionId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetMongoMIRoleDefinition : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.CosmosDB.MongoMIRoleDefinitionResource>
override this.GetMongoMIRoleDefinition : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.CosmosDB.MongoMIRoleDefinitionResource>
Public Overridable Function GetMongoMIRoleDefinition (roleDefinitionId As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of MongoMIRoleDefinitionResource)
Parameters
- roleDefinitionId
- String
The GUID for the Role Definition.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
roleDefinitionId is null.
roleDefinitionId is an empty string, and was expected to be non-empty.