Share via


AuthorizationExtensions.GetAuthorizationRoleDefinition Method

Definition

Overloads

GetAuthorizationRoleDefinition(ArmResource, ResourceIdentifier, CancellationToken)

Get role definition by name (GUID).

  • Request Path: /{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}
  • Operation Id: RoleDefinitions_Get
  • Default Api Version: 2022-04-01
  • Resource: AuthorizationRoleDefinitionResource
GetAuthorizationRoleDefinition(ArmClient, ResourceIdentifier, ResourceIdentifier, CancellationToken)

Get role definition by name (GUID).

  • Request Path: /{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}
  • Operation Id: RoleDefinitions_Get
  • Default Api Version: 2022-04-01
  • Resource: AuthorizationRoleDefinitionResource

GetAuthorizationRoleDefinition(ArmResource, ResourceIdentifier, CancellationToken)

Source:
AuthorizationExtensions.cs
Source:
AuthorizationExtensions.cs

Get role definition by name (GUID).

  • Request Path: /{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}
  • Operation Id: RoleDefinitions_Get
  • Default Api Version: 2022-04-01
  • Resource: AuthorizationRoleDefinitionResource
public static Azure.Response<Azure.ResourceManager.Authorization.AuthorizationRoleDefinitionResource> GetAuthorizationRoleDefinition (this Azure.ResourceManager.ArmResource armResource, Azure.Core.ResourceIdentifier roleDefinitionId, System.Threading.CancellationToken cancellationToken = default);
static member GetAuthorizationRoleDefinition : Azure.ResourceManager.ArmResource * Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Authorization.AuthorizationRoleDefinitionResource>
<Extension()>
Public Function GetAuthorizationRoleDefinition (armResource As ArmResource, roleDefinitionId As ResourceIdentifier, Optional cancellationToken As CancellationToken = Nothing) As Response(Of AuthorizationRoleDefinitionResource)

Parameters

armResource
ArmResource

The ArmResource instance the method will execute against.

roleDefinitionId
ResourceIdentifier

The ID of the role definition.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

armResource or roleDefinitionId is null.

Applies to

GetAuthorizationRoleDefinition(ArmClient, ResourceIdentifier, ResourceIdentifier, CancellationToken)

Source:
AuthorizationExtensions.cs
Source:
AuthorizationExtensions.cs

Get role definition by name (GUID).

  • Request Path: /{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}
  • Operation Id: RoleDefinitions_Get
  • Default Api Version: 2022-04-01
  • Resource: AuthorizationRoleDefinitionResource
public static Azure.Response<Azure.ResourceManager.Authorization.AuthorizationRoleDefinitionResource> GetAuthorizationRoleDefinition (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, Azure.Core.ResourceIdentifier roleDefinitionId, System.Threading.CancellationToken cancellationToken = default);
static member GetAuthorizationRoleDefinition : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Authorization.AuthorizationRoleDefinitionResource>
<Extension()>
Public Function GetAuthorizationRoleDefinition (client As ArmClient, scope As ResourceIdentifier, roleDefinitionId As ResourceIdentifier, Optional cancellationToken As CancellationToken = Nothing) As Response(Of AuthorizationRoleDefinitionResource)

Parameters

client
ArmClient

The ArmClient instance the method will execute against.

scope
ResourceIdentifier

The scope that the resource will apply against.

roleDefinitionId
ResourceIdentifier

The ID of the role definition.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

client or roleDefinitionId is null.

Applies to