Share via


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

RoleAssignmentHelper 类

定义

一个实用工具类,用于对具有服务主体的资源的角色分配进行操作, (对象 ID) 。 方法签名和行为在将来的版本中可能会更改。

public class RoleAssignmentHelper : Microsoft.Azure.Management.ResourceManager.Fluent.Core.IBeta
type RoleAssignmentHelper = class
    interface IBeta
Public Class RoleAssignmentHelper
Implements IBeta
继承
RoleAssignmentHelper
派生
实现

构造函数

RoleAssignmentHelper(IGraphRbacManager, IIdProvider)

创建 RoleAssignmentHelper。

属性

HasPendingRoleAssignments

如果存在待提交的角色分配,则为 True。

方法

CommitsRoleAssignmentsPendingActionAsync(CancellationToken)

提交挂起的 RBAC 角色分配创建和删除。

WithAccessTo(String, BuiltInRole)

指定使用此标识在 Azure 服务上运行的应用程序需要访问角色,其访问范围仅限于 ARM 资源。

WithAccessTo(String, String)

指定使用此标识在 Azure 服务上运行的应用程序需要给定角色定义中所述的访问权限,其访问范围仅限于 ARM 资源。

WithAccessToCurrentResourceGroup(BuiltInRole)

指定在具有此标识的 Azure 服务上运行的应用程序需要给定的访问角色,其访问范围仅限于标识所在的当前资源组。

WithAccessToCurrentResourceGroup(String)

指定在具有此标识的 Azure 服务上运行的应用程序需要给定的访问角色,其访问范围仅限于标识所在的当前资源组。

WithoutAccessTo(IRoleAssignment)

指定应删除分配给标识的访问角色。

WithoutAccessTo(String, BuiltInRole)

指定应删除分配给标识的访问角色。

适用于