Get asset history
Retrieve the actions that have been taken on the asset across its history in Atlan.
Body Required
Query to run the retrieval.
The history for an asset can be retrieved either by GUID or by qualifiedName
:
- To search by GUID, use the term
entityId
with a value of the GUID of the entity for which to retrieve history - To search by
qualifiedName
, use the termentityQualifiedName
with the exact (case-sensitive)qualifiedName
of the asset for which to retrieve history
This specific example retrieves the last 10 actions that were taken on the asset, sorted in reverse-chronological order.
(For advanced users, this interface actually uses the Elastic Query DSL. You can use more complex queries to retrieve history across more than a single asset using the same interface.)
-
dsl object Required
Asset history query for Atlan.
-
attributes array[string] | null
List of attribute names to include in the current version of each entry.
Responses
-
• 200 object
The history of the asset according to the parameters provided.
Note that each entry has an
entityDetail
object giving a view of the current value of the asset. When retrieving the history for a single asset, the contents of thisentityDetail
object will be the same in all entries.
curl \
-X POST https://tenant.atlan.com/api/meta/entity/auditSearch \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"dsl":{"from":0,"size":10,"sort":[{"created":{"order":"desc"}}],"query":{"bool":{"filter":{"term":{"entityId":"c47d2400-0c21-4c0d-b9fb-1d53440a75ae"}}}}}}'
{
"dsl": {
"from": 0,
"size": 10,
"sort": [
{
"created": {
"order": "desc"
}
}
],
"query": {
"bool": {
"filter": {
"term": {
"entityId": "c47d2400-0c21-4c0d-b9fb-1d53440a75ae"
}
}
}
}
}
}
{
"entityAudits": [
{
"entityQualifiedName": "u1qWdBZPF9vfEHXFcgEER@FzCMyPR2LxkPFgr8eNGrq",
"typeName": "AtlasGlossaryTerm",
"entityId": "c47d2400-0c21-4c0d-b9fb-1d53440a75ae",
"timestamp": 1657039571112,
"created": 1657039571135,
"user": "service-account-apikey-9471cf12-f45c-4275-b280-3e01d26f57e8",
"action": "CLASSIFICATION_ADD",
"details": null,
"eventKey": "c47d2400-0c21-4c0d-b9fb-1d53440a75ae:1657039571112",
"entity": null,
"type": null,
"detail": {
"typeName": "GeiqD5GfQoJ8oVzhspjQdo",
"entityGuid": "c47d2400-0c21-4c0d-b9fb-1d53440a75ae",
"entityStatus": "ACTIVE",
"propagate": true,
"removePropagationsOnEntityDelete": true
},
"entityDetail": {
"typeName": "AtlasGlossaryTerm",
"attributes": {
"qualifiedName": "u1qWdBZPF9vfEHXFcgEER@FzCMyPR2LxkPFgr8eNGrq",
"name": "Customer Acquisition Cost"
},
"guid": "c47d2400-0c21-4c0d-b9fb-1d53440a75ae",
"status": "ACTIVE",
"displayText": "Customer Acquisition Cost",
"classificationNames": [
"GeiqD5GfQoJ8oVzhspjQdo"
],
"meaningNames": [],
"meanings": [],
"isIncomplete": false,
"labels": [],
"createdBy": "service-account-apikey-9471cf12-f45c-4275-b280-3e01d26f57e8",
"updatedBy": "service-account-apikey-9471cf12-f45c-4275-b280-3e01d26f57e8",
"createTime": 1657039477745,
"updateTime": 1657039571112
}
},
{
"entityQualifiedName": "u1qWdBZPF9vfEHXFcgEER@FzCMyPR2LxkPFgr8eNGrq",
"typeName": "AtlasGlossaryTerm",
"entityId": "c47d2400-0c21-4c0d-b9fb-1d53440a75ae",
"timestamp": 1657039477745,
"created": 1657039477783,
"user": "service-account-apikey-9471cf12-f45c-4275-b280-3e01d26f57e8",
"action": "ENTITY_CREATE",
"details": null,
"eventKey": "c47d2400-0c21-4c0d-b9fb-1d53440a75ae:1657039477745",
"entity": null,
"type": null,
"detail": {
"typeName": "AtlasGlossaryTerm",
"attributes": {
"popularityScore": 1.17549435e-38,
"viewerUsers": [],
"sourceCreatedAt": 0,
"viewScore": 1.17549435e-38,
"lastSyncRunAt": 0,
"certificateStatus": "VERIFIED",
"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.",
"adminRoles": [],
"adminGroups": [],
"qualifiedName": "u1qWdBZPF9vfEHXFcgEER@FzCMyPR2LxkPFgr8eNGrq",
"__hasLineage": false,
"adminUsers": [],
"ownerGroups": [],
"certificateUpdatedBy": "service-account-apikey-9471cf12-f45c-4275-b280-3e01d26f57e8",
"isEditable": true,
"sourceUpdatedAt": 0,
"examples": [],
"announcementUpdatedAt": 0,
"name": "Customer Acquisition Cost",
"certificateUpdatedAt": 1657039477745,
"isDiscoverable": true,
"viewerGroups": [],
"ownerUsers": []
},
"guid": "c47d2400-0c21-4c0d-b9fb-1d53440a75ae",
"isIncomplete": false,
"provenanceType": 0,
"createdBy": "service-account-apikey-9471cf12-f45c-4275-b280-3e01d26f57e8",
"updatedBy": "service-account-apikey-9471cf12-f45c-4275-b280-3e01d26f57e8",
"createTime": 1657039477745,
"updateTime": 1657039477745,
"version": 0,
"relationshipAttributes": {
"anchor": {
"guid": "1c557933-aa97-4eb2-bb14-3b51a636a664",
"typeName": "AtlasGlossary"
}
},
"classifications": [],
"proxy": false
},
"entityDetail": {
"typeName": "AtlasGlossaryTerm",
"attributes": {
"qualifiedName": "u1qWdBZPF9vfEHXFcgEER@FzCMyPR2LxkPFgr8eNGrq",
"name": "Customer Acquisition Cost"
},
"guid": "c47d2400-0c21-4c0d-b9fb-1d53440a75ae",
"status": "ACTIVE",
"displayText": "Customer Acquisition Cost",
"classificationNames": [
"GeiqD5GfQoJ8oVzhspjQdo"
],
"meaningNames": [],
"meanings": [],
"isIncomplete": false,
"labels": [],
"createdBy": "service-account-apikey-9471cf12-f45c-4275-b280-3e01d26f57e8",
"updatedBy": "service-account-apikey-9471cf12-f45c-4275-b280-3e01d26f57e8",
"createTime": 1657039477745,
"updateTime": 1657039571112
}
}
],
"aggregations": null,
"count": 2,
"totalCount": 2
}