AuthorizationExtensions.GetRoleManagementPolicyAsync Method

Definition

Overloads

Name Description
GetRoleManagementPolicyAsync(ArmResource, String, CancellationToken)

Get the specified role management policy for a resource scope.

GetRoleManagementPolicyAsync(ArmClient, ResourceIdentifier, String, CancellationToken)

Get the specified role management policy for a resource scope <item> Mocking. To mock this method, please mock GetRoleManagementPolicyAsync(ResourceIdentifier, String, CancellationToken) instead. </item>

GetRoleManagementPolicyAsync(ArmResource, String, CancellationToken)

Source:
AuthorizationExtensions.cs
Source:
AuthorizationExtensions.cs

Get the specified role management policy for a resource scope.

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.RoleManagementPolicyResource>> GetRoleManagementPolicyAsync(this Azure.ResourceManager.ArmResource armResource, string roleManagementPolicyName, System.Threading.CancellationToken cancellationToken = default);
static member GetRoleManagementPolicyAsync : Azure.ResourceManager.ArmResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.RoleManagementPolicyResource>>
<Extension()>
Public Function GetRoleManagementPolicyAsync (armResource As ArmResource, roleManagementPolicyName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RoleManagementPolicyResource))

Parameters

armResource
ArmResource

The ArmResource instance the method will execute against.

roleManagementPolicyName
String

The name (guid) of the role management policy to get.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

roleManagementPolicyName is null.

roleManagementPolicyName is an empty string, and was expected to be non-empty.

Applies to

GetRoleManagementPolicyAsync(ArmClient, ResourceIdentifier, String, CancellationToken)

Source:
AuthorizationExtensions.cs
Source:
AuthorizationExtensions.cs

Get the specified role management policy for a resource scope <item> Mocking. To mock this method, please mock GetRoleManagementPolicyAsync(ResourceIdentifier, String, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.RoleManagementPolicyResource>> GetRoleManagementPolicyAsync(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string roleManagementPolicyName, System.Threading.CancellationToken cancellationToken = default);
static member GetRoleManagementPolicyAsync : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.RoleManagementPolicyResource>>
<Extension()>
Public Function GetRoleManagementPolicyAsync (client As ArmClient, scope As ResourceIdentifier, roleManagementPolicyName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RoleManagementPolicyResource))

Parameters

client
ArmClient

The ArmClient the method will execute against.

scope
ResourceIdentifier

The scope of the resource collection to get.

roleManagementPolicyName
String

The name (guid) of the role management policy to get.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

roleManagementPolicyName is an empty string, and was expected to be non-empty.

client is null.

Applies to