Method: parents.list

מציג את תיקיות האב של הקובץ.

בקשת HTTP

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

כתובת ה-URL משתמשת בתחביר של gRPC Transcoding.

פרמטרים של נתיב

פרמטרים
fileId

string

המזהה של הקובץ.

גוף הבקשה

גוף הבקשה צריך להיות ריק.

גוף התשובה

רשימה של ההורים של הקובץ.

אם הפעולה מצליחה, גוף התגובה מכיל נתונים במבנה הבא:

ייצוג ב-JSON
{
  "items": [
    {
      object (ParentReference)
    }
  ],
  "kind": string,
  "etag": string,
  "selfLink": string
}
שדות
items[]

object (ParentReference)

רשימת ההורים.

kind

string

הנתיב הזה תמיד drive#parentList.

etag

string

תג ה-ETag של הרשימה.

היקפי הרשאה

נדרש אחד מהיקפי ההרשאות הבאים של 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.meet.readonly
  • 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

יש היקפי הרשאות מוגבלים שנדרשת הערכת אבטחה כדי להשתמש בהם באפליקציה. מידע נוסף זמין במדריך ההרשאות.