Microsoft.ConfidentialLedger (preview:2024-12-09)

2025/03/11 • 2 updated methods

ListLedgerEntries (updated)
Description A collection id may optionally be specified. Only entries in the specified (or default) collection will be returned.
Reference Link ¶

⚶ Changes

{
  "#id": "ListLedgerEntries",
  "$parameters": {
    "@added_4971a4fcb1354b79b124a1d9aa15cb1b": {
      "#name": "tag",
      "Description": "Single tag.",
      "Required": false,
      "Type": "string"
    }
  }
}

⚼ Request

GET:  /app/transactions
{
api-version: string ,
collectionId: string ,
fromTransactionId: string ,
toTransactionId: string ,
tag: string ,
}

⚐ Response (200)

{
state: enum ,
nextLink: string ,
entries:
[
{
contents: string ,
collectionId: string ,
transactionId: string ,
preHooks:
[
{
functionId: string ,
properties:
{
arguments:
[
string ,
]
,
exportedFunctionName: string ,
runtimeOptions:
{
log_exception_details: boolean ,
max_cached_interpreters: integer ,
max_execution_time_ms: integer ,
max_heap_bytes: integer ,
max_stack_bytes: integer ,
return_exception_details: boolean ,
}
,
}
,
}
,
]
,
postHooks:
[
{
functionId: string ,
properties:
{
arguments:
[
string ,
]
,
exportedFunctionName: string ,
runtimeOptions:
{
log_exception_details: boolean ,
max_cached_interpreters: integer ,
max_execution_time_ms: integer ,
max_heap_bytes: integer ,
max_stack_bytes: integer ,
return_exception_details: boolean ,
}
,
}
,
}
,
]
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}
CreateLedgerEntry (updated)
Description A collection id may optionally be specified.
Reference Link ¶

⚶ Changes

{
  "#id": "CreateLedgerEntry",
  "$parameters": {
    "@added_00707956629e41bfb0a18c320c7dac2f": {
      "#name": "tags",
      "Description": "Comma separated tags.",
      "Required": false,
      "Type": "string"
    }
  }
}

⚼ Request

POST:  /app/transactions
{
api-version: string ,
collectionId: string ,
entry:
{
contents: string ,
collectionId: string ,
transactionId: string ,
preHooks:
[
{
functionId: string ,
properties:
{
arguments:
[
string ,
]
,
exportedFunctionName: string ,
runtimeOptions:
{
log_exception_details: boolean ,
max_cached_interpreters: integer ,
max_execution_time_ms: integer ,
max_heap_bytes: integer ,
max_stack_bytes: integer ,
return_exception_details: boolean ,
}
,
}
,
}
,
]
,
postHooks:
[
{
functionId: string ,
properties:
{
arguments:
[
string ,
]
,
exportedFunctionName: string ,
runtimeOptions:
{
log_exception_details: boolean ,
max_cached_interpreters: integer ,
max_execution_time_ms: integer ,
max_heap_bytes: integer ,
max_stack_bytes: integer ,
return_exception_details: boolean ,
}
,
}
,
}
,
]
,
}
,
tags: string ,
}

⚐ Response (200)

{
$headers:
{
x-ms-ccf-transaction-id: string ,
}
,
$schema:
{
collectionId: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
}
,
}