SysGetFileInfo
Returns information on a file using fileId.
Service | Operation |
---|---|
groupFile | SYS_GET_FILE_INFO |
Method Parameters
Parameter | Description |
---|---|
groupId | The id of the group. |
fileId | The id of the file. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
var groupId = "dfsfsffsd";
var fileId = "guid";
var groupFileProxy = bridge.getGroupFileServiceProxy();
var postResult = groupFileProxy.sysGetFileInfo(groupId, fileId);
if (postResult.status == 200) {
// Success!
}
{
"service": "groupFile",
"operation": "SYS_GET_FILE_INFO",
"data":
{
"groupId": "dfsfsffsd",
"fileId": "guid"
}
}
JSON Response
{
"data": {
"fileDetails": {
"treeId": "d9e937cc-750f-4414-962c-838f1af3f34a",
"fileName": "glog.json",
"fileSize": 7051,
"dateUploaded": 1677183768000,
"etag": "08c580b36ee79773bfec4a3c51bd1b64",
"acl": {
"member": 2,
"other": 0
},
"version": 1,
"url": "https://api.internal.braincloudservers.com/groupfiles/bc/g/23782/gr/2bf538d1-19ea-4e14-9862-f979215e09b7/d9e937cc-750f-4414-962c-838f1af3f34a/6d938c22-3b8c-4b99-a913-2edafed71a83/V1/glog.json",
"fileId": "6d938c22-3b8c-4b99-a913-2edafed71a83"
},
"groupId": "2bf538d1-19ea-4e14-9862-f979215e09b7"
},
"status": 200
}