ConfidentialLedgerClient.PostLedgerEntryAsync Method

Definition

Posts a new entry to the ledger. A collection id may optionally be specified.

public virtual System.Threading.Tasks.Task<Azure.Operation> PostLedgerEntryAsync (Azure.WaitUntil waitUntil, Azure.Core.RequestContent content, string collectionId = default, Azure.RequestContext context = default);
abstract member PostLedgerEntryAsync : Azure.WaitUntil * Azure.Core.RequestContent * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Operation>
override this.PostLedgerEntryAsync : Azure.WaitUntil * Azure.Core.RequestContent * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Operation>
Public Overridable Function PostLedgerEntryAsync (waitUntil As WaitUntil, content As RequestContent, Optional collectionId As String = Nothing, Optional context As RequestContext = Nothing) As Task(Of Operation)

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.

content
RequestContent

The content to send as the body of the request.

collectionId
String

The collection id.

context
RequestContext

The request context.

Returns

Remarks

Below is the JSON schema for the request and response payloads.

Request Body:

Schema for LedgerEntry:

{
               contents: string, # Required. Contents of the ledger entry.
               collectionId: string, # Optional.
               transactionId: string, # Optional. A unique identifier for the state of the ledger. If returned as part of a LedgerEntry, it indicates the state from which the entry was read.
             }

Applies to