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

Entity - Add Label

将给定标签添加到给定实体。

PUT {endpoint}/datamap/api/atlas/v2/entity/guid/{guid}/labels

URI 参数

名称 必需 类型 说明
endpoint
path True

string

guid
path True

string

实体的全局唯一标识符。

请求正文

名称 类型 说明
body

string[]

要添加的标签集

响应

名称 类型 说明
204 No Content

没有要为此请求发送的内容,但标头可能很有用。

Other Status Codes

AtlasErrorResponse

意外的错误响应。

安全性

OAuth2Auth

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名称 说明
https://purview.azure.net/.default

示例

Entity_AddLabel

Sample Request

PUT {endpoint}/datamap/api/atlas/v2/entity/guid/02c373fe-2823-4be3-97fa-55180a9faa06/labels

[
  "label1",
  "label2"
]

Sample Response

定义

AtlasErrorResponse

来自服务的错误响应

名称 类型 说明
errorCode

string

错误代码。

errorMessage

string

错误消息。

requestId

string

请求 ID。