Skip to main content

ledger

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

Overview

Nameledger
TypeResource
Idazure.confidential_ledger.ledger

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource Id for the resource.
namestringName of the Resource.
aadBasedSecurityPrincipalsarrayArray of all AAD based Security Principals.
certBasedSecurityPrincipalsarrayArray of all cert based Security Principals.
identityServiceUristringEndpoint for accessing network identity.
ledgerInternalNamespacestringInternal namespace for the Ledger.
ledgerNamestringUnique name for the Confidential Ledger.
ledgerTypestringType of Confidential Ledger. Known values are: "Unknown", "Public", and "Private".
ledgerUristringEndpoint for calling Ledger Service.
locationstringThe Azure location where the Confidential Ledger is running.
provisioningStatestringProvisioning state of Ledger Resource. Known values are: "Unknown", "Succeeded", "Failed", "Canceled", "Creating", "Deleting", and "Updating".
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tagsobjectAdditional tags for Confidential Ledger.
typestringThe type of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, ledger_name, subscription_idRetrieves information about a Confidential Ledger resource. Retrieves the properties of a Confidential Ledger.
list_by_resource_groupselectresource_group_name, subscription_id$filterRetrieves information about all Confidential Ledger resources under the given subscription and resource group. Retrieves the properties of all Confidential Ledgers.
list_by_subscriptionselectsubscription_id$filterRetrieves information about all Confidential Ledger resources under the given subscription. Retrieves the properties of all Confidential Ledgers.
createinsertresource_group_name, ledger_name, subscription_idCreates a Confidential Ledger. Creates a Confidential Ledger with the specified ledger parameters.
updateupdateresource_group_name, ledger_name, subscription_idUpdate Confidential Ledger properties. Updates properties of Confidential Ledger.
deletedeleteresource_group_name, ledger_name, subscription_idDeletes a Confidential Ledger resource. Deletes an existing Confidential Ledger.

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_namestringName of the Confidential Ledger. Required.
resource_group_namestringThe name of the resource group. Required.
subscription_idstring
$filterstringThe filter to apply on the list operation. eg. $filter=ledgerType eq 'Public'. Default value is None.

SELECT examples

Retrieves information about a Confidential Ledger resource. Retrieves the properties of a Confidential Ledger.

SELECT
id,
name,
aadBasedSecurityPrincipals,
certBasedSecurityPrincipals,
identityServiceUri,
ledgerInternalNamespace,
ledgerName,
ledgerType,
ledgerUri,
location,
provisioningState,
systemData,
tags,
type
FROM azure.confidential_ledger.ledger
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND ledger_name = '{{ ledger_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates a Confidential Ledger. Creates a Confidential Ledger with the specified ledger parameters.

INSERT INTO azure.confidential_ledger.ledger (
location,
tags,
properties,
resource_group_name,
ledger_name,
subscription_id
)
SELECT
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ ledger_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Update Confidential Ledger properties. Updates properties of Confidential Ledger.

UPDATE azure.confidential_ledger.ledger
SET
location = '{{ location }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND ledger_name = '{{ ledger_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Deletes a Confidential Ledger resource. Deletes an existing Confidential Ledger.

DELETE FROM azure.confidential_ledger.ledger
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND ledger_name = '{{ ledger_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;