다음을 통해 공유


RoleDefinitionsOperationsExtensions.GetByIdAsync Method

Definition

Gets a role definition by ID.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Graph.RBAC.Fluent.Models.RoleDefinitionInner> GetByIdAsync (this Microsoft.Azure.Management.Graph.RBAC.Fluent.IRoleDefinitionsOperations operations, string roleId, System.Threading.CancellationToken cancellationToken = default);
static member GetByIdAsync : Microsoft.Azure.Management.Graph.RBAC.Fluent.IRoleDefinitionsOperations * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Graph.RBAC.Fluent.Models.RoleDefinitionInner>
<Extension()>
Public Function GetByIdAsync (operations As IRoleDefinitionsOperations, roleId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RoleDefinitionInner)

Parameters

operations
IRoleDefinitionsOperations

The operations group for this extension method.

roleId
String

The fully qualified role definition ID. Use the format, /subscriptions/{guid}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for subscription level role definitions, or /providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId} for tenant level role definitions.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to