Method: parents.get

특정 상위 참조를 가져옵니다.

HTTP 요청

GET https://www.googleapis.com/drive/v2/files/{fileId}/parents/{parentId}

URL은 gRPC 트랜스코딩 구문을 사용합니다.

경로 매개변수

매개변수
fileId

string

파일의 ID입니다.

parentId

string

상위 요소의 ID입니다.

요청 본문

요청 본문은 비어 있어야 합니다.

응답 본문

성공한 경우 응답 본문에 ParentReference의 인스턴스가 포함됩니다.

승인 범위

다음 OAuth 범위 중 하나가 필요합니다.

  • https://www.googleapis.com/auth/docs
  • https://www.googleapis.com/auth/drive
  • https://www.googleapis.com/auth/drive.appdata
  • https://www.googleapis.com/auth/drive.file
  • https://www.googleapis.com/auth/drive.metadata
  • https://www.googleapis.com/auth/drive.metadata.readonly
  • https://www.googleapis.com/auth/drive.photos.readonly
  • https://www.googleapis.com/auth/drive.readonly

일부 범위가 제한되며 앱에서 사용하려면 보안 평가가 필요합니다. 자세한 내용은 승인 가이드를 참고하세요.