ServerKeysOperationsExtensions.CreateOrUpdateAsync Method

Definition

Creates or updates a MySQL Server key.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.MySQL.FlexibleServers.Models.ServerKey> CreateOrUpdateAsync (this Microsoft.Azure.Management.MySQL.FlexibleServers.IServerKeysOperations operations, string resourceGroupName, string serverName, string keyName, Microsoft.Azure.Management.MySQL.FlexibleServers.Models.ServerKey parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.MySQL.FlexibleServers.IServerKeysOperations * string * string * string * Microsoft.Azure.Management.MySQL.FlexibleServers.Models.ServerKey * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.MySQL.FlexibleServers.Models.ServerKey>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IServerKeysOperations, resourceGroupName As String, serverName As String, keyName As String, parameters As ServerKey, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ServerKey)

Parameters

operations
IServerKeysOperations

The operations group for this extension method.

resourceGroupName
System.String

The name of the resource group. The name is case insensitive.

serverName
System.String

The name of the server.

keyName
System.String

The name of the server key.

parameters
ServerKey

The requested MySQL Server key resource state.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<ServerKey>

Applies to