Share via


KeyVaultAccessControlClient.GetRoleAssignmentsAsync Method

Definition

Gets the role assignments for a scope.

public virtual Azure.AsyncPageable<Azure.Security.KeyVault.Administration.KeyVaultRoleAssignment> GetRoleAssignmentsAsync (Azure.Security.KeyVault.Administration.KeyVaultRoleScope roleScope, System.Threading.CancellationToken cancellationToken = default);
abstract member GetRoleAssignmentsAsync : Azure.Security.KeyVault.Administration.KeyVaultRoleScope * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Security.KeyVault.Administration.KeyVaultRoleAssignment>
override this.GetRoleAssignmentsAsync : Azure.Security.KeyVault.Administration.KeyVaultRoleScope * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Security.KeyVault.Administration.KeyVaultRoleAssignment>
Public Overridable Function GetRoleAssignmentsAsync (roleScope As KeyVaultRoleScope, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of KeyVaultRoleAssignment)

Parameters

roleScope
KeyVaultRoleScope

The scope of the role assignments.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

Exceptions

The server returned an error. See Message for details returned from the server.

roleScope is null.

Applies to