Skip to main content

ledger_digest_uploads

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

Overview

Nameledger_digest_uploads
TypeResource
Idazure.sql.ledger_digest_uploads

Fields

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

Methods

NameAccessible byRequired ParamsDescription
getSELECTdatabaseName, ledgerDigestUploads, resourceGroupName, serverName, subscriptionIdGets the current ledger digest upload configuration for a database.
list_by_databaseSELECTdatabaseName, resourceGroupName, serverName, subscriptionIdGets all ledger digest upload settings on a database.
create_or_updateINSERTdatabaseName, ledgerDigestUploads, resourceGroupName, serverName, subscriptionIdEnables upload ledger digests to an Azure Storage account or an Azure Confidential Ledger instance.
disableEXECdatabaseName, ledgerDigestUploads, resourceGroupName, serverName, 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,
resourceGroupName,
serverName,
state,
subscriptionId
FROM azure.sql.vw_ledger_digest_uploads
WHERE databaseName = '{{ databaseName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serverName = '{{ serverName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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