managed_ledger_digest_uploads
Creates, updates, deletes, gets or lists a managed_ledger_digest_uploads
resource.
Overview
Name | managed_ledger_digest_uploads |
Type | Resource |
Id | azure.sql.managed_ledger_digest_uploads |
Fields
- vw_managed_ledger_digest_uploads
- managed_ledger_digest_uploads
Name | Datatype | Description |
---|---|---|
databaseName | text | field from the properties object |
digest_storage_endpoint | text | field from the properties object |
ledgerDigestUploads | text | field from the properties object |
managedInstanceName | text | field from the properties object |
resourceGroupName | text | field from the properties object |
state | text | field from the properties object |
subscriptionId | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | The properties of a database ledger digest upload settings. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | databaseName, ledgerDigestUploads, managedInstanceName, resourceGroupName, subscriptionId | Gets the current ledger digest upload configuration for a database. |
list_by_database | SELECT | databaseName, managedInstanceName, resourceGroupName, subscriptionId | Gets all ledger digest upload settings on a database. |
create_or_update | INSERT | databaseName, ledgerDigestUploads, managedInstanceName, resourceGroupName, subscriptionId | Enables upload ledger digests to an Azure Storage account or an Azure Confidential Ledger instance. |
disable | EXEC | databaseName, ledgerDigestUploads, managedInstanceName, resourceGroupName, subscriptionId | Disables 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.
- vw_managed_ledger_digest_uploads
- managed_ledger_digest_uploads
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 }}';
SELECT
properties
FROM azure.sql.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.sql.managed_ledger_digest_uploads (
databaseName,
ledgerDigestUploads,
managedInstanceName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ databaseName }}',
'{{ ledgerDigestUploads }}',
'{{ managedInstanceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: digestStorageEndpoint
value: string
- name: state
value: string