你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
AuthorizationExtensions.GetRoleManagementPolicyAssignmentAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GetRoleManagementPolicyAssignmentAsync(ArmResource, String, CancellationToken) |
获取资源范围的指定角色管理策略分配
|
GetRoleManagementPolicyAssignmentAsync(ArmClient, ResourceIdentifier, String, CancellationToken) |
获取资源范围的指定角色管理策略分配
|
GetRoleManagementPolicyAssignmentAsync(ArmResource, String, CancellationToken)
获取资源范围的指定角色管理策略分配
- 请求路径/{scope}/providers/Microsoft.Authorization/roleManagementPolicyAssignments/{roleManagementPolicyAssignmentName}
- 操作IdRoleManagementPolicyAssignments_Get
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.RoleManagementPolicyAssignmentResource>> GetRoleManagementPolicyAssignmentAsync (this Azure.ResourceManager.ArmResource armResource, string roleManagementPolicyAssignmentName, System.Threading.CancellationToken cancellationToken = default);
static member GetRoleManagementPolicyAssignmentAsync : Azure.ResourceManager.ArmResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.RoleManagementPolicyAssignmentResource>>
<Extension()>
Public Function GetRoleManagementPolicyAssignmentAsync (armResource As ArmResource, roleManagementPolicyAssignmentName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RoleManagementPolicyAssignmentResource))
参数
- armResource
- ArmResource
方法 ArmResource 将对其执行的实例。
- roleManagementPolicyAssignmentName
- String
要获取的角色管理策略分配格式 {guid_guid}的名称。
- cancellationToken
- CancellationToken
要使用的取消标记。
返回
例外
roleManagementPolicyAssignmentName
是一个空字符串,预期为非空。
roleManagementPolicyAssignmentName
为 null。
适用于
GetRoleManagementPolicyAssignmentAsync(ArmClient, ResourceIdentifier, String, CancellationToken)
获取资源范围的指定角色管理策略分配
- 请求路径/{scope}/providers/Microsoft.Authorization/roleManagementPolicyAssignments/{roleManagementPolicyAssignmentName}
- 操作IdRoleManagementPolicyAssignments_Get
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.RoleManagementPolicyAssignmentResource>> GetRoleManagementPolicyAssignmentAsync (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string roleManagementPolicyAssignmentName, System.Threading.CancellationToken cancellationToken = default);
static member GetRoleManagementPolicyAssignmentAsync : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.RoleManagementPolicyAssignmentResource>>
<Extension()>
Public Function GetRoleManagementPolicyAssignmentAsync (client As ArmClient, scope As ResourceIdentifier, roleManagementPolicyAssignmentName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RoleManagementPolicyAssignmentResource))
参数
- scope
- ResourceIdentifier
资源将应用于的范围。
- roleManagementPolicyAssignmentName
- String
要获取的角色管理策略分配格式 {guid_guid}的名称。
- cancellationToken
- CancellationToken
要使用的取消标记。
返回
例外
roleManagementPolicyAssignmentName
是一个空字符串,预期为非空。
roleManagementPolicyAssignmentName
为 null。