GET/sharedrives/{sharedriveId}/files
공용 드라이브(공용 폴더)의 루트 파일 목록을 조회한다.
OAuth 2.0 인증.
자세한 인증 방식은 인가·인증을 참고한다.
file
file.read
| Parameter | Type | Description |
|---|---|---|
| sharedriveId | string | 공용 드라이브 ID required example : @2101000000000008 |
| Parameter | Type | Description |
|---|---|---|
| orderBy | string | 정렬 방법. 정렬 항목과 순서를 공백(%20)으로 구분하여 입력한다. 예) createdTime%20desc
example : createdTime%20desc |
| count | integer | 조회 개수 default : 20 minimum : 1 maximum : 200 example : 20 format : int32 |
| cursor | string | 커서값 example : JlIBsfJogXpzDGY8OscZziqZpYqCAu3RbZbaFzBb1od6lWQtSdPUd2FIdCuaGgu8DA== allowReserved : false |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
OK
| Property | Type | Description |
|---|---|---|
| files | array (File) | 파일 정보 |
| responseMetaData | object (responseMetaData) | 응답 메타데이터 |
| Property | Type | Description |
|---|---|---|
| accessedTime | string | 접근 날짜 readOnly : true |
| createdTime | string | 생성 날짜 readOnly : true |
| modifiedTime | string | 수정 날짜 readOnly : true |
| fileId | string | 파일 ID readOnly : true |
| parentFileId | string | 부모 폴더의 fileId readOnly : true |
| fileName | string | 파일 이름 readOnly : true |
| fileSize | integer | 파일 크기 format : int64 readOnly : true |
| filePath | string | 파일 경로 readOnly : true |
| fileType | string | 파일 유형
Allowed values : AUDIO, DOC, ETC, EXE, FOLDER, IMAGE, VIDEO, ZIP |
| hasPermission | boolean | 특정 구성원에게 권한이 부여되었는지 여부 readOnly : true nullable : false |
| permissionRootFileId | string | 폴더 접근 권한이 설정된 폴더의 파일 ID. readOnly : true nullable : true |
| shared | boolean | 해당 폴더 혹은 상위 폴더가 현재 공유 중인지 여부 readOnly : true nullable : false |
| shareRootFileId | string | 해당 폴더 혹은 상위 폴더가 공유 중인 경우, 공유된 루트 폴더의 파일 ID. readOnly : true nullable : true |
| resourceLocation | integer | 리소스 위치 코드 format : int32 readOnly : true |
| statuses | array (FileStatus) | 파일 상태 |
| Property | Type | Description |
|---|---|---|
| FileStatus | string | 파일 상태
Allowed values : LOCKED, MALWARE, PROTECTED, IN_PROGRESS |
| Property | Type | Description |
|---|---|---|
| nextCursor | string | 다음 목록 조회 시 사용하는 커서값 readOnly : true |
example
1{2 "files": [3 {4 "fileId": "QDIxMDAwMDAwMDAwMTcwfDExODE1MDg3MzQ0NzJ8RHww",5 "parentFileId": "QDIxMDAwMDAwMDAwMTcwfDExNzgyODY2MjgxMDR8RHww",6 "resourceLocation": 24101,7 "fileSize": 10,8 "fileName": "works.txt",9 "filePath": "/ShareDriveName/works.txt",10 "fileType": "DOC",11 "createdTime": "2020-11-13T18:20:05.05+09:00",12 "modifiedTime": "2021-04-05T21:14:05.05+09:00",13 "accessedTime": "2021-04-05T21:14:05.05+09:00",14 "statuses": [],15 "hasPermission": false,16 "permissionRootFileId": null17 },18 {19 "fileId": "NzExNTMwMDF8MTQ2NzA1NjAxMDAwMHxGfDA",20 "parentFileId": "QDIxMDAwMDAwMDAwMTcwfDExNzgyODY2MjgxMDR8RHww",21 "resourceLocation": 24101,22 "fileSize": 0,23 "fileName": "worksFolder",24 "filePath": "/ShareDriveName/worksFolder/",25 "fileType": "FOLDER",26 "createdTime": "2020-11-13T18:20:05.05+09:00",27 "modifiedTime": "2021-04-05T21:14:05.05+09:00",28 "accessedTime": "2021-04-05T21:14:05.05+09:00",29 "statuses": [],30 "hasPermission": false,31 "permissionRootFileId": null32 }33 ],34 "responseMetaData": {35 "nextCursor": "JlIBsfJogXpzDGY8OscZziqZpYqCAu3RbZbaFzBb1od6lWQtSdPUd2FIdCuaGgu8DA=="36 }37}