你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Vaults - Get Deleted
获取已删除的 Azure 密钥保管库。
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/locations/{location}/deletedVaults/{vaultName}?api-version=2022-07-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
location
|
path | True |
string |
已删除保管库的位置。 |
subscription
|
path | True |
string |
唯一标识 Microsoft Azure 订阅的订阅凭据。 此订阅 ID 是每个服务调用的 URI 的一部分。 |
vault
|
path | True |
string |
保管库的名称。 |
api-version
|
query | True |
string |
客户端 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
检索了有关已删除保管库的信息。 |
|
Other Status Codes |
描述操作失败原因的错误响应。 |
示例
Retrieve a deleted vault
Sample Request
Sample Response
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/westus/deletedVaults/sample-vault",
"name": "sample-vault",
"type": "Microsoft.KeyVault/deletedVaults",
"properties": {
"vaultId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sample-group/providers/Microsoft.KeyVault/vaults/sample-vault",
"location": "westus",
"tags": {},
"deletionDate": "2017-01-01T00:00:59Z",
"scheduledPurgeDate": "2017-04-01T00:00:59Z",
"purgeProtectionEnabled": true
}
}
定义
名称 | 说明 |
---|---|
Cloud |
密钥保管库资源提供程序的错误响应 |
Cloud |
密钥保管库资源提供程序的错误响应 |
Deleted |
已删除包含扩展详细信息的保管库信息。 |
Deleted |
已删除保管库的属性。 |
CloudError
密钥保管库资源提供程序的错误响应
名称 | 类型 | 说明 |
---|---|---|
error |
密钥保管库资源提供程序的错误响应 |
CloudErrorBody
密钥保管库资源提供程序的错误响应
名称 | 类型 | 说明 |
---|---|---|
code |
string |
错误代码。 这是可以编程方式使用的助记键。 |
message |
string |
用户友好的错误消息。 消息通常是本地化的,可能因服务版本而异。 |
DeletedVault
已删除包含扩展详细信息的保管库信息。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
已删除密钥保管库的资源 ID。 |
name |
string |
密钥保管库的名称。 |
properties |
保管库的属性 |
|
type |
string |
密钥保管库的资源类型。 |
DeletedVaultProperties
已删除保管库的属性。
名称 | 类型 | 说明 |
---|---|---|
deletionDate |
string |
删除的日期。 |
location |
string |
原始保管库的位置。 |
purgeProtectionEnabled |
boolean |
清除原始保管库的保护状态。 |
scheduledPurgeDate |
string |
计划的清除日期。 |
tags |
object |
原始保管库的标记。 |
vaultId |
string |
原始保管库的资源 ID。 |