Share via


KeyVaultAccessControlClient Class

Definition

The KeyVaultAccessControlClient provides synchronous and asynchronous methods to view and manage Role Based Access for the Azure Key Vault. The client supports creating, listing, updating, and deleting KeyVaultRoleAssignment and KeyVaultRoleDefinition.

public class KeyVaultAccessControlClient
type KeyVaultAccessControlClient = class
Public Class KeyVaultAccessControlClient
Inheritance
KeyVaultAccessControlClient

Constructors

KeyVaultAccessControlClient()

Initializes a new instance of the KeyVaultAccessControlClient class for mocking.

KeyVaultAccessControlClient(Uri, TokenCredential)

Initializes a new instance of the KeyVaultAccessControlClient class for the specified vault.

KeyVaultAccessControlClient(Uri, TokenCredential, KeyVaultAdministrationClientOptions)

Initializes a new instance of the KeyVaultAccessControlClient class for the specified vault.

Properties

VaultUri

Gets the vault URI.

Methods

CreateOrUpdateRoleDefinition(CreateOrUpdateRoleDefinitionOptions, CancellationToken)

Creates or updates a role definition.

CreateOrUpdateRoleDefinition(KeyVaultRoleScope, Nullable<Guid>, CancellationToken)

Creates or updates a role definition. If the named role definition is already defined it will be updated.

CreateOrUpdateRoleDefinitionAsync(CreateOrUpdateRoleDefinitionOptions, CancellationToken)

Creates or updates a role definition.

CreateOrUpdateRoleDefinitionAsync(KeyVaultRoleScope, Nullable<Guid>, CancellationToken)

Creates or updates a role definition. If the named role definition is already defined it will be updated.

CreateRoleAssignment(KeyVaultRoleScope, String, String, Nullable<Guid>, CancellationToken)

Creates a role assignment.

CreateRoleAssignmentAsync(KeyVaultRoleScope, String, String, Nullable<Guid>, CancellationToken)

Creates a role assignment.

DeleteRoleAssignment(KeyVaultRoleScope, String, CancellationToken)

Delete the specified role assignment.

DeleteRoleAssignmentAsync(KeyVaultRoleScope, String, CancellationToken)

Delete the specified role assignment.

DeleteRoleDefinition(KeyVaultRoleScope, Guid, CancellationToken)

Deletes a role definition.

DeleteRoleDefinitionAsync(KeyVaultRoleScope, Guid, CancellationToken)

Deletes a role definition.

GetRoleAssignment(KeyVaultRoleScope, String, CancellationToken)

Get the specified role assignment.

GetRoleAssignmentAsync(KeyVaultRoleScope, String, CancellationToken)

Get the specified role assignment.

GetRoleAssignments(KeyVaultRoleScope, CancellationToken)

Gets the role assignments for a scope.

GetRoleAssignmentsAsync(KeyVaultRoleScope, CancellationToken)

Gets the role assignments for a scope.

GetRoleDefinition(KeyVaultRoleScope, Guid, CancellationToken)

Get a specific role definition.

GetRoleDefinitionAsync(KeyVaultRoleScope, Guid, CancellationToken)

Get a specific role definition.

GetRoleDefinitions(KeyVaultRoleScope, CancellationToken)

Get all role definitions that are applicable at scope and above.

GetRoleDefinitionsAsync(KeyVaultRoleScope, CancellationToken)

Get all role definitions that are applicable at scope and above.

Applies to