你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Ledger Digest Uploads - Create Or Update
允许将账本摘要上传到 Azure 存储帐户或 Azure 机密账本实例。
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/ledgerDigestUploads/current?api-version=2021-11-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
database
|
path | True |
string |
数据库的名称。 |
ledger
|
path | True | ||
resource
|
path | True |
string |
包含该资源的资源组名称。 可以从 Azure 资源管理器 API 或门户获取此值。 |
server
|
path | True |
string |
服务器的名称。 |
subscription
|
path | True |
string |
用于标识 Azure 订阅的订阅 ID。 |
api-version
|
query | True |
string |
要用于请求的 API 版本。 |
请求正文
名称 | 类型 | 说明 |
---|---|---|
properties.digestStorageEndpoint |
string |
摘要存储终结点,必须是 Azure Blob 存储终结点或 Azure 机密账本的 URI。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
已成功更新账本摘要上传配置 |
|
202 Accepted |
正在更新账本摘要上传配置。 |
|
Other Status Codes |
错误响应:***
|
示例
Enables ledger digest upload configuration for a database
Sample Request
PUT https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/ledgertestrg/providers/Microsoft.Sql/servers/ledgertestserver/databases/testdb/ledgerDigestUploads/current?api-version=2021-11-01
{
"properties": {
"digestStorageEndpoint": "https://MyAccount.blob.core.windows.net"
}
}
Sample Response
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/ledgertestrg/providers/Microsoft.Sql/servers/ledgertestserver/databases/testdb/ledgerDigestUpload/current",
"name": "current",
"type": "Microsoft.Sql/servers/databases/ledgerDigestUploads",
"properties": {
"digestStorageEndpoint": "https://mystorage.blob.core.windows.net",
"state": "Enabled"
}
}
Location: /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/ledgertestrg/providers/Microsoft.Sql/locations/eastus/ledgerDigestUploadOperationResults/11111111-1111-1111-1111-111111111111
定义
名称 | 说明 |
---|---|
Ledger |
Azure SQL数据库账本摘要上传设置。 |
Ledger |
|
Ledger |
指定账本摘要上传的状态。 |
LedgerDigestUploads
Azure SQL数据库账本摘要上传设置。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
资源 ID。 |
name |
string |
资源名称。 |
properties.digestStorageEndpoint |
string |
摘要存储终结点,必须是 Azure Blob 存储终结点或 Azure 机密账本的 URI。 |
properties.state |
指定账本摘要上传的状态。 |
|
type |
string |
资源类型。 |
LedgerDigestUploadsName
名称 | 类型 | 说明 |
---|---|---|
current |
string |
LedgerDigestUploadsState
指定账本摘要上传的状态。
名称 | 类型 | 说明 |
---|---|---|
Disabled |
string |
|
Enabled |
string |