Find asset by exact name
Search for assets with an exact name.
Body Required
Query to run the search.
- Replace the
__typeName.keyword
with the name of the asset type - Replace the
name.keyword
with the exact name of the asset to find
This example specifically searches for a glossary term with the exact name of Customer Acquisition Cost
.
In addition to the default set of properties returned in a search, this request will also retrieve:
- the term's glossary (
anchor
) - the user-provided description of the term (
userDescription
) - the term's certificate status (
certificateStatus
) - any announcement details on the term (
announcementType
,announcementTitle
,announcementMessage
) - the term's owners (
ownerUsers
,ownerGroups
)
For the related object (the term's glossary) it will also retrieve the glossary's:
- certificate status
- name
- description
- qualified name
-
dsl object Required
Search query for Atlan. This uses the Elastic Query DSL, which will not be fully described here due to its complexity.
-
attributes array[string] | null
List of attribute names to include on each result. These attributes should exist on the assets being searched.
-
relationAttributes array[string] | null
List of attribute names to include on each relationship included in the results. These attributes should exist on at least one of the relationships that could be returned on one of the assets in the results.
curl \
-X POST https://tenant.atlan.com/api/meta/search/indexsearch#findAssetByExactName \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"dsl":{"from":0,"size":20,"query":{"bool":{"must":[{"match":{"__state":"ACTIVE"}},{"match":{"__typeName.keyword":"AtlasGlossaryTerm"}},{"match":{"name.keyword":"Customer Acquisition Cost"}}]}}},"attributes":["anchor","userDescription","certificateStatus","announcementMessage","announcementTitle","announcementType","ownerUsers","ownerGroups"],"relationAttributes":["certificateStatus","name","description","qualifiedName"]}'
{
"dsl": {
"from": 0,
"size": 20,
"query": {
"bool": {
"must": [
{
"match": {
"__state": "ACTIVE"
}
},
{
"match": {
"__typeName.keyword": "AtlasGlossaryTerm"
}
},
{
"match": {
"name.keyword": "Customer Acquisition Cost"
}
}
]
}
}
},
"attributes": [
"anchor",
"userDescription",
"certificateStatus",
"announcementMessage",
"announcementTitle",
"announcementType",
"ownerUsers",
"ownerGroups"
],
"relationAttributes": [
"certificateStatus",
"name",
"description",
"qualifiedName"
]
}
{
"searchParameters": {
"attributes": [
"anchor",
"userDescription",
"certificateStatus",
"announcementMessage",
"announcementTitle",
"announcementType",
"ownerUsers",
"ownerGroups"
],
"relationAttributes": [
"certificateStatus",
"name",
"description",
"qualifiedName"
],
"query": "{\"from\":0,\"size\":20,\"query\":{\"bool\":{\"must\":[{\"match\": {\"__state\":\"ACTIVE\"}},{\"match\":{\"__typeName.keyword\": \"AtlasGlossaryTerm\"}},{\"match\":{\"name.keyword\": \"Customer Acquisition Cost\"}}]}}}"
},
"entities": [
{
"typeName": "AtlasGlossaryTerm",
"attributes": {
"certificateStatus": "VERIFIED",
"ownerGroups": [],
"userDescription": "The average amount spent in order to acquire a customer. CAC is calculated by dividing the total amount spent on acquisition activities by the total number of customers acquired during a certain time period. The acquisition activity costs cover various efforts including business development and marketing, as well as salaries, external consultancy fees, and technology costs.",
"qualifiedName": "qIJpoOZHEQjIv460a4DTy@vdLN8ETB3KiDLTzoDcT6j",
"anchor": {
"guid": "97eb9009-f355-4700-9bfa-0d202051d9e2",
"typeName": "AtlasGlossary",
"attributes": {
"certificateStatus": "VERIFIED",
"name": "Metrics"
},
"uniqueAttributes": {
"qualifiedName": "vdLN8ETB3KiDLTzoDcT6j"
}
},
"name": "Customer Acquisition Cost",
"announcementTitle": "Calculation moved to complex method from Jan 2022 onwards",
"announcementMessage": "Please refer to the readme for detailed differences between the calculation methods.",
"ownerUsers": [
"jdoe"
]
},
"guid": "af6a32d4-936b-4a59-9917-7082c56ba443",
"status": "ACTIVE",
"displayText": "Customer Acquisition Cost",
"classificationNames": [
"J5q2QzErHG4unHTA0C5GE0"
],
"classifications": [
{
"typeName": "J5q2QzErHG4unHTA0C5GE0",
"entityGuid": "af6a32d4-936b-4a59-9917-7082c56ba443",
"entityStatus": "ACTIVE",
"propagate": true,
"removePropagationsOnEntityDelete": true
}
],
"meaningNames": [],
"meanings": [],
"isIncomplete": false,
"labels": [],
"createdBy": "jsmith",
"updatedBy": "jdoe",
"createTime": 1646914776550,
"updateTime": 1651168541536
}
],
"approximateCount": 1
}