你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

VaultsOperationsExtensions.UpdateAccessPolicyAsync 方法

定义

更新指定订阅中密钥保管库中的访问策略。

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.KeyVault.Fluent.Models.VaultAccessPolicyParametersInner> UpdateAccessPolicyAsync (this Microsoft.Azure.Management.KeyVault.Fluent.IVaultsOperations operations, string resourceGroupName, string vaultName, Microsoft.Azure.Management.KeyVault.Fluent.Models.AccessPolicyUpdateKind operationKind, Microsoft.Azure.Management.KeyVault.Fluent.Models.VaultAccessPolicyProperties properties, System.Threading.CancellationToken cancellationToken = default);
static member UpdateAccessPolicyAsync : Microsoft.Azure.Management.KeyVault.Fluent.IVaultsOperations * string * string * Microsoft.Azure.Management.KeyVault.Fluent.Models.AccessPolicyUpdateKind * Microsoft.Azure.Management.KeyVault.Fluent.Models.VaultAccessPolicyProperties * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.KeyVault.Fluent.Models.VaultAccessPolicyParametersInner>
<Extension()>
Public Function UpdateAccessPolicyAsync (operations As IVaultsOperations, resourceGroupName As String, vaultName As String, operationKind As AccessPolicyUpdateKind, properties As VaultAccessPolicyProperties, Optional cancellationToken As CancellationToken = Nothing) As Task(Of VaultAccessPolicyParametersInner)

参数

operations
IVaultsOperations

此扩展方法的操作组。

resourceGroupName
String

保管库所属的资源组的名称。

vaultName
String

保管库的名称

operationKind
AccessPolicyUpdateKind

操作的名称。 可能的值包括:“add”、“replace”、“remove”

properties
VaultAccessPolicyProperties

访问策略的属性

cancellationToken
CancellationToken

取消标记。

返回

适用于