receipts
Creates, updates, deletes, gets or lists a receipts resource.
Overview
| Name | receipts |
| Type | Resource |
| Id | azure.confidential_ledger_dataplane.receipts |
Fields
The following fields are returned by SELECT queries:
- get_receipt
| Name | Datatype | Description |
|---|---|---|
applicationClaims | array | List of application claims. |
receipt | object | The receipt contents for the transaction. |
state | string | State of a ledger query. Required. Known values are: "Loading" and "Ready". (Loading, Ready) |
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. Required. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_receipt | select | transaction_id, ledger_endpoint | Gets a receipt certifying ledger contents at a particular transaction id. Gets a receipt certifying ledger contents at a particular transaction id. |
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: ) |
transaction_id | string | Identifies a write transaction. Required. |
SELECT examples
- get_receipt
Gets a receipt certifying ledger contents at a particular transaction id. Gets a receipt certifying ledger contents at a particular transaction id.
SELECT
applicationClaims,
receipt,
state,
transactionId
FROM azure.confidential_ledger_dataplane.receipts
WHERE transaction_id = '{{ transaction_id }}' -- required
AND ledger_endpoint = '{{ ledger_endpoint }}' -- required
;