你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ServerKeysOperationsExtensions.CreateOrUpdate 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建或更新服务器密钥。
public static Microsoft.Azure.Management.Sql.Models.ServerKey CreateOrUpdate (this Microsoft.Azure.Management.Sql.IServerKeysOperations operations, string resourceGroupName, string serverName, string keyName, Microsoft.Azure.Management.Sql.Models.ServerKey parameters);
static member CreateOrUpdate : Microsoft.Azure.Management.Sql.IServerKeysOperations * string * string * string * Microsoft.Azure.Management.Sql.Models.ServerKey -> Microsoft.Azure.Management.Sql.Models.ServerKey
<Extension()>
Public Function CreateOrUpdate (operations As IServerKeysOperations, resourceGroupName As String, serverName As String, keyName As String, parameters As ServerKey) As ServerKey
参数
- operations
- IServerKeysOperations
此扩展方法的操作组。
- resourceGroupName
- String
包含该资源的资源组名称。 可以从 Azure 资源管理器 API 或门户获取此值。
- serverName
- String
服务器的名称。
- keyName
- String
要对 () 更新或创建的服务器密钥的名称。 密钥名称必须采用“vault_key_version”格式。 例如,如果 keyId 为 https://YourVaultName.vault.azure.net/keys/YourKeyName/YourKeyVersion,则服务器密钥名称的格式应为:YourVaultName_YourKeyName_YourKeyVersion
- parameters
- ServerKey
请求的服务器密钥资源状态。