你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Key Vault Connections - Create

创建密钥保管库连接的实例

PUT {Endpoint}/scan/azureKeyVaults/{keyVaultName}?api-version=2022-02-01-preview

URI 参数

Name In Required Type Description
Endpoint
path True
  • string

purview 帐户的扫描终结点。 示例:https://{accountName}.purview.azure.com

keyVaultName
path True
  • string
api-version
query True
  • string

要使用的 API 版本。

请求正文

Name Type Description
properties

响应

Name Type Description
200 OK

成功

Other Status Codes

从扫描服务收到的错误响应

示例

KeyVaultConnections_Create

Sample Request

PUT {Endpoint}/scan/azureKeyVaults/KeyVault1?api-version=2022-02-01-preview

{
  "properties": {
    "baseUrl": "https://babylon-sample-kv.vault.azure.net/",
    "description": "This is a Key Vault"
  }
}

Sample Response

x-ms-request-id: d5496da4-9c52-402f-b067-83cc9ddea888
{
  "properties": {
    "baseUrl": "https://babylon-sample-kv.vault.azure.net/",
    "description": "This is a Key Vault"
  },
  "id": "/subscriptions/34fb3b81-27ab-4690-9d0b-668896fd288c/resourceGroups/scanning-df-westus2/providers/Microsoft.ProjectBabylon/accounts/babylon-128abf8c-ecea-4be6-8010-36d73cfad6e5/linkedservices/AzureKeyVault1",
  "name": "KeyVault1"
}

定义

AzureKeyVault
Error
ErrorModel
ErrorResponseModel
Properties

AzureKeyVault

Name Type Description
id
  • string
name
  • string
properties

Error

Name Type Description
code
  • string
details
message
  • string
target
  • string

ErrorModel

Name Type Description
code
  • string
details
message
  • string
target
  • string

ErrorResponseModel

Name Type Description
error

Properties

Name Type Description
baseUrl
  • string
description
  • string