Querying the File Access Count
Query the access count of a specified file.
Item |
Description |
|---|---|
API path |
/rest/kdc_agent/v1/proxy |
Request method |
POST |
Request Header
Parameter |
Value |
|---|---|
Content-Type |
application/json |
Accept |
application/json |
Request Body
Parameter |
Type |
Specification |
Required (Yes/No) |
Description |
|---|---|---|---|---|
taskId |
String |
64 |
Yes |
Task ID. Each request must use a unique ID. |
version |
String |
8 |
Yes |
Payload format version in VR format, initially set to 26.0. |
msgType |
Int |
32 |
Yes |
Service message type, with a value of 35. |
data |
Object |
- |
Yes |
Service message entity in key:value format. |
data.filename |
String |
256 |
Yes |
File name. |
Request Body Example
{
"taskId": "SDFMOASDMNFIOASMD",
"version": "26.0",
"msgType": 35,
"data": {
"filename": "file1"
}
}
Response Header
Parameter |
Value |
|---|---|
Content-Type |
application/json |
Response Body
Parameter |
Type |
Specification |
Required (Yes/No) |
Description |
|---|---|---|---|---|
retCode |
Int |
32 |
Yes |
Error code |
retMsg |
String |
64 |
Yes |
Error message |
data |
Object |
- |
No |
Custom service data |
data.times |
Int |
32 |
No |
File access count |
Response Body Example
{
"retCode": 0,
"retMsg": "Success",
"data": {
"times": 5
}
}
Parent topic: Trusted Status API