Freigeben über


AuthorizationExtensions.GetAuthorizationRoleDefinition Methode

Definition

Überlädt

GetAuthorizationRoleDefinition(ArmResource, ResourceIdentifier, CancellationToken)

Abrufen der Rollendefinition nach Name (GUID).

  • Anforderungspfad/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}
  • Vorgangs-IdRoleDefinitions_Get
GetAuthorizationRoleDefinition(ArmClient, ResourceIdentifier, ResourceIdentifier, CancellationToken)

Abrufen der Rollendefinition nach Name (GUID).

  • Anforderungspfad/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}
  • Vorgangs-IdRoleDefinitions_Get

GetAuthorizationRoleDefinition(ArmResource, ResourceIdentifier, CancellationToken)

Abrufen der Rollendefinition nach Name (GUID).

  • Anforderungspfad/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}
  • Vorgangs-IdRoleDefinitions_Get
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)

Parameter

armResource
ArmResource

Der ArmResource instance die -Methode ausgeführt wird.

roleDefinitionId
ResourceIdentifier

Die ID der Rollendefinition.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

roleDefinitionId ist NULL.

Gilt für:

GetAuthorizationRoleDefinition(ArmClient, ResourceIdentifier, ResourceIdentifier, CancellationToken)

Abrufen der Rollendefinition nach Name (GUID).

  • Anforderungspfad/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}
  • Vorgangs-IdRoleDefinitions_Get
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)

Parameter

client
ArmClient

Der ArmClient instance die -Methode ausgeführt wird.

scope
ResourceIdentifier

Der Bereich, für den die Ressource gilt.

roleDefinitionId
ResourceIdentifier

Die ID der Rollendefinition.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

roleDefinitionId ist NULL.

Gilt für: