curl --request GET \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/models/statistics/spaces \
--header 'Authorization: Bearer <token>'{
"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 each space in the project.
curl --request GET \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/models/statistics/spaces \
--header 'Authorization: Bearer <token>'{
"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 spaces with associated data modeling statistics
Show child attributes
Was this page helpful?