# Statistics

## Get statistics about files, grouped by date

> \*\*API Key Scope\*\*: statistics / by\_date

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"by_date":{"description":"Statistics grouped by date.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/by_date_facet"}}}}},"schemas":{"by_date_facet":{"allOf":[{"$ref":"#/components/schemas/file_facet"},{"$ref":"#/components/schemas/date_to_file_facets"}]},"file_facet":{"allOf":[{"$ref":"#/components/schemas/default_facet"},{"type":"object","properties":{"files_count":{"type":"integer","readOnly":true},"file_size_sum":{"type":"integer","readOnly":true},"cost":{"type":"number","readOnly":true}}}]},"default_facet":{"type":"object","properties":{"count":{"type":"integer","readOnly":true}}},"date_to_file_facets":{"type":"object","properties":{"in_cache":{"$ref":"#/components/schemas/file_facet"},"less_1_week":{"$ref":"#/components/schemas/file_facet"},"less_1_month":{"$ref":"#/components/schemas/file_facet"},"less_3_months":{"$ref":"#/components/schemas/file_facet"},"less_6_months":{"$ref":"#/components/schemas/file_facet"},"less_1_year":{"$ref":"#/components/schemas/file_facet"},"less_2_years":{"$ref":"#/components/schemas/file_facet"},"more_2_years":{"$ref":"#/components/schemas/file_facet"}}}},"parameters":{"solr_query":{"name":"q","in":"query","description":"Solr query","schema":{"type":"string"}},"solr_filter_query":{"name":"fq","in":"query","description":"Solr filter query\n\nMultiple query can be separated by `|`.","style":"pipeDelimited","schema":{"type":"array","items":{"type":"string"}}},"facet_date_attr":{"name":"date_attr","in":"query","description":"Type of date to facet on","schema":{"type":"string","enum":["file_change_dt","file_modification_dt","file_access_dt"]}}}},"paths":{"/statistics/by_date":{"get":{"summary":"Get statistics about files, grouped by date","operationId":"statistics_by_date","description":"**API Key Scope**: statistics / by_date","tags":["statistics"],"responses":{"200":{"$ref":"#/components/responses/by_date"}},"parameters":[{"$ref":"#/components/parameters/solr_query"},{"$ref":"#/components/parameters/solr_filter_query"},{"$ref":"#/components/parameters/facet_date_attr"}]}}}}
```

## Get statistics about files, grouped by primary storages

> \*\*API Key Scope\*\*: statistics / by\_primary\_name

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"by_primary_name":{"description":"Statistics grouped by primary names.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/by_primary_facet"}}}}},"schemas":{"by_primary_facet":{"allOf":[{"$ref":"#/components/schemas/file_facet"},{"type":"object","properties":{"prim_name_s":{"$ref":"#/components/schemas/by_date_facet_buckets"}}}]},"file_facet":{"allOf":[{"$ref":"#/components/schemas/default_facet"},{"type":"object","properties":{"files_count":{"type":"integer","readOnly":true},"file_size_sum":{"type":"integer","readOnly":true},"cost":{"type":"number","readOnly":true}}}]},"default_facet":{"type":"object","properties":{"count":{"type":"integer","readOnly":true}}},"by_date_facet_buckets":{"type":"object","properties":{"buckets":{"type":"array","items":{"$ref":"#/components/schemas/by_date_facet_bucket"}}}},"by_date_facet_bucket":{"allOf":[{"type":"object","properties":{"val":{"description":"integer or string"}}},{"$ref":"#/components/schemas/by_date_facet"}]},"by_date_facet":{"allOf":[{"$ref":"#/components/schemas/file_facet"},{"$ref":"#/components/schemas/date_to_file_facets"}]},"date_to_file_facets":{"type":"object","properties":{"in_cache":{"$ref":"#/components/schemas/file_facet"},"less_1_week":{"$ref":"#/components/schemas/file_facet"},"less_1_month":{"$ref":"#/components/schemas/file_facet"},"less_3_months":{"$ref":"#/components/schemas/file_facet"},"less_6_months":{"$ref":"#/components/schemas/file_facet"},"less_1_year":{"$ref":"#/components/schemas/file_facet"},"less_2_years":{"$ref":"#/components/schemas/file_facet"},"more_2_years":{"$ref":"#/components/schemas/file_facet"}}}},"parameters":{"solr_query":{"name":"q","in":"query","description":"Solr query","schema":{"type":"string"}},"solr_filter_query":{"name":"fq","in":"query","description":"Solr filter query\n\nMultiple query can be separated by `|`.","style":"pipeDelimited","schema":{"type":"array","items":{"type":"string"}}},"facet_date_attr":{"name":"date_attr","in":"query","description":"Type of date to facet on","schema":{"type":"string","enum":["file_change_dt","file_modification_dt","file_access_dt"]}},"file_facet_sort":{"name":"sort","in":"query","description":"Sort results of facet","schema":{"type":"string","default":"count","enum":["count","files_count","file_size_sum","cost"]}},"file_facet_limit":{"name":"limit","in":"query","description":"Limit results of facet","schema":{"type":"integer","default":10}}}},"paths":{"/statistics/by_primary_name":{"get":{"summary":"Get statistics about files, grouped by primary storages","operationId":"statistics_by_primary_name","description":"**API Key Scope**: statistics / by_primary_name","tags":["statistics"],"responses":{"200":{"$ref":"#/components/responses/by_primary_name"}},"parameters":[{"$ref":"#/components/parameters/solr_query"},{"$ref":"#/components/parameters/solr_filter_query"},{"$ref":"#/components/parameters/facet_date_attr"},{"$ref":"#/components/parameters/file_facet_sort"},{"$ref":"#/components/parameters/file_facet_limit"}]}}}}
```

## Get statistics about files, grouped by primary storage

> \*\*API Key Scope\*\*: statistics / by\_primary\_storage

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"by_primary_storage":{"description":"Statistics grouped by primary storages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/by_primary_storage_facet"}}}}},"schemas":{"by_primary_storage_facet":{"allOf":[{"$ref":"#/components/schemas/file_facet"},{"$ref":"#/components/schemas/type_to_primary_facets"}]},"file_facet":{"allOf":[{"$ref":"#/components/schemas/default_facet"},{"type":"object","properties":{"files_count":{"type":"integer","readOnly":true},"file_size_sum":{"type":"integer","readOnly":true},"cost":{"type":"number","readOnly":true}}}]},"default_facet":{"type":"object","properties":{"count":{"type":"integer","readOnly":true}}},"type_to_primary_facets":{"type":"object","properties":{"on_primary_container":{"$ref":"#/components/schemas/by_primary_type_facet"},"on_primary_nas":{"$ref":"#/components/schemas/by_primary_type_facet"},"on_primary_public_cloud":{"$ref":"#/components/schemas/by_primary_type_facet"},"on_primary_object_cloud":{"$ref":"#/components/schemas/by_primary_type_facet"}}},"by_primary_type_facet":{"allOf":[{"$ref":"#/components/schemas/by_date_facet"},{"type":"object","properties":{"prim_name_s":{"$ref":"#/components/schemas/by_date_facet_buckets"}}}]},"by_date_facet":{"allOf":[{"$ref":"#/components/schemas/file_facet"},{"$ref":"#/components/schemas/date_to_file_facets"}]},"date_to_file_facets":{"type":"object","properties":{"in_cache":{"$ref":"#/components/schemas/file_facet"},"less_1_week":{"$ref":"#/components/schemas/file_facet"},"less_1_month":{"$ref":"#/components/schemas/file_facet"},"less_3_months":{"$ref":"#/components/schemas/file_facet"},"less_6_months":{"$ref":"#/components/schemas/file_facet"},"less_1_year":{"$ref":"#/components/schemas/file_facet"},"less_2_years":{"$ref":"#/components/schemas/file_facet"},"more_2_years":{"$ref":"#/components/schemas/file_facet"}}},"by_date_facet_buckets":{"type":"object","properties":{"buckets":{"type":"array","items":{"$ref":"#/components/schemas/by_date_facet_bucket"}}}},"by_date_facet_bucket":{"allOf":[{"type":"object","properties":{"val":{"description":"integer or string"}}},{"$ref":"#/components/schemas/by_date_facet"}]}},"parameters":{"solr_query":{"name":"q","in":"query","description":"Solr query","schema":{"type":"string"}},"solr_filter_query":{"name":"fq","in":"query","description":"Solr filter query\n\nMultiple query can be separated by `|`.","style":"pipeDelimited","schema":{"type":"array","items":{"type":"string"}}},"facet_date_attr":{"name":"date_attr","in":"query","description":"Type of date to facet on","schema":{"type":"string","enum":["file_change_dt","file_modification_dt","file_access_dt"]}},"file_facet_sort":{"name":"sort","in":"query","description":"Sort results of facet","schema":{"type":"string","default":"count","enum":["count","files_count","file_size_sum","cost"]}},"file_facet_limit":{"name":"limit","in":"query","description":"Limit results of facet","schema":{"type":"integer","default":10}}}},"paths":{"/statistics/by_primary_storage":{"get":{"summary":"Get statistics about files, grouped by primary storage","operationId":"statistics_by_primary_storage","description":"**API Key Scope**: statistics / by_primary_storage","tags":["statistics"],"responses":{"200":{"$ref":"#/components/responses/by_primary_storage"}},"parameters":[{"$ref":"#/components/parameters/solr_query"},{"$ref":"#/components/parameters/solr_filter_query"},{"$ref":"#/components/parameters/facet_date_attr"},{"$ref":"#/components/parameters/file_facet_sort"},{"$ref":"#/components/parameters/file_facet_limit"}]}}}}
```

## Get statistics about files, grouped by primary Cloud

> \*\*API Key Scope\*\*: statistics / by\_primary\_cloud

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"by_primary_cloud":{"description":"Statistics grouped by primary clouds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/by_primary_cloud_facet"}}}}},"schemas":{"by_primary_cloud_facet":{"allOf":[{"$ref":"#/components/schemas/file_facet"},{"type":"object","properties":{"prim_cloud_connector_name_s":{"$ref":"#/components/schemas/by_date_facet_buckets"},"prim_cloud_bucket_name_s":{"$ref":"#/components/schemas/by_date_facet_buckets"},"prim_pool_name_s":{"$ref":"#/components/schemas/by_date_facet_buckets"}}}]},"file_facet":{"allOf":[{"$ref":"#/components/schemas/default_facet"},{"type":"object","properties":{"files_count":{"type":"integer","readOnly":true},"file_size_sum":{"type":"integer","readOnly":true},"cost":{"type":"number","readOnly":true}}}]},"default_facet":{"type":"object","properties":{"count":{"type":"integer","readOnly":true}}},"by_date_facet_buckets":{"type":"object","properties":{"buckets":{"type":"array","items":{"$ref":"#/components/schemas/by_date_facet_bucket"}}}},"by_date_facet_bucket":{"allOf":[{"type":"object","properties":{"val":{"description":"integer or string"}}},{"$ref":"#/components/schemas/by_date_facet"}]},"by_date_facet":{"allOf":[{"$ref":"#/components/schemas/file_facet"},{"$ref":"#/components/schemas/date_to_file_facets"}]},"date_to_file_facets":{"type":"object","properties":{"in_cache":{"$ref":"#/components/schemas/file_facet"},"less_1_week":{"$ref":"#/components/schemas/file_facet"},"less_1_month":{"$ref":"#/components/schemas/file_facet"},"less_3_months":{"$ref":"#/components/schemas/file_facet"},"less_6_months":{"$ref":"#/components/schemas/file_facet"},"less_1_year":{"$ref":"#/components/schemas/file_facet"},"less_2_years":{"$ref":"#/components/schemas/file_facet"},"more_2_years":{"$ref":"#/components/schemas/file_facet"}}}},"parameters":{"solr_query":{"name":"q","in":"query","description":"Solr query","schema":{"type":"string"}},"solr_filter_query":{"name":"fq","in":"query","description":"Solr filter query\n\nMultiple query can be separated by `|`.","style":"pipeDelimited","schema":{"type":"array","items":{"type":"string"}}},"facet_date_attr":{"name":"date_attr","in":"query","description":"Type of date to facet on","schema":{"type":"string","enum":["file_change_dt","file_modification_dt","file_access_dt"]}},"file_facet_sort":{"name":"sort","in":"query","description":"Sort results of facet","schema":{"type":"string","default":"count","enum":["count","files_count","file_size_sum","cost"]}},"file_facet_limit":{"name":"limit","in":"query","description":"Limit results of facet","schema":{"type":"integer","default":10}}}},"paths":{"/statistics/by_primary_cloud":{"get":{"summary":"Get statistics about files, grouped by primary Cloud","operationId":"statistics_by_primary_cloud","description":"**API Key Scope**: statistics / by_primary_cloud","tags":["statistics"],"responses":{"200":{"$ref":"#/components/responses/by_primary_cloud"}},"parameters":[{"$ref":"#/components/parameters/solr_query"},{"$ref":"#/components/parameters/solr_filter_query"},{"$ref":"#/components/parameters/facet_date_attr"},{"$ref":"#/components/parameters/file_facet_sort"},{"$ref":"#/components/parameters/file_facet_limit"}]}}}}
```

## Get statistics about files, grouped by primary NAS

> \*\*API Key Scope\*\*: statistics / by\_primary\_nas

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"by_primary_nas":{"description":"Statistics grouped by primary NAS.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/by_primary_nas_facet"}}}}},"schemas":{"by_primary_nas_facet":{"allOf":[{"$ref":"#/components/schemas/file_facet"},{"type":"object","properties":{"prim_nas_name_s":{"$ref":"#/components/schemas/by_date_facet_buckets"},"prim_nas_share_name_s":{"$ref":"#/components/schemas/by_date_facet_buckets"},"prim_pool_name_s":{"$ref":"#/components/schemas/by_date_facet_buckets"}}}]},"file_facet":{"allOf":[{"$ref":"#/components/schemas/default_facet"},{"type":"object","properties":{"files_count":{"type":"integer","readOnly":true},"file_size_sum":{"type":"integer","readOnly":true},"cost":{"type":"number","readOnly":true}}}]},"default_facet":{"type":"object","properties":{"count":{"type":"integer","readOnly":true}}},"by_date_facet_buckets":{"type":"object","properties":{"buckets":{"type":"array","items":{"$ref":"#/components/schemas/by_date_facet_bucket"}}}},"by_date_facet_bucket":{"allOf":[{"type":"object","properties":{"val":{"description":"integer or string"}}},{"$ref":"#/components/schemas/by_date_facet"}]},"by_date_facet":{"allOf":[{"$ref":"#/components/schemas/file_facet"},{"$ref":"#/components/schemas/date_to_file_facets"}]},"date_to_file_facets":{"type":"object","properties":{"in_cache":{"$ref":"#/components/schemas/file_facet"},"less_1_week":{"$ref":"#/components/schemas/file_facet"},"less_1_month":{"$ref":"#/components/schemas/file_facet"},"less_3_months":{"$ref":"#/components/schemas/file_facet"},"less_6_months":{"$ref":"#/components/schemas/file_facet"},"less_1_year":{"$ref":"#/components/schemas/file_facet"},"less_2_years":{"$ref":"#/components/schemas/file_facet"},"more_2_years":{"$ref":"#/components/schemas/file_facet"}}}},"parameters":{"solr_query":{"name":"q","in":"query","description":"Solr query","schema":{"type":"string"}},"solr_filter_query":{"name":"fq","in":"query","description":"Solr filter query\n\nMultiple query can be separated by `|`.","style":"pipeDelimited","schema":{"type":"array","items":{"type":"string"}}},"facet_date_attr":{"name":"date_attr","in":"query","description":"Type of date to facet on","schema":{"type":"string","enum":["file_change_dt","file_modification_dt","file_access_dt"]}},"file_facet_sort":{"name":"sort","in":"query","description":"Sort results of facet","schema":{"type":"string","default":"count","enum":["count","files_count","file_size_sum","cost"]}},"file_facet_limit":{"name":"limit","in":"query","description":"Limit results of facet","schema":{"type":"integer","default":10}}}},"paths":{"/statistics/by_primary_nas":{"get":{"summary":"Get statistics about files, grouped by primary NAS","operationId":"statistics_by_primary_nas","description":"**API Key Scope**: statistics / by_primary_nas","tags":["statistics"],"responses":{"200":{"$ref":"#/components/responses/by_primary_nas"}},"parameters":[{"$ref":"#/components/parameters/solr_query"},{"$ref":"#/components/parameters/solr_filter_query"},{"$ref":"#/components/parameters/facet_date_attr"},{"$ref":"#/components/parameters/file_facet_sort"},{"$ref":"#/components/parameters/file_facet_limit"}]}}}}
```

## Get statistics about files, grouped by secondary storage

> \*\*API Key Scope\*\*: statistics / by\_secondary\_storage

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"by_secondary_storage":{"description":"Statistics grouped by secondary storages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/by_secondary_storage_facet"}}}}},"schemas":{"by_secondary_storage_facet":{"allOf":[{"$ref":"#/components/schemas/file_facet"},{"$ref":"#/components/schemas/type_to_secondary_facets"}]},"file_facet":{"allOf":[{"$ref":"#/components/schemas/default_facet"},{"type":"object","properties":{"files_count":{"type":"integer","readOnly":true},"file_size_sum":{"type":"integer","readOnly":true},"cost":{"type":"number","readOnly":true}}}]},"default_facet":{"type":"object","properties":{"count":{"type":"integer","readOnly":true}}},"type_to_secondary_facets":{"type":"object","properties":{"on_secondary_nas":{"$ref":"#/components/schemas/by_secondary_type_facet"},"on_secondary_public_cloud":{"$ref":"#/components/schemas/by_secondary_type_facet"},"on_secondary_object_cloud":{"$ref":"#/components/schemas/by_secondary_type_facet"},"on_secondary_tape":{"$ref":"#/components/schemas/by_secondary_type_facet"},"on_any_secondary":{"$ref":"#/components/schemas/by_secondary_type_facet"},"on_no_secondary":{"$ref":"#/components/schemas/by_secondary_type_facet"}}},"by_secondary_type_facet":{"allOf":[{"$ref":"#/components/schemas/by_date_facet"},{"type":"object","properties":{"sec_pool_name_s":{"$ref":"#/components/schemas/by_date_facet_buckets"}}}]},"by_date_facet":{"allOf":[{"$ref":"#/components/schemas/file_facet"},{"$ref":"#/components/schemas/date_to_file_facets"}]},"date_to_file_facets":{"type":"object","properties":{"in_cache":{"$ref":"#/components/schemas/file_facet"},"less_1_week":{"$ref":"#/components/schemas/file_facet"},"less_1_month":{"$ref":"#/components/schemas/file_facet"},"less_3_months":{"$ref":"#/components/schemas/file_facet"},"less_6_months":{"$ref":"#/components/schemas/file_facet"},"less_1_year":{"$ref":"#/components/schemas/file_facet"},"less_2_years":{"$ref":"#/components/schemas/file_facet"},"more_2_years":{"$ref":"#/components/schemas/file_facet"}}},"by_date_facet_buckets":{"type":"object","properties":{"buckets":{"type":"array","items":{"$ref":"#/components/schemas/by_date_facet_bucket"}}}},"by_date_facet_bucket":{"allOf":[{"type":"object","properties":{"val":{"description":"integer or string"}}},{"$ref":"#/components/schemas/by_date_facet"}]}},"parameters":{"solr_query":{"name":"q","in":"query","description":"Solr query","schema":{"type":"string"}},"solr_filter_query":{"name":"fq","in":"query","description":"Solr filter query\n\nMultiple query can be separated by `|`.","style":"pipeDelimited","schema":{"type":"array","items":{"type":"string"}}},"facet_date_attr":{"name":"date_attr","in":"query","description":"Type of date to facet on","schema":{"type":"string","enum":["file_change_dt","file_modification_dt","file_access_dt"]}},"file_facet_sort":{"name":"sort","in":"query","description":"Sort results of facet","schema":{"type":"string","default":"count","enum":["count","files_count","file_size_sum","cost"]}},"file_facet_limit":{"name":"limit","in":"query","description":"Limit results of facet","schema":{"type":"integer","default":10}}}},"paths":{"/statistics/by_secondary_storage":{"get":{"summary":"Get statistics about files, grouped by secondary storage","operationId":"statistics_by_secondary_storage","description":"**API Key Scope**: statistics / by_secondary_storage","tags":["statistics"],"responses":{"200":{"$ref":"#/components/responses/by_secondary_storage"}},"parameters":[{"$ref":"#/components/parameters/solr_query"},{"$ref":"#/components/parameters/solr_filter_query"},{"$ref":"#/components/parameters/facet_date_attr"},{"$ref":"#/components/parameters/file_facet_sort"},{"$ref":"#/components/parameters/file_facet_limit"}]}}}}
```

## Get statistics about files, grouped by secondary Tape

> \*\*API Key Scope\*\*: statistics / by\_secondary\_tape

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"by_secondary_tape":{"description":"Statistics grouped by secondary tapes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/by_secondary_tape_facet"}}}}},"schemas":{"by_secondary_tape_facet":{"allOf":[{"$ref":"#/components/schemas/file_facet"},{"type":"object","properties":{"sec_tape_library_name_s":{"$ref":"#/components/schemas/by_date_facet_buckets"},"sec_tape_barcode_s":{"$ref":"#/components/schemas/by_date_facet_buckets"},"sec_pool_name_s":{"$ref":"#/components/schemas/by_date_facet_buckets"}}}]},"file_facet":{"allOf":[{"$ref":"#/components/schemas/default_facet"},{"type":"object","properties":{"files_count":{"type":"integer","readOnly":true},"file_size_sum":{"type":"integer","readOnly":true},"cost":{"type":"number","readOnly":true}}}]},"default_facet":{"type":"object","properties":{"count":{"type":"integer","readOnly":true}}},"by_date_facet_buckets":{"type":"object","properties":{"buckets":{"type":"array","items":{"$ref":"#/components/schemas/by_date_facet_bucket"}}}},"by_date_facet_bucket":{"allOf":[{"type":"object","properties":{"val":{"description":"integer or string"}}},{"$ref":"#/components/schemas/by_date_facet"}]},"by_date_facet":{"allOf":[{"$ref":"#/components/schemas/file_facet"},{"$ref":"#/components/schemas/date_to_file_facets"}]},"date_to_file_facets":{"type":"object","properties":{"in_cache":{"$ref":"#/components/schemas/file_facet"},"less_1_week":{"$ref":"#/components/schemas/file_facet"},"less_1_month":{"$ref":"#/components/schemas/file_facet"},"less_3_months":{"$ref":"#/components/schemas/file_facet"},"less_6_months":{"$ref":"#/components/schemas/file_facet"},"less_1_year":{"$ref":"#/components/schemas/file_facet"},"less_2_years":{"$ref":"#/components/schemas/file_facet"},"more_2_years":{"$ref":"#/components/schemas/file_facet"}}}},"parameters":{"solr_query":{"name":"q","in":"query","description":"Solr query","schema":{"type":"string"}},"solr_filter_query":{"name":"fq","in":"query","description":"Solr filter query\n\nMultiple query can be separated by `|`.","style":"pipeDelimited","schema":{"type":"array","items":{"type":"string"}}},"facet_date_attr":{"name":"date_attr","in":"query","description":"Type of date to facet on","schema":{"type":"string","enum":["file_change_dt","file_modification_dt","file_access_dt"]}},"file_facet_sort":{"name":"sort","in":"query","description":"Sort results of facet","schema":{"type":"string","default":"count","enum":["count","files_count","file_size_sum","cost"]}},"file_facet_limit":{"name":"limit","in":"query","description":"Limit results of facet","schema":{"type":"integer","default":10}}}},"paths":{"/statistics/by_secondary_tape":{"get":{"summary":"Get statistics about files, grouped by secondary Tape","operationId":"statistics_by_secondary_tape","description":"**API Key Scope**: statistics / by_secondary_tape","tags":["statistics"],"responses":{"200":{"$ref":"#/components/responses/by_secondary_tape"}},"parameters":[{"$ref":"#/components/parameters/solr_query"},{"$ref":"#/components/parameters/solr_filter_query"},{"$ref":"#/components/parameters/facet_date_attr"},{"$ref":"#/components/parameters/file_facet_sort"},{"$ref":"#/components/parameters/file_facet_limit"}]}}}}
```

## Get statistics about files, grouped by secondary Cloud

> \*\*API Key Scope\*\*: statistics / by\_secondary\_cloud

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"by_secondary_cloud":{"description":"Statistics grouped by secondary clouds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/by_secondary_cloud_facet"}}}}},"schemas":{"by_secondary_cloud_facet":{"allOf":[{"$ref":"#/components/schemas/file_facet"},{"type":"object","properties":{"sec_cloud_connector_name_s":{"$ref":"#/components/schemas/by_date_facet_buckets"},"sec_cloud_bucket_name_s":{"$ref":"#/components/schemas/by_date_facet_buckets"},"sec_pool_name_s":{"$ref":"#/components/schemas/by_date_facet_buckets"}}}]},"file_facet":{"allOf":[{"$ref":"#/components/schemas/default_facet"},{"type":"object","properties":{"files_count":{"type":"integer","readOnly":true},"file_size_sum":{"type":"integer","readOnly":true},"cost":{"type":"number","readOnly":true}}}]},"default_facet":{"type":"object","properties":{"count":{"type":"integer","readOnly":true}}},"by_date_facet_buckets":{"type":"object","properties":{"buckets":{"type":"array","items":{"$ref":"#/components/schemas/by_date_facet_bucket"}}}},"by_date_facet_bucket":{"allOf":[{"type":"object","properties":{"val":{"description":"integer or string"}}},{"$ref":"#/components/schemas/by_date_facet"}]},"by_date_facet":{"allOf":[{"$ref":"#/components/schemas/file_facet"},{"$ref":"#/components/schemas/date_to_file_facets"}]},"date_to_file_facets":{"type":"object","properties":{"in_cache":{"$ref":"#/components/schemas/file_facet"},"less_1_week":{"$ref":"#/components/schemas/file_facet"},"less_1_month":{"$ref":"#/components/schemas/file_facet"},"less_3_months":{"$ref":"#/components/schemas/file_facet"},"less_6_months":{"$ref":"#/components/schemas/file_facet"},"less_1_year":{"$ref":"#/components/schemas/file_facet"},"less_2_years":{"$ref":"#/components/schemas/file_facet"},"more_2_years":{"$ref":"#/components/schemas/file_facet"}}}},"parameters":{"solr_query":{"name":"q","in":"query","description":"Solr query","schema":{"type":"string"}},"solr_filter_query":{"name":"fq","in":"query","description":"Solr filter query\n\nMultiple query can be separated by `|`.","style":"pipeDelimited","schema":{"type":"array","items":{"type":"string"}}},"facet_date_attr":{"name":"date_attr","in":"query","description":"Type of date to facet on","schema":{"type":"string","enum":["file_change_dt","file_modification_dt","file_access_dt"]}},"file_facet_sort":{"name":"sort","in":"query","description":"Sort results of facet","schema":{"type":"string","default":"count","enum":["count","files_count","file_size_sum","cost"]}},"file_facet_limit":{"name":"limit","in":"query","description":"Limit results of facet","schema":{"type":"integer","default":10}}}},"paths":{"/statistics/by_secondary_cloud":{"get":{"summary":"Get statistics about files, grouped by secondary Cloud","operationId":"statistics_by_secondary_cloud","description":"**API Key Scope**: statistics / by_secondary_cloud","tags":["statistics"],"responses":{"200":{"$ref":"#/components/responses/by_secondary_cloud"}},"parameters":[{"$ref":"#/components/parameters/solr_query"},{"$ref":"#/components/parameters/solr_filter_query"},{"$ref":"#/components/parameters/facet_date_attr"},{"$ref":"#/components/parameters/file_facet_sort"},{"$ref":"#/components/parameters/file_facet_limit"}]}}}}
```

## Get statistics about files, grouped by secondary NAS

> \*\*API Key Scope\*\*: statistics / by\_secondary\_nas

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"by_secondary_nas":{"description":"Statistics grouped by secondary NAS.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/by_secondary_nas_facet"}}}}},"schemas":{"by_secondary_nas_facet":{"allOf":[{"$ref":"#/components/schemas/file_facet"},{"type":"object","properties":{"sec_nas_name_s":{"$ref":"#/components/schemas/by_date_facet_buckets"},"sec_nas_share_name_s":{"$ref":"#/components/schemas/by_date_facet_buckets"},"sec_pool_name_s":{"$ref":"#/components/schemas/by_date_facet_buckets"}}}]},"file_facet":{"allOf":[{"$ref":"#/components/schemas/default_facet"},{"type":"object","properties":{"files_count":{"type":"integer","readOnly":true},"file_size_sum":{"type":"integer","readOnly":true},"cost":{"type":"number","readOnly":true}}}]},"default_facet":{"type":"object","properties":{"count":{"type":"integer","readOnly":true}}},"by_date_facet_buckets":{"type":"object","properties":{"buckets":{"type":"array","items":{"$ref":"#/components/schemas/by_date_facet_bucket"}}}},"by_date_facet_bucket":{"allOf":[{"type":"object","properties":{"val":{"description":"integer or string"}}},{"$ref":"#/components/schemas/by_date_facet"}]},"by_date_facet":{"allOf":[{"$ref":"#/components/schemas/file_facet"},{"$ref":"#/components/schemas/date_to_file_facets"}]},"date_to_file_facets":{"type":"object","properties":{"in_cache":{"$ref":"#/components/schemas/file_facet"},"less_1_week":{"$ref":"#/components/schemas/file_facet"},"less_1_month":{"$ref":"#/components/schemas/file_facet"},"less_3_months":{"$ref":"#/components/schemas/file_facet"},"less_6_months":{"$ref":"#/components/schemas/file_facet"},"less_1_year":{"$ref":"#/components/schemas/file_facet"},"less_2_years":{"$ref":"#/components/schemas/file_facet"},"more_2_years":{"$ref":"#/components/schemas/file_facet"}}}},"parameters":{"solr_query":{"name":"q","in":"query","description":"Solr query","schema":{"type":"string"}},"solr_filter_query":{"name":"fq","in":"query","description":"Solr filter query\n\nMultiple query can be separated by `|`.","style":"pipeDelimited","schema":{"type":"array","items":{"type":"string"}}},"facet_date_attr":{"name":"date_attr","in":"query","description":"Type of date to facet on","schema":{"type":"string","enum":["file_change_dt","file_modification_dt","file_access_dt"]}},"file_facet_sort":{"name":"sort","in":"query","description":"Sort results of facet","schema":{"type":"string","default":"count","enum":["count","files_count","file_size_sum","cost"]}},"file_facet_limit":{"name":"limit","in":"query","description":"Limit results of facet","schema":{"type":"integer","default":10}}}},"paths":{"/statistics/by_secondary_nas":{"get":{"summary":"Get statistics about files, grouped by secondary NAS","operationId":"statistics_by_secondary_nas","description":"**API Key Scope**: statistics / by_secondary_nas","tags":["statistics"],"responses":{"200":{"$ref":"#/components/responses/by_secondary_nas"}},"parameters":[{"$ref":"#/components/parameters/solr_query"},{"$ref":"#/components/parameters/solr_filter_query"},{"$ref":"#/components/parameters/facet_date_attr"},{"$ref":"#/components/parameters/file_facet_sort"},{"$ref":"#/components/parameters/file_facet_limit"}]}}}}
```

## Get statistics about files, grouped by owner (user)

> \*\*API Key Scope\*\*: statistics / by\_user\_owner

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"by_user_owner":{"description":"Statistics grouped by users.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/by_user_owner_facet"}}}}},"schemas":{"by_user_owner_facet":{"allOf":[{"$ref":"#/components/schemas/file_facet"},{"type":"object","properties":{"user_owner_id_l":{"$ref":"#/components/schemas/by_date_facet_buckets"}}}]},"file_facet":{"allOf":[{"$ref":"#/components/schemas/default_facet"},{"type":"object","properties":{"files_count":{"type":"integer","readOnly":true},"file_size_sum":{"type":"integer","readOnly":true},"cost":{"type":"number","readOnly":true}}}]},"default_facet":{"type":"object","properties":{"count":{"type":"integer","readOnly":true}}},"by_date_facet_buckets":{"type":"object","properties":{"buckets":{"type":"array","items":{"$ref":"#/components/schemas/by_date_facet_bucket"}}}},"by_date_facet_bucket":{"allOf":[{"type":"object","properties":{"val":{"description":"integer or string"}}},{"$ref":"#/components/schemas/by_date_facet"}]},"by_date_facet":{"allOf":[{"$ref":"#/components/schemas/file_facet"},{"$ref":"#/components/schemas/date_to_file_facets"}]},"date_to_file_facets":{"type":"object","properties":{"in_cache":{"$ref":"#/components/schemas/file_facet"},"less_1_week":{"$ref":"#/components/schemas/file_facet"},"less_1_month":{"$ref":"#/components/schemas/file_facet"},"less_3_months":{"$ref":"#/components/schemas/file_facet"},"less_6_months":{"$ref":"#/components/schemas/file_facet"},"less_1_year":{"$ref":"#/components/schemas/file_facet"},"less_2_years":{"$ref":"#/components/schemas/file_facet"},"more_2_years":{"$ref":"#/components/schemas/file_facet"}}}},"parameters":{"solr_query":{"name":"q","in":"query","description":"Solr query","schema":{"type":"string"}},"solr_filter_query":{"name":"fq","in":"query","description":"Solr filter query\n\nMultiple query can be separated by `|`.","style":"pipeDelimited","schema":{"type":"array","items":{"type":"string"}}},"facet_date_attr":{"name":"date_attr","in":"query","description":"Type of date to facet on","schema":{"type":"string","enum":["file_change_dt","file_modification_dt","file_access_dt"]}},"file_facet_sort":{"name":"sort","in":"query","description":"Sort results of facet","schema":{"type":"string","default":"count","enum":["count","files_count","file_size_sum","cost"]}},"file_facet_limit":{"name":"limit","in":"query","description":"Limit results of facet","schema":{"type":"integer","default":10}}}},"paths":{"/statistics/by_user_owner":{"get":{"summary":"Get statistics about files, grouped by owner (user)","operationId":"statistics_by_user_owner","description":"**API Key Scope**: statistics / by_user_owner","tags":["statistics"],"responses":{"200":{"$ref":"#/components/responses/by_user_owner"}},"parameters":[{"$ref":"#/components/parameters/solr_query"},{"$ref":"#/components/parameters/solr_filter_query"},{"$ref":"#/components/parameters/facet_date_attr"},{"$ref":"#/components/parameters/file_facet_sort"},{"$ref":"#/components/parameters/file_facet_limit"}]}}}}
```

## Get statistics about files, grouped by owner (group)

> \*\*API Key Scope\*\*: statistics / by\_group\_owner

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"by_group_owner":{"description":"Statistics grouped by user groups.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/by_group_owner_facet"}}}}},"schemas":{"by_group_owner_facet":{"allOf":[{"$ref":"#/components/schemas/file_facet"},{"type":"object","properties":{"group_owner_id_l":{"$ref":"#/components/schemas/by_date_facet_buckets"}}}]},"file_facet":{"allOf":[{"$ref":"#/components/schemas/default_facet"},{"type":"object","properties":{"files_count":{"type":"integer","readOnly":true},"file_size_sum":{"type":"integer","readOnly":true},"cost":{"type":"number","readOnly":true}}}]},"default_facet":{"type":"object","properties":{"count":{"type":"integer","readOnly":true}}},"by_date_facet_buckets":{"type":"object","properties":{"buckets":{"type":"array","items":{"$ref":"#/components/schemas/by_date_facet_bucket"}}}},"by_date_facet_bucket":{"allOf":[{"type":"object","properties":{"val":{"description":"integer or string"}}},{"$ref":"#/components/schemas/by_date_facet"}]},"by_date_facet":{"allOf":[{"$ref":"#/components/schemas/file_facet"},{"$ref":"#/components/schemas/date_to_file_facets"}]},"date_to_file_facets":{"type":"object","properties":{"in_cache":{"$ref":"#/components/schemas/file_facet"},"less_1_week":{"$ref":"#/components/schemas/file_facet"},"less_1_month":{"$ref":"#/components/schemas/file_facet"},"less_3_months":{"$ref":"#/components/schemas/file_facet"},"less_6_months":{"$ref":"#/components/schemas/file_facet"},"less_1_year":{"$ref":"#/components/schemas/file_facet"},"less_2_years":{"$ref":"#/components/schemas/file_facet"},"more_2_years":{"$ref":"#/components/schemas/file_facet"}}}},"parameters":{"solr_query":{"name":"q","in":"query","description":"Solr query","schema":{"type":"string"}},"solr_filter_query":{"name":"fq","in":"query","description":"Solr filter query\n\nMultiple query can be separated by `|`.","style":"pipeDelimited","schema":{"type":"array","items":{"type":"string"}}},"facet_date_attr":{"name":"date_attr","in":"query","description":"Type of date to facet on","schema":{"type":"string","enum":["file_change_dt","file_modification_dt","file_access_dt"]}},"file_facet_sort":{"name":"sort","in":"query","description":"Sort results of facet","schema":{"type":"string","default":"count","enum":["count","files_count","file_size_sum","cost"]}},"file_facet_limit":{"name":"limit","in":"query","description":"Limit results of facet","schema":{"type":"integer","default":10}}}},"paths":{"/statistics/by_group_owner":{"get":{"summary":"Get statistics about files, grouped by owner (group)","operationId":"statistics_by_group_owner","description":"**API Key Scope**: statistics / by_group_owner","tags":["statistics"],"responses":{"200":{"$ref":"#/components/responses/by_group_owner"}},"parameters":[{"$ref":"#/components/parameters/solr_query"},{"$ref":"#/components/parameters/solr_filter_query"},{"$ref":"#/components/parameters/facet_date_attr"},{"$ref":"#/components/parameters/file_facet_sort"},{"$ref":"#/components/parameters/file_facet_limit"}]}}}}
```

## Get statistics about files, grouped by file extension

> \*\*API Key Scope\*\*: statistics / by\_file\_extension

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"by_file_extension":{"description":"Statistics grouped by file extensions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/by_file_extension_facet"}}}}},"schemas":{"by_file_extension_facet":{"allOf":[{"$ref":"#/components/schemas/file_facet"},{"type":"object","properties":{"file_extension_s":{"$ref":"#/components/schemas/by_date_facet_buckets"}}}]},"file_facet":{"allOf":[{"$ref":"#/components/schemas/default_facet"},{"type":"object","properties":{"files_count":{"type":"integer","readOnly":true},"file_size_sum":{"type":"integer","readOnly":true},"cost":{"type":"number","readOnly":true}}}]},"default_facet":{"type":"object","properties":{"count":{"type":"integer","readOnly":true}}},"by_date_facet_buckets":{"type":"object","properties":{"buckets":{"type":"array","items":{"$ref":"#/components/schemas/by_date_facet_bucket"}}}},"by_date_facet_bucket":{"allOf":[{"type":"object","properties":{"val":{"description":"integer or string"}}},{"$ref":"#/components/schemas/by_date_facet"}]},"by_date_facet":{"allOf":[{"$ref":"#/components/schemas/file_facet"},{"$ref":"#/components/schemas/date_to_file_facets"}]},"date_to_file_facets":{"type":"object","properties":{"in_cache":{"$ref":"#/components/schemas/file_facet"},"less_1_week":{"$ref":"#/components/schemas/file_facet"},"less_1_month":{"$ref":"#/components/schemas/file_facet"},"less_3_months":{"$ref":"#/components/schemas/file_facet"},"less_6_months":{"$ref":"#/components/schemas/file_facet"},"less_1_year":{"$ref":"#/components/schemas/file_facet"},"less_2_years":{"$ref":"#/components/schemas/file_facet"},"more_2_years":{"$ref":"#/components/schemas/file_facet"}}}},"parameters":{"solr_query":{"name":"q","in":"query","description":"Solr query","schema":{"type":"string"}},"solr_filter_query":{"name":"fq","in":"query","description":"Solr filter query\n\nMultiple query can be separated by `|`.","style":"pipeDelimited","schema":{"type":"array","items":{"type":"string"}}},"facet_date_attr":{"name":"date_attr","in":"query","description":"Type of date to facet on","schema":{"type":"string","enum":["file_change_dt","file_modification_dt","file_access_dt"]}},"file_facet_sort":{"name":"sort","in":"query","description":"Sort results of facet","schema":{"type":"string","default":"count","enum":["count","files_count","file_size_sum","cost"]}},"file_facet_limit":{"name":"limit","in":"query","description":"Limit results of facet","schema":{"type":"integer","default":10}}}},"paths":{"/statistics/by_file_extension":{"get":{"summary":"Get statistics about files, grouped by file extension","operationId":"statistics_by_file_extension","description":"**API Key Scope**: statistics / by_file_extension","tags":["statistics"],"responses":{"200":{"$ref":"#/components/responses/by_file_extension"}},"parameters":[{"$ref":"#/components/parameters/solr_query"},{"$ref":"#/components/parameters/solr_filter_query"},{"$ref":"#/components/parameters/facet_date_attr"},{"$ref":"#/components/parameters/file_facet_sort"},{"$ref":"#/components/parameters/file_facet_limit"}]}}}}
```

## Get statistics about files, grouped by size

> \*\*API Key Scope\*\*: statistics / by\_size

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"by_size":{"description":"Statistics grouped by sizes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/by_size_facet"}}}}},"schemas":{"by_size_facet":{"allOf":[{"$ref":"#/components/schemas/file_facet"},{"$ref":"#/components/schemas/size_to_date_facets"}]},"file_facet":{"allOf":[{"$ref":"#/components/schemas/default_facet"},{"type":"object","properties":{"files_count":{"type":"integer","readOnly":true},"file_size_sum":{"type":"integer","readOnly":true},"cost":{"type":"number","readOnly":true}}}]},"default_facet":{"type":"object","properties":{"count":{"type":"integer","readOnly":true}}},"size_to_date_facets":{"type":"object","properties":{"less_100_kb":{"$ref":"#/components/schemas/by_date_facet"},"less_1_mb":{"$ref":"#/components/schemas/by_date_facet"},"less_10_mb":{"$ref":"#/components/schemas/by_date_facet"},"less_100_mb":{"$ref":"#/components/schemas/by_date_facet"},"less_1_gb":{"$ref":"#/components/schemas/by_date_facet"},"less_10_gb":{"$ref":"#/components/schemas/by_date_facet"},"less_100_gb":{"$ref":"#/components/schemas/by_date_facet"},"more_100_gb":{"$ref":"#/components/schemas/by_date_facet"}}},"by_date_facet":{"allOf":[{"$ref":"#/components/schemas/file_facet"},{"$ref":"#/components/schemas/date_to_file_facets"}]},"date_to_file_facets":{"type":"object","properties":{"in_cache":{"$ref":"#/components/schemas/file_facet"},"less_1_week":{"$ref":"#/components/schemas/file_facet"},"less_1_month":{"$ref":"#/components/schemas/file_facet"},"less_3_months":{"$ref":"#/components/schemas/file_facet"},"less_6_months":{"$ref":"#/components/schemas/file_facet"},"less_1_year":{"$ref":"#/components/schemas/file_facet"},"less_2_years":{"$ref":"#/components/schemas/file_facet"},"more_2_years":{"$ref":"#/components/schemas/file_facet"}}}},"parameters":{"solr_query":{"name":"q","in":"query","description":"Solr query","schema":{"type":"string"}},"solr_filter_query":{"name":"fq","in":"query","description":"Solr filter query\n\nMultiple query can be separated by `|`.","style":"pipeDelimited","schema":{"type":"array","items":{"type":"string"}}},"facet_date_attr":{"name":"date_attr","in":"query","description":"Type of date to facet on","schema":{"type":"string","enum":["file_change_dt","file_modification_dt","file_access_dt"]}}}},"paths":{"/statistics/by_size":{"get":{"summary":"Get statistics about files, grouped by size","operationId":"statistics_by_size","description":"**API Key Scope**: statistics / by_size","tags":["statistics"],"responses":{"200":{"$ref":"#/components/responses/by_size"}},"parameters":[{"$ref":"#/components/parameters/solr_query"},{"$ref":"#/components/parameters/solr_filter_query"},{"$ref":"#/components/parameters/facet_date_attr"}]}}}}
```

## Get statistics about files, grouped by metadata

> \*\*API Key Scope\*\*: statistics / by\_metadata

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"by_metadata":{"description":"Statistics grouped by metadata.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/by_metadata_facet"}}}}},"schemas":{"by_metadata_facet":{"allOf":[{"$ref":"#/components/schemas/by_date_facet"},{"type":"object","properties":{"meta_key_s":{"$ref":"#/components/schemas/by_metadata_key_buckets"}}}]},"by_date_facet":{"allOf":[{"$ref":"#/components/schemas/file_facet"},{"$ref":"#/components/schemas/date_to_file_facets"}]},"file_facet":{"allOf":[{"$ref":"#/components/schemas/default_facet"},{"type":"object","properties":{"files_count":{"type":"integer","readOnly":true},"file_size_sum":{"type":"integer","readOnly":true},"cost":{"type":"number","readOnly":true}}}]},"default_facet":{"type":"object","properties":{"count":{"type":"integer","readOnly":true}}},"date_to_file_facets":{"type":"object","properties":{"in_cache":{"$ref":"#/components/schemas/file_facet"},"less_1_week":{"$ref":"#/components/schemas/file_facet"},"less_1_month":{"$ref":"#/components/schemas/file_facet"},"less_3_months":{"$ref":"#/components/schemas/file_facet"},"less_6_months":{"$ref":"#/components/schemas/file_facet"},"less_1_year":{"$ref":"#/components/schemas/file_facet"},"less_2_years":{"$ref":"#/components/schemas/file_facet"},"more_2_years":{"$ref":"#/components/schemas/file_facet"}}},"by_metadata_key_buckets":{"type":"object","properties":{"buckets":{"type":"array","items":{"$ref":"#/components/schemas/by_metadata_key_bucket"}}}},"by_metadata_key_bucket":{"allOf":[{"$ref":"#/components/schemas/by_metadata_bucket"},{"type":"object","properties":{"meta_value_t":{"$ref":"#/components/schemas/by_metadata_value_buckets"}}}]},"by_metadata_bucket":{"allOf":[{"type":"object","properties":{"val":{"type":"string"}}},{"$ref":"#/components/schemas/by_date_facet"}]},"by_metadata_value_buckets":{"type":"object","properties":{"buckets":{"type":"array","items":{"$ref":"#/components/schemas/by_metadata_bucket"}}}}},"parameters":{"solr_query":{"name":"q","in":"query","description":"Solr query","schema":{"type":"string"}},"solr_filter_query":{"name":"fq","in":"query","description":"Solr filter query\n\nMultiple query can be separated by `|`.","style":"pipeDelimited","schema":{"type":"array","items":{"type":"string"}}},"facet_date_attr":{"name":"date_attr","in":"query","description":"Type of date to facet on","schema":{"type":"string","enum":["file_change_dt","file_modification_dt","file_access_dt"]}},"file_facet_sort":{"name":"sort","in":"query","description":"Sort results of facet","schema":{"type":"string","default":"count","enum":["count","files_count","file_size_sum","cost"]}},"file_facet_limit":{"name":"limit","in":"query","description":"Limit results of facet","schema":{"type":"integer","default":10}}}},"paths":{"/statistics/by_metadata":{"get":{"summary":"Get statistics about files, grouped by metadata","operationId":"statistics_by_metadata","description":"**API Key Scope**: statistics / by_metadata","tags":["statistics"],"responses":{"200":{"$ref":"#/components/responses/by_metadata"}},"parameters":[{"$ref":"#/components/parameters/solr_query"},{"$ref":"#/components/parameters/solr_filter_query"},{"$ref":"#/components/parameters/facet_date_attr"},{"$ref":"#/components/parameters/file_facet_sort"},{"$ref":"#/components/parameters/file_facet_limit"}]}}}}
```

## Get statistics about tasks executions, grouped by workflow

> \*\*API Key Scope\*\*: statistics / task\_by\_workflow

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"task_by_workflow":{"description":"Statistics for tasks grouped by workflows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/by_task_workflow_facet"}}}}},"schemas":{"by_task_workflow_facet":{"allOf":[{"$ref":"#/components/schemas/task_facet"},{"type":"object","properties":{"type":{"$ref":"#/components/schemas/task_by_workflow_buckets"}}}]},"task_facet":{"allOf":[{"$ref":"#/components/schemas/default_facet"},{"type":"object","properties":{"to_process_size_sum":{"type":"integer","readOnly":true},"processed_size_sum":{"type":"integer","readOnly":true},"to_process_files_sum":{"type":"integer","readOnly":true},"processed_files_sum":{"type":"integer","readOnly":true},"finalized_files_sum":{"type":"integer","readOnly":true},"bandwidth_avg":{"type":"integer","readOnly":true},"bandwidth_count":{"type":"integer","readOnly":true},"tasks_count":{"type":"integer","readOnly":true}}}]},"default_facet":{"type":"object","properties":{"count":{"type":"integer","readOnly":true}}},"task_by_workflow_buckets":{"type":"object","properties":{"buckets":{"type":"array","items":{"$ref":"#/components/schemas/task_by_workflow_bucket"}}}},"task_by_workflow_bucket":{"allOf":[{"type":"object","properties":{"val":{"type":"integer"},"action":{"$ref":"#/components/schemas/task_facet_buckets"}}},{"$ref":"#/components/schemas/task_facet"}]},"task_facet_buckets":{"type":"object","properties":{"buckets":{"type":"array","items":{"$ref":"#/components/schemas/task_facet_bucket"}}}},"task_facet_bucket":{"allOf":[{"type":"object","properties":{"val":{"type":"integer"}}},{"$ref":"#/components/schemas/task_facet"}]}},"parameters":{"solr_query":{"name":"q","in":"query","description":"Solr query","schema":{"type":"string"}},"solr_filter_query":{"name":"fq","in":"query","description":"Solr filter query\n\nMultiple query can be separated by `|`.","style":"pipeDelimited","schema":{"type":"array","items":{"type":"string"}}}}},"paths":{"/statistics/task_by_workflow":{"get":{"summary":"Get statistics about tasks executions, grouped by workflow","operationId":"statistics_task_by_workflow","description":"**API Key Scope**: statistics / task_by_workflow","tags":["statistics"],"responses":{"200":{"$ref":"#/components/responses/task_by_workflow"}},"parameters":[{"$ref":"#/components/parameters/solr_query"},{"$ref":"#/components/parameters/solr_filter_query"}]}}}}
```

## Get statistics about tasks executions, grouped by status

> \*\*API Key Scope\*\*: statistics / task\_by\_status

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"task_by_status":{"description":"Statistics for tasks grouped by status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/by_task_status_facet"}}}}},"schemas":{"by_task_status_facet":{"allOf":[{"$ref":"#/components/schemas/task_facet"},{"type":"object","properties":{"status":{"$ref":"#/components/schemas/task_facet_buckets"}}}]},"task_facet":{"allOf":[{"$ref":"#/components/schemas/default_facet"},{"type":"object","properties":{"to_process_size_sum":{"type":"integer","readOnly":true},"processed_size_sum":{"type":"integer","readOnly":true},"to_process_files_sum":{"type":"integer","readOnly":true},"processed_files_sum":{"type":"integer","readOnly":true},"finalized_files_sum":{"type":"integer","readOnly":true},"bandwidth_avg":{"type":"integer","readOnly":true},"bandwidth_count":{"type":"integer","readOnly":true},"tasks_count":{"type":"integer","readOnly":true}}}]},"default_facet":{"type":"object","properties":{"count":{"type":"integer","readOnly":true}}},"task_facet_buckets":{"type":"object","properties":{"buckets":{"type":"array","items":{"$ref":"#/components/schemas/task_facet_bucket"}}}},"task_facet_bucket":{"allOf":[{"type":"object","properties":{"val":{"type":"integer"}}},{"$ref":"#/components/schemas/task_facet"}]}},"parameters":{"solr_query":{"name":"q","in":"query","description":"Solr query","schema":{"type":"string"}},"solr_filter_query":{"name":"fq","in":"query","description":"Solr filter query\n\nMultiple query can be separated by `|`.","style":"pipeDelimited","schema":{"type":"array","items":{"type":"string"}}}}},"paths":{"/statistics/task_by_status":{"get":{"summary":"Get statistics about tasks executions, grouped by status","operationId":"statistics_task_by_status","description":"**API Key Scope**: statistics / task_by_status","tags":["statistics"],"responses":{"200":{"$ref":"#/components/responses/task_by_status"}},"parameters":[{"$ref":"#/components/parameters/solr_query"},{"$ref":"#/components/parameters/solr_filter_query"}]}}}}
```

## Get statistics about tasks executions, grouped by source and destination

> \*\*API Key Scope\*\*: statistics / task\_by\_storage

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"task_by_storage":{"description":"Statistics for tasks grouped by storages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/by_task_storage_facet"}}}}},"schemas":{"by_task_storage_facet":{"allOf":[{"$ref":"#/components/schemas/task_facet"},{"type":"object","properties":{"source":{"$ref":"#/components/schemas/task_facet_buckets"},"destination":{"$ref":"#/components/schemas/task_facet_buckets"}}}]},"task_facet":{"allOf":[{"$ref":"#/components/schemas/default_facet"},{"type":"object","properties":{"to_process_size_sum":{"type":"integer","readOnly":true},"processed_size_sum":{"type":"integer","readOnly":true},"to_process_files_sum":{"type":"integer","readOnly":true},"processed_files_sum":{"type":"integer","readOnly":true},"finalized_files_sum":{"type":"integer","readOnly":true},"bandwidth_avg":{"type":"integer","readOnly":true},"bandwidth_count":{"type":"integer","readOnly":true},"tasks_count":{"type":"integer","readOnly":true}}}]},"default_facet":{"type":"object","properties":{"count":{"type":"integer","readOnly":true}}},"task_facet_buckets":{"type":"object","properties":{"buckets":{"type":"array","items":{"$ref":"#/components/schemas/task_facet_bucket"}}}},"task_facet_bucket":{"allOf":[{"type":"object","properties":{"val":{"type":"integer"}}},{"$ref":"#/components/schemas/task_facet"}]}},"parameters":{"solr_query":{"name":"q","in":"query","description":"Solr query","schema":{"type":"string"}},"solr_filter_query":{"name":"fq","in":"query","description":"Solr filter query\n\nMultiple query can be separated by `|`.","style":"pipeDelimited","schema":{"type":"array","items":{"type":"string"}}}}},"paths":{"/statistics/task_by_storage":{"get":{"summary":"Get statistics about tasks executions, grouped by source and destination","operationId":"statistics_task_by_storage","description":"**API Key Scope**: statistics / task_by_storage","tags":["statistics"],"responses":{"200":{"$ref":"#/components/responses/task_by_storage"}},"parameters":[{"$ref":"#/components/parameters/solr_query"},{"$ref":"#/components/parameters/solr_filter_query"}]}}}}
```

## Get statistics about tasks executions, grouped by metadata

> \*\*API Key Scope\*\*: statistics / task\_by\_metadata

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"task_by_metadata":{"description":"Statistics for tasks grouped by metadata.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/by_task_metadata_facet"}}}}},"schemas":{"by_task_metadata_facet":{"allOf":[{"$ref":"#/components/schemas/task_facet"},{"type":"object","properties":{"meta_key_s":{"$ref":"#/components/schemas/task_facet_metadata_key_buckets"}}}]},"task_facet":{"allOf":[{"$ref":"#/components/schemas/default_facet"},{"type":"object","properties":{"to_process_size_sum":{"type":"integer","readOnly":true},"processed_size_sum":{"type":"integer","readOnly":true},"to_process_files_sum":{"type":"integer","readOnly":true},"processed_files_sum":{"type":"integer","readOnly":true},"finalized_files_sum":{"type":"integer","readOnly":true},"bandwidth_avg":{"type":"integer","readOnly":true},"bandwidth_count":{"type":"integer","readOnly":true},"tasks_count":{"type":"integer","readOnly":true}}}]},"default_facet":{"type":"object","properties":{"count":{"type":"integer","readOnly":true}}},"task_facet_metadata_key_buckets":{"type":"object","properties":{"buckets":{"type":"array","items":{"$ref":"#/components/schemas/task_facet_metadata_key_bucket"}}}},"task_facet_metadata_key_bucket":{"allOf":[{"$ref":"#/components/schemas/task_facet_metadata_bucket"},{"type":"object","properties":{"meta_value_t":{"$ref":"#/components/schemas/task_facet_metadata_value_buckets"}}}]},"task_facet_metadata_bucket":{"allOf":[{"type":"object","properties":{"val":{"type":"string"}}},{"$ref":"#/components/schemas/task_facet"}]},"task_facet_metadata_value_buckets":{"type":"object","properties":{"buckets":{"type":"array","items":{"$ref":"#/components/schemas/task_facet_metadata_bucket"}}}}},"parameters":{"solr_query":{"name":"q","in":"query","description":"Solr query","schema":{"type":"string"}},"solr_filter_query":{"name":"fq","in":"query","description":"Solr filter query\n\nMultiple query can be separated by `|`.","style":"pipeDelimited","schema":{"type":"array","items":{"type":"string"}}},"task_facet_sort":{"name":"sort","in":"query","description":"Sort results of facet on task","schema":{"type":"string","default":"count","enum":["count","tasks_count","to_process_size_sum","processed_size_sum","to_process_files_sum","processed_files_sum","finalized_files_sum","bandwidth_avg","bandwidth_count"]}},"file_facet_limit":{"name":"limit","in":"query","description":"Limit results of facet","schema":{"type":"integer","default":10}}}},"paths":{"/statistics/task_by_metadata":{"get":{"summary":"Get statistics about tasks executions, grouped by metadata","operationId":"statistics_task_by_metadata","description":"**API Key Scope**: statistics / task_by_metadata","tags":["statistics"],"responses":{"200":{"$ref":"#/components/responses/task_by_metadata"}},"parameters":[{"$ref":"#/components/parameters/solr_query"},{"$ref":"#/components/parameters/solr_filter_query"},{"$ref":"#/components/parameters/task_facet_sort"},{"$ref":"#/components/parameters/file_facet_limit"}]}}}}
```

## Get statistics about storages, grouped by types

> \*\*API Key Scope\*\*: statistics / storages

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"storage":{"description":"Statistics for storage.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/storage_facet"}}}}},"schemas":{"storage_facet":{"allOf":[{"$ref":"#/components/schemas/default_facet"},{"$ref":"#/components/schemas/storage_by_type_facets"}]},"default_facet":{"type":"object","properties":{"count":{"type":"integer","readOnly":true}}},"storage_by_type_facets":{"type":"object","properties":{"container":{"$ref":"#/components/schemas/default_facet"},"nas_share":{"$ref":"#/components/schemas/storage_nas_share_facets"},"cloud_bucket":{"$ref":"#/components/schemas/storage_cloud_bucket_facets"},"tape":{"$ref":"#/components/schemas/storage_tape_facets"},"pool":{"$ref":"#/components/schemas/storage_pool_facets"}}},"storage_nas_share_facets":{"allOf":[{"$ref":"#/components/schemas/default_facet"},{"$ref":"#/components/schemas/storage_nas_share_by_type_facets"}]},"storage_nas_share_by_type_facets":{"type":"object","properties":{"nas_type_i":{"$ref":"#/components/schemas/by_type_facet_buckets"},"pool_type_i":{"$ref":"#/components/schemas/by_type_facet_buckets"}}},"by_type_facet_buckets":{"type":"object","properties":{"buckets":{"type":"array","items":{"$ref":"#/components/schemas/by_type_facet_bucket"}}}},"by_type_facet_bucket":{"allOf":[{"type":"object","properties":{"val":{"type":"integer"}}},{"$ref":"#/components/schemas/default_facet"}]},"storage_cloud_bucket_facets":{"allOf":[{"$ref":"#/components/schemas/default_facet"},{"$ref":"#/components/schemas/storage_cloud_bucket_by_type_facets"}]},"storage_cloud_bucket_by_type_facets":{"type":"object","properties":{"cloud_connector_type_i":{"$ref":"#/components/schemas/by_type_facet_buckets"},"pool_type_i":{"$ref":"#/components/schemas/by_type_facet_buckets"}}},"storage_tape_facets":{"allOf":[{"$ref":"#/components/schemas/default_facet"},{"$ref":"#/components/schemas/storage_tape_by_type_facets"}]},"storage_tape_by_type_facets":{"type":"object","properties":{"tape_type_i":{"$ref":"#/components/schemas/by_type_facet_buckets"},"tape_library_type_i":{"$ref":"#/components/schemas/by_type_facet_buckets"},"pool_type_i":{"$ref":"#/components/schemas/by_type_facet_buckets"}}},"storage_pool_facets":{"allOf":[{"$ref":"#/components/schemas/default_facet"},{"$ref":"#/components/schemas/storage_pool_by_type_facets"}]},"storage_pool_by_type_facets":{"type":"object","properties":{"pool_type_i":{"$ref":"#/components/schemas/by_type_facet_buckets"},"pool_content_i":{"$ref":"#/components/schemas/by_type_facet_buckets"}}}},"parameters":{"solr_query":{"name":"q","in":"query","description":"Solr query","schema":{"type":"string"}},"solr_filter_query":{"name":"fq","in":"query","description":"Solr filter query\n\nMultiple query can be separated by `|`.","style":"pipeDelimited","schema":{"type":"array","items":{"type":"string"}}}}},"paths":{"/statistics/storage":{"get":{"summary":"Get statistics about storages, grouped by types","operationId":"statistics_storage","description":"**API Key Scope**: statistics / storages","tags":["statistics"],"responses":{"200":{"$ref":"#/components/responses/storage"}},"parameters":[{"$ref":"#/components/parameters/solr_query"},{"$ref":"#/components/parameters/solr_filter_query"}]}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nodeum.io/data-archiving/api-developers/api-reference-nodeum-data-archiving/statistics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
