Delen via


ConfidentialLedgerCollection.CreateOrUpdate 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ConfidentialLedger.ConfidentialLedgerResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string ledgerName, Azure.ResourceManager.ConfidentialLedger.ConfidentialLedgerData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.ConfidentialLedger.ConfidentialLedgerData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ConfidentialLedger.ConfidentialLedgerResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.ConfidentialLedger.ConfidentialLedgerData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ConfidentialLedger.ConfidentialLedgerResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, ledgerName As String, data As ConfidentialLedgerData, Optional cancellationToken As CancellationToken = Nothing) As 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