Skip to main content

managed_ledger_digest_uploads

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

Overview

Namemanaged_ledger_digest_uploads
TypeResource
Idazure.sql.managed_ledger_digest_uploads

Fields

NameDatatypeDescription
databaseNametextfield from the properties object
digest_storage_endpointtextfield from the properties object
ledgerDigestUploadstextfield from the properties object
managedInstanceNametextfield from the properties object
resourceGroupNametextfield from the properties object
statetextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdatabaseName, ledgerDigestUploads, managedInstanceName, resourceGroupName, subscriptionIdGets the current ledger digest upload configuration for a database.
list_by_databaseSELECTdatabaseName, managedInstanceName, resourceGroupName, subscriptionIdGets all ledger digest upload settings on a database.
create_or_updateINSERTdatabaseName, ledgerDigestUploads, managedInstanceName, resourceGroupName, subscriptionIdEnables upload ledger digests to an Azure Storage account or an Azure Confidential Ledger instance.
disableEXECdatabaseName, ledgerDigestUploads, managedInstanceName, resourceGroupName, subscriptionIdDisables uploading ledger digests to an Azure Storage account or an Azure Confidential Ledger instance.

SELECT examples

Gets all ledger digest upload settings on a database.

SELECT
databaseName,
digest_storage_endpoint,
ledgerDigestUploads,
managedInstanceName,
resourceGroupName,
state,
subscriptionId
FROM azure.sql.vw_managed_ledger_digest_uploads
WHERE databaseName = '{{ databaseName }}'
AND managedInstanceName = '{{ managedInstanceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.sql.managed_ledger_digest_uploads (
databaseName,
ledgerDigestUploads,
managedInstanceName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ databaseName }}',
'{{ ledgerDigestUploads }}',
'{{ managedInstanceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;