KeyVaultResource.UpdateAccessPolicyAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Update access policies in a key vault in the specified subscription.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/accessPolicies/{operationKind}
- Operation Id: Vaults_UpdateAccessPolicy
- Default Api Version: 2023-07-01
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.KeyVault.Models.KeyVaultAccessPolicyParameters>> UpdateAccessPolicyAsync (Azure.ResourceManager.KeyVault.Models.AccessPolicyUpdateKind operationKind, Azure.ResourceManager.KeyVault.Models.KeyVaultAccessPolicyParameters keyVaultAccessPolicyParameters, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAccessPolicyAsync : Azure.ResourceManager.KeyVault.Models.AccessPolicyUpdateKind * Azure.ResourceManager.KeyVault.Models.KeyVaultAccessPolicyParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.KeyVault.Models.KeyVaultAccessPolicyParameters>>
override this.UpdateAccessPolicyAsync : Azure.ResourceManager.KeyVault.Models.AccessPolicyUpdateKind * Azure.ResourceManager.KeyVault.Models.KeyVaultAccessPolicyParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.KeyVault.Models.KeyVaultAccessPolicyParameters>>
Public Overridable Function UpdateAccessPolicyAsync (operationKind As AccessPolicyUpdateKind, keyVaultAccessPolicyParameters As KeyVaultAccessPolicyParameters, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of KeyVaultAccessPolicyParameters))
Parameters
- operationKind
- AccessPolicyUpdateKind
Name of the operation.
- keyVaultAccessPolicyParameters
- KeyVaultAccessPolicyParameters
Access policy to merge into the vault.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
keyVaultAccessPolicyParameters
is null.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET