Function name |
queryGrantedPermission(QueryGrantedPermission queryPermission) |
Description |
Users can look up all or part of the permission records authorized to them in three dimensions: the uid of the resource owner, whether it has been accessed and the permission type. |
Request Parameters |
No. |
Parameter |
Type |
Required |
Description |
1 |
|
QueryGrantedPermission |
Y |
|
QueryGrantedPermission |
1 |
uid |
String |
Y |
ID in the Hub |
2 |
grantUid |
String |
N |
Resource owner’s ID in the Hub |
3 |
grant |
Operation |
N |
Operation permissions: WRITE/UPDATE/READ |
4 |
flag |
UsedFlag |
N |
Access flag. YES: accessed; NO: Not accessed |
5 |
privateKey |
String |
Y |
Private key |
Response Parameters |
No. |
Parameter |
Type |
Required |
Description |
1 |
|
List<GrantPermissionInfo> |
Y |
Query result, list of Permissions |
GrantPermissionInfo |
1 |
url |
String |
Y |
The path of the stored resource |
2 |
grant |
String |
Y |
Operation permissions: WRITE/UPDATE/READ |
3 |
status |
Integer |
Y |
Delete flag. 0: Deleted; 1: Not deleted |
4 |
createTime |
LocalDateTime |
Y |
Authorization created time |
5 |
readTime |
LocalDateTime |
N |
Authorization used time |
6 |
flag |
UsedFlag |
Y |
Access flag. YES: accessed; NO: Not accessed |
7 |
ownerUid |
String |
Y |
Resource owner’s ID in the Hub |
8 |
key |
String |
N |
Ciphertext key |
9 |
ownerKey |
String |
N |
Owner’s key |