Skip to content

Latest commit

 

History

History
47 lines (38 loc) · 1.37 KB

addLabelsByUniqueAttribute.md

File metadata and controls

47 lines (38 loc) · 1.37 KB

pv entity addLabelsByUniqueAttribute

Command Reference > entity > addLabelsByUniqueAttribute

Description

Append labels to an entity identified by its type and unique attributes.

Syntax

pv entity addLabelsByUniqueAttribute --typeName=<val> --qualifiedName=<val> --payloadFile=<val>

Required Arguments

--typeName (string)
The name of the type.

--qualifiedName (string)
The qualified name of the entity.

--payloadFile (string)
File path to a valid JSON document.

Optional Arguments

None

API Mapping

Catalog Data Plane > Entity > Add given labels to a given entity identified by its type and unique attributes.

PUT https://{accountName}.purview.azure.com/catalog/api/atlas/v2/entity/uniqueAttribute/type/{typeName}/labels

Examples

Append labels to an existing entity identified by its type and unique attributes.

pv entity addLabelsByUniqueAttribute --typeName "azure_datalake_gen2_resource_set" --qualifiedName "https://STORAGE_ACCOUNT.dfs.core.windows.net/bing/data/{N}/QueriesByCountry_{Year}-{Month}-{Day}_{N}-{N}-{N}.tsv" --payloadFile "/path/to/file.json"
Example payload.

[
    "a",
    "b",
    "c"
]