GET/sharedrives/{sharedriveId}/trash-files

공용 드라이브(공용 폴더)의 휴지통 파일 목록을 조회한다.

Authorization

oauth2

OAuth 2.0 인증.
자세한 인증 방식은 인가·인증을 참고한다.

Scope

file
file.read

HTTP Request

GEThttps://www.worksapis.com/v1.0/sharedrives/{sharedriveId}/trash-files

Path Parameters

ParameterTypeDescription
sharedriveId string 

공용 드라이브 ID


required
example : @2101000000000008 

Query Parameters

ParameterTypeDescription
orderBy string 

정렬 방법. 정렬 항목과 순서를 공백(%20)으로 구분하여 입력한다. 예) createdTime%20desc

  • 정렬 항목
    • 파일: createdTime, modifiedTime, accessedTime, fileExtension, fileName, filePath, fileSize, fileType, protect
    • 휴지통 파일: deletedTime, fileSize, fileType, fileName, originalPath
  • 순서
    • 오름차순: asc
    • 내림차순: desc

example : createdTime%20desc 
count integer 

조회 개수


default : 20
minimum : 1
maximum : 200
example : 20
format : int32 
cursor string 

커서값


example : JlIBsfJogXpzDGY8OscZziqZpYqCAu3RbZbaFzBb1od6lWQtSdPUd2FIdCuaGgu8DA==
allowReserved : false 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 

Response

HTTP 200

OK

PropertyTypeDescription
trashFiles array (TrashFile) 

휴지통 파일 정보

 
responseMetaData object (responseMetaData) 

응답 메타데이터

 

TrashFile

PropertyTypeDescription
deletedTime string 

삭제 날짜


readOnly : true 
deleteUser string 

삭제한 사용자


readOnly : true 
fileName string 

파일 이름


readOnly : true 
fileSize integer 

파일 크기


format : int64
readOnly : true 
fileType string 

파일 유형

  • AUDIO: 오디오 파일
  • DOC: 문서 파일
  • ETC: 기타 파일
  • EXE: 실행 파일
  • FOLDER: 폴더
  • IMAGE: 사진 파일
  • VIDEO: 영상 파일
  • ZIP: 압축 파일

Allowed values : AUDIO, DOC, ETC, EXE, FOLDER, IMAGE, VIDEO, ZIP 
originalPath string 

삭제 전 경로


readOnly : true 
resourceLocation integer 

리소스 위치 코드


format : int32
readOnly : true 
trashFileId string 

삭제 파일 ID


readOnly : true 
modifiedTime string 

수정 날짜


readOnly : true 

responseMetaData

PropertyTypeDescription
nextCursor string 

다음 목록 조회 시 사용하는 커서값


readOnly : true 

Response Example

example

1{2  "trashFiles": [3    {4      "trashFileId": "MTQ1MDMwMDJ8MTQ1Mjk0NDU1Mjk3NnxGfDA",5      "fileName": "works.txt",6      "resourceLocation": 24101,7      "fileSize": 1048576,8      "fileType": "DOC",9      "originalPath": "/worksFolder/",10      "modifiedTime": "2021-08-14T11:06:39.39+09:00",11      "deletedTime": "2021-08-14T11:06:40.40+09:00",12      "deleteUser": "userf7da-f82c-4284-13e7-030f3b4c756x"13    },14    {15      "trashFileId": "MTEwMDAyNTA0NjQ1ODQ5fDM0NzI0NzM3OTg1ODg1NDgzNjB8Rnww",16      "fileName": "DeletedFolder",17      "resourceLocation": 24101,18      "fileSize": 0,19      "fileType": "FOLDER",20      "originalPath": "/",21      "modifiedTime": "2021-08-14T11:06:39.39+09:00",22      "deletedTime": "2021-08-14T11:06:40.40+09:00",23      "deleteUser": "userf7da-f82c-4284-13e7-030f3b4c756x"24    }25  ],26  "responseMetaData": {27    "nextCursor": "JlIBsfJogXpzDGY8OscZziqZpYqCAu3RbZbaFzBb1od6lWQtSdPUd2FIdCuaGgu8DA=="28  }29}