Share via


SqlServerTrustGroupCollection.CreateOrUpdateAsync Method

Definition

Creates or updates a server trust group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/serverTrustGroups/{serverTrustGroupName}
  • Operation Id: ServerTrustGroups_CreateOrUpdate
  • Default Api Version: 2020-11-01-preview
  • Resource: SqlServerTrustGroupResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.SqlServerTrustGroupResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string serverTrustGroupName, Azure.ResourceManager.Sql.SqlServerTrustGroupData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Sql.SqlServerTrustGroupData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.SqlServerTrustGroupResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Sql.SqlServerTrustGroupData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sql.SqlServerTrustGroupResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, serverTrustGroupName As String, data As SqlServerTrustGroupData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of SqlServerTrustGroupResource))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

serverTrustGroupName
String

The name of the server trust group.

data
SqlServerTrustGroupData

The server trust group parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

serverTrustGroupName is an empty string, and was expected to be non-empty.

serverTrustGroupName or data is null.

Applies to