次の方法で共有


AuthorizationRoleDefinitionCollection.Get メソッド

定義

ロール定義を名前 (GUID) で取得します。

  • 要求パス/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}
  • 操作IdRoleDefinitions_Get
public virtual Azure.Response<Azure.ResourceManager.Authorization.AuthorizationRoleDefinitionResource> Get (Azure.Core.ResourceIdentifier roleDefinitionId, System.Threading.CancellationToken cancellationToken = default);
abstract member Get : Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Authorization.AuthorizationRoleDefinitionResource>
override this.Get : Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Authorization.AuthorizationRoleDefinitionResource>
Public Overridable Function Get (roleDefinitionId As ResourceIdentifier, Optional cancellationToken As CancellationToken = Nothing) As Response(Of AuthorizationRoleDefinitionResource)

パラメーター

roleDefinitionId
ResourceIdentifier

ロール定義の ID。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

例外

roleDefinitionId が null です。

適用対象