Compartir a través de


RoleManagementPolicyAssignmentCollection.GetAsync Método

Definición

Obtención de la asignación de directiva de administración de roles especificada para un ámbito de recurso

  • Ruta de acceso de solicitud/{scope}/providers/Microsoft.Authorization/roleManagementPolicyAssignments/{roleManagementPolicyAssignmentName}
  • IdRoleManagementPolicyAssignments_Get de operaciones
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.RoleManagementPolicyAssignmentResource>> GetAsync (string roleManagementPolicyAssignmentName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.RoleManagementPolicyAssignmentResource>>
override this.GetAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Authorization.RoleManagementPolicyAssignmentResource>>
Public Overridable Function GetAsync (roleManagementPolicyAssignmentName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RoleManagementPolicyAssignmentResource))

Parámetros

roleManagementPolicyAssignmentName
String

Nombre del formato {guid_guid} a la asignación de directiva de administración de roles que se va a obtener.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

roleManagementPolicyAssignmentName es una cadena vacía y se esperaba que no estuviera vacía.

roleManagementPolicyAssignmentName es null.

Se aplica a