from cognite.client.data_classes.data_modeling import NodeId, EdgeId
res = client.data_modeling.instances.inspect(
nodes=NodeId("my-space", "foo1"),
edges=EdgeId("my-space", "bar2"),
){
"items": [
{
"instanceType": "node",
"externalId": "<string>",
"space": "<string>",
"inspectionResults": {
"involvedViews": [
{
"type": "view",
"space": "<string>",
"externalId": "<string>",
"version": "<string>"
}
],
"involvedContainers": [
{
"type": "container",
"space": "<string>",
"externalId": "<string>"
}
]
}
}
]
}Required capabilities:
DataModelsAcl:READ
from cognite.client.data_classes.data_modeling import NodeId, EdgeId
res = client.data_modeling.instances.inspect(
nodes=NodeId("my-space", "foo1"),
edges=EdgeId("my-space", "bar2"),
){
"items": [
{
"instanceType": "node",
"externalId": "<string>",
"space": "<string>",
"inspectionResults": {
"involvedViews": [
{
"type": "view",
"space": "<string>",
"externalId": "<string>",
"version": "<string>"
}
],
"involvedContainers": [
{
"type": "container",
"space": "<string>",
"externalId": "<string>"
}
]
}
}
]
}Access token issued by the CDF project's configured identity provider. Access token must be an OpenID Connect token, and the project must be configured to accept OpenID Connect tokens. Use a header key of 'Authorization' with a value of 'Bearer $accesstoken'. The token can be obtained through any flow supported by the identity provider.
Change filter specification
Instances along with which containers/views they are associated with
List of instance inspection results
Show child attributes
Was this page helpful?