ConfidentialLedgerClient.PostLedgerEntry Method

Definition

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

public virtual Azure.Operation PostLedgerEntry (Azure.WaitUntil waitUntil, Azure.Core.RequestContent content, string collectionId = default, Azure.RequestContext context = default);
abstract member PostLedgerEntry : Azure.WaitUntil * Azure.Core.RequestContent * string * Azure.RequestContext -> Azure.Operation
override this.PostLedgerEntry : Azure.WaitUntil * Azure.Core.RequestContent * string * Azure.RequestContext -> Azure.Operation
Public Overridable Function PostLedgerEntry (waitUntil As WaitUntil, content As RequestContent, Optional collectionId As String = Nothing, Optional context As RequestContext = Nothing) As 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

Operation

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