curl --request POST \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/models/statistics/spaces/byids \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"items": [
{
"space": "<string>"
}
]
}
'{
"items": [
{
"space": "<string>",
"containers": 123,
"views": 123,
"dataModels": 123,
"edges": 123,
"softDeletedEdges": 123,
"nodes": 123,
"softDeletedNodes": 123
}
]
}Required capabilities:
DataModelsAcl:READ
Returns statistics for data modeling resources grouped by space for a specified list of spaces.
curl --request POST \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/models/statistics/spaces/byids \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"items": [
{
"space": "<string>"
}
]
}
'{
"items": [
{
"space": "<string>",
"containers": 123,
"views": 123,
"dataModels": 123,
"edges": 123,
"softDeletedEdges": 123,
"nodes": 123,
"softDeletedNodes": 123
}
]
}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.
List of space-ids to return statistics for.
1 - 100 elementsShow child attributes
List of spaces with associated data modeling statistics
Show child attributes
Was this page helpful?