Skip to content
Snippets Groups Projects
Commit 30a5a999 authored by scs-ror's avatar scs-ror
Browse files

Version Mon 22 Mar 2021 04:56:02 PM UTC

parent da40c1f0
No related branches found
No related tags found
No related merge requests found
...@@ -15,11 +15,11 @@ is 6 requests per minute. Exceeding the limit will lead to your IP ...@@ -15,11 +15,11 @@ is 6 requests per minute. Exceeding the limit will lead to your IP
address being temporarily blocked from making further requests. The address being temporarily blocked from making further requests. The
block will automatically be lifted by waiting an hour. block will automatically be lifted by waiting an hour.
- api revision: `27f594e3 / 2021-03-17 10:54:56 +0100` - api revision: `5a830e3f / 2021-03-22 17:37:01 +0100`
- api version: `0.9-270-g27f594e` - api version: `0.9-271-g5a830e3`
- apidoc building date: `2021-03-17 09:56:37 +0000` - apidoc building date: `2021-03-22 16:55:30 +0000`
Summary Summary
------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------
...@@ -202,25 +202,23 @@ Request JSON Object ...@@ -202,25 +202,23 @@ Request JSON Object
- **it4ifreetoken** (*string*) – token - **it4ifreetoken** (*string*) – token
- **cluster** (*string*) – cluster id or ‘all’
Response JSON Object Response JSON Object
- **cluster** (*string*) – cluster id or ‘all’ - **type** (*string*) – type of quota
- **fs** (*string*) – filesystem name - **cluster\_or\_pid** (*string*) – cluster name of project identifier
- **hard\_quota\_files** (*int*) – file number quota - **fs** (*string*) – filesystem name
- **hard\_quota\_space** (*int*) – space quota (in Kb) - **usage\_space** (*int*) – amount of space used (in KB)
- **ldapuser** (*string*) – user id - **usage\_files** (*int*) – number of files on filesystem
- **updated\_at** (*string*) – date of last update - **hard\_quota\_space** (*int*) – space quota (in KB)
- **usage\_files** (*int*) – number of files on filesystem - **hard\_quota\_files** (*int*) – file number quota
- **usage\_space** (*int*) – amount of space used - **updated\_at** (*string*) – date of last update
Status Codes Status Codes
...@@ -233,7 +231,7 @@ Status Codes ...@@ -233,7 +231,7 @@ Status Codes
**Example request**: **Example request**:
curl -i -H "Content-Type:application/json" -X POST \ curl -i -H "Content-Type:application/json" -X POST \
--data '{"login":"johnsm", "it4ifreetoken": "abc","cluster":"all"}' \ --data '{"login":"johnsm", "it4ifreetoken": "abc"}' \
https://scs.it4i.cz/api/v1/fs-usage https://scs.it4i.cz/api/v1/fs-usage
**Example response**: **Example response**:
...@@ -243,11 +241,12 @@ Status Codes ...@@ -243,11 +241,12 @@ Status Codes
[ [
{ {
"cluster": "anselm", "login": "johnsm",
"type": "User Quota",
"cluster_or_pid": "salomon"
"fs": "/home", "fs": "/home",
"hard_quota_files": 500000, "hard_quota_files": 500000,
"hard_quota_space": 250000000, "hard_quota_space": 250000000,
"ldapuser": "johnsm",
"updated_at": "2019-03-11 13:25:16", "updated_at": "2019-03-11 13:25:16",
"usage_files": 19, "usage_files": 19,
"usage_space": 2620 "usage_space": 2620
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment