current_ledger_entries
Creates, updates, deletes, gets or lists a current_ledger_entries resource.
Overview
| Name | current_ledger_entries |
| Type | Resource |
| Id | azure.confidential_ledger_dataplane.current_ledger_entries |
Fields
The following fields are returned by SELECT queries:
- get_current_ledger_entry
| Name | Datatype | Description |
|---|---|---|
collectionId | string | The collection identifier for this ledger entry. |
contents | string | Contents of the ledger entry. Required. |
postHooks | array | List of user defined function hooks to be executed after the ledger entry is written. |
preHooks | array | List of user defined function hooks to be executed before the ledger entry is written. |
transactionId | string | 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. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_current_ledger_entry | select | ledger_endpoint | collectionId | Gets 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.
| Name | Datatype | Description |
|---|---|---|
ledger_endpoint | string | The service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client ledgerEndpoint parameter. (default: ) |
collectionId | string | The collection id. Default value is None. |
SELECT examples
- get_current_ledger_entry
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 }}'
;