Skip to main content

current_ledger_entries

Creates, updates, deletes, gets or lists a current_ledger_entries resource.

Overview

Namecurrent_ledger_entries
TypeResource
Idazure.confidential_ledger_dataplane.current_ledger_entries

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
collectionIdstringThe collection identifier for this ledger entry.
contentsstringContents of the ledger entry. Required.
postHooksarrayList of user defined function hooks to be executed after the ledger entry is written.
preHooksarrayList of user defined function hooks to be executed before the ledger entry is written.
transactionIdstringA 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.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_current_ledger_entryselectledger_endpointcollectionIdGets the current value available in the ledger. A collection id may optionally be specified.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
ledger_endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client ledgerEndpoint parameter. (default: )
collectionIdstringThe collection id. Default value is None.

SELECT examples

Gets the current value available in the ledger. A collection id may optionally be specified.

SELECT
collectionId,
contents,
postHooks,
preHooks,
transactionId
FROM azure.confidential_ledger_dataplane.current_ledger_entries
WHERE ledger_endpoint = '{{ ledger_endpoint }}' -- required
AND collectionId = '{{ collectionId }}'
;