Exporting Asset metadata¶
Asset metadata can be found can be found via the GraphQL API.
Strategy¶
Find all the assets in the organization using following paginated query. Use the paginationDetails to make repeated calls as necessary. See the GraphQL documentation for the fields available on an Asset.
Query
query FindAllAssets($limit: Int = 100, $offset: Int = 0) {
organization {
id
name
search(type: ASSET, limit: $limit, offset: $offset) {
paginationDetails {
total
offset
limit
}
results {
... on Asset {
id
externalId
name
displayName
description
vendor
model
criticality
ontologyType {
id
name
}
}
}
}
}
}
Considerations¶
- Organizations with a large number of assets