Receives quota for a given path.
String - path
Example:
{
'total': '6000000',
'used': '2404858',
'percent_used': '40%',
'percent_partition': '34%'
}
Code | Description |
---|---|
-1 | Dir doesn’t exists. |
-2 | Permission denied. |
Receives ACL for a given path.
String - path
Example:
{
'test:mygroup': 'l',
'www:www-user': 'rl',
'test': 'rlidwka'
}
Code | Description |
---|---|
-1 | Dir doesn’t exists. |
-2 | Permission denied. |
Set ACL for a given path.
String path
Boolean subdirs - set to true to apply recursively
Code | Description |
---|---|
-1 | Dir doesn’t exists. |
-2 | Permission denied. |
-3 | Incorrect rights. |
-4 | Incorrect user or group name. |
-5 | New group couldn’t be created. |
-6 | Rights couldn’t be set. |
Create an AFS group.
Code | Description |
---|---|
-1 | New group couldn’t be created, because you aren’t own it. |
-2 | Group already exists. |
-3 | New group couldn’t be created. |
Delete an AFS group.
Code | Description |
---|---|
-1 | Group couldn’t be deleted, because you aren’t own it. |
-2 | Group doesn’t exists. |
-3 | Group couldn’t be deleted. |
Retrieves members of an AFS group.
Code | Description |
---|---|
-1 | Members couldn’t be determined. |
Adds an user to an AFS group.
Example:
{
'group': 'test:testgroup',
'user': 'testuser1'
}
Code | Description |
---|---|
-1 | Group doesn’t exists. |
-2 | You aren’t own this group. |
-3 | User couldn’t be added. |
Deletes AFS group memberships for single users or the whole group inclusive the group.
Example:
[
'test:group', # deletes whole group
'test:group2/user1' # removes only user membership
]
Example:
{
'fail': true, # error occured
'result':
{
'test:testgroup1':true, # no error
'test:testgroup2/user2':true, # no error
'test:tesgroup3':false # error
}
}