Find child assets by parent qualifiedName
Search for child assets using prefix match on qualifiedName
of the parent asset. The search result will work on the asset hierarchy based on qualifiedName
. The request example shows the child assets of a table, which in this case would be columns.
Body Required
Query to run the search.
In case, prefix of say a schema is passed in prefix
all underlying assets
(tables and columns in this case) would be returned
You can chose to restrict the asset type by mentioning
the specific typeName as in the example below.
-
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.
Responses
-
• 200 object
Assets that exactly have the prefix as the
qualifiedName
value would be returned. In this case since the qualifiedName is of a table, columns will be returned. Since thetypeName
is set toColumn
even withqualifiedName
of a schema is passed, only underlying columns would be returned.
curl \
-X POST https://tenant.atlan.com/api/meta/search/indexsearch#findChildAssets \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"dsl":{"from":0,"size":1,"query":{"bool":{"must":[{"match":{"__state":"ACTIVE"}},{"match":{"__typeName.keyword":"Column"}},{"prefix":{"qualifiedName":"default/snowflake/1646904424/ATLAN_SAMPLE_DATA/FOOD_BEVERAGE"}}]}}}}'
{
"dsl": {
"from": 0,
"size": 1,
"query": {
"bool": {
"must": [
{
"match": {
"__state": "ACTIVE"
}
},
{
"match": {
"__typeName.keyword": "Column"
}
},
{
"prefix": {
"qualifiedName": "default/snowflake/1646904424/ATLAN_SAMPLE_DATA/FOOD_BEVERAGE"
}
}
]
}
}
}
}
{
"searchParameters": {
"showSearchScore": false,
"suppressLogs": false,
"allowDeletedRelations": false,
"query": "{\\\"from\\\":0,\\\"size\\\":1,\\\"query\\\":{\\\"bool\\\":{\\\"must\\\":[{\\\"matc h\\\":{\\\"__state\\\":\\\"ACTIVE\\\"}},{\\\"match\\\":{\\\"__typeName.key word\\\":\\\"Column\\\"}},{\\\"prefix\\\":{\\ \"qualifiedName\\\":\\\"default/snowflake/1646749526\\\"}}]}}}"
},
"entities": [
{
"typeName": "Column",
"attributes": {
"qualifiedName": "default/snowflake/1646749526/ATLAN_SAMPLE_DATA/FOOD_BEVERAGE/INSTACART_BEVERAGES_ORDER_CUSTOMER/aisle_id",
"name": "aisle_id",
"description": "Unique ID of the sub-category"
},
"guid": "4663f2d6-8b12-4f65-b94c-7407af10034d",
"status": "ACTIVE",
"displayText": "aisle_id",
"classificationNames": [
"J5q2QzErHG4unHTA0C5GE0",
"EO7Gp8Y6xeI1JHctrlpQhB"
],
"classifications": [
{
"typeName": "J5q2QzErHG4unHTA0C5GE0",
"entityGuid": "af6a32d4-936b-4a59-9917-7082c56ba443",
"entityStatus": "ACTIVE",
"propagate": true,
"removePropagationsOnEntityDelete": true
},
{
"typeName": "EO7Gp8Y6xeI1JHctrlpQhB",
"entityGuid": "85d141c2-d383-4b4f-93a5-c3eed20988b9",
"entityStatus": "ACTIVE",
"propagate": true,
"removePropagationsOnEntityDelete": true
}
],
"meaningNames": [],
"meanings": [],
"isIncomplete": false,
"labels": [],
"createdBy": "jsmith",
"updatedBy": "jdoe",
"createTime": 1646904643794,
"updateTime": 1650525230506
}
],
"approximateCount": 14
}