Share via


ConfidentialLedgerCollection.CreateOrUpdateAsync Method

Definition

Creates a Confidential Ledger with the specified ledger parameters.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}
  • Operation Id: Ledger_Create
  • Default Api Version: 2023-06-28-preview
  • Resource: ConfidentialLedgerResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ConfidentialLedger.ConfidentialLedgerResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string ledgerName, Azure.ResourceManager.ConfidentialLedger.ConfidentialLedgerData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ConfidentialLedger.ConfidentialLedgerData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ConfidentialLedger.ConfidentialLedgerResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ConfidentialLedger.ConfidentialLedgerData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ConfidentialLedger.ConfidentialLedgerResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, ledgerName As String, data As ConfidentialLedgerData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ConfidentialLedgerResource))

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.

ledgerName
String

Name of the Confidential Ledger.

data
ConfidentialLedgerData

Confidential Ledger Create Request Body.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

ledgerName or data is null.

Applies to