Skip to main content

ledgers

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

Overview

Nameledgers
TypeResource
Idazure.confidential_ledger.ledgers

Fields

NameDatatypeDescription
aad_based_security_principalstextfield from the properties object
cert_based_security_principalstextfield from the properties object
host_leveltextfield from the properties object
identity_service_uritextfield from the properties object
ledgerNametextfield from the properties object
ledger_internal_namespacetextfield from the properties object
ledger_nametextfield from the properties object
ledger_skutextfield from the properties object
ledger_typetextfield from the properties object
ledger_uritextfield from the properties object
locationtextThe geo-location where the resource lives
max_body_size_in_mbtextfield from the properties object
node_counttextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
running_statetextfield from the properties object
subject_nametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
worker_threadstextfield from the properties object
write_lb_address_prefixtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTledgerName, resourceGroupName, subscriptionIdRetrieves the properties of a Confidential Ledger.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdRetrieves the properties of all Confidential Ledgers.
list_by_subscriptionSELECTsubscriptionIdRetrieves the properties of all Confidential Ledgers.
createINSERTledgerName, resourceGroupName, subscriptionIdCreates a Confidential Ledger with the specified ledger parameters.
deleteDELETEledgerName, resourceGroupName, subscriptionIdDeletes an existing Confidential Ledger.
updateUPDATEledgerName, resourceGroupName, subscriptionIdUpdates properties of Confidential Ledger
backupEXECledgerName, resourceGroupName, subscriptionId, data__uriBacks up a Confidential Ledger Resource.
restoreEXECledgerName, resourceGroupName, subscriptionId, data__fileShareName, data__restoreRegion, data__uriRestores a Confidential Ledger Resource.

SELECT examples

Retrieves the properties of all Confidential Ledgers.

SELECT
aad_based_security_principals,
cert_based_security_principals,
host_level,
identity_service_uri,
ledgerName,
ledger_internal_namespace,
ledger_name,
ledger_sku,
ledger_type,
ledger_uri,
location,
max_body_size_in_mb,
node_count,
provisioning_state,
resourceGroupName,
running_state,
subject_name,
subscriptionId,
tags,
worker_threads,
write_lb_address_prefix
FROM azure.confidential_ledger.vw_ledgers
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new ledgers resource.

/*+ create */
INSERT INTO azure.confidential_ledger.ledgers (
ledgerName,
resourceGroupName,
subscriptionId,
tags,
location,
properties
)
SELECT
'{{ ledgerName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;

UPDATE example

Updates a ledgers resource.

/*+ update */
UPDATE azure.confidential_ledger.ledgers
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
ledgerName = '{{ ledgerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified ledgers resource.

/*+ delete */
DELETE FROM azure.confidential_ledger.ledgers
WHERE ledgerName = '{{ ledgerName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';