Method: parents.get
للحصول على مرجع رئيسي محدّد
طلب HTTP
GET https://www.googleapis.com/drive/v2/files/{fileId}/parents/{parentId}
يستخدِم عنوان URL بنية تحويل ترميز gRPC.
مَعلمات المسار
المعلمات |
fileId |
string
رقم تعريف الملف.
|
parentId |
string
رقم تعريف العنصر الرئيسي
|
نص الطلب
يجب أن يكون نص الطلب فارغًا.
نص الاستجابة
إذا كانت الاستجابة ناجحة، يحتوي نص الاستجابة على مثال 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.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
يتم فرض قيود على بعض النطاقات وتتطلب تقييمًا أمنيًا لتطبيقك حتى يستخدمها. لمزيد من المعلومات، يُرجى الاطّلاع على دليل التفويض.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-09-04 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-09-04 (حسب التوقيت العالمي المتفَّق عليه)"],[[["Retrieves a specific parent reference for a file using a `GET` request to the specified endpoint."],["Requires providing `fileId` and `parentId` as path parameters in the request URL."],["The response body will contain a `ParentReference` object if the request is successful."],["Requires authorization with one of the listed OAuth scopes, such as `https://www.googleapis.com/auth/drive` or `https://www.googleapis.com/auth/drive.file`."]]],["The core action is a `GET` request to retrieve a specific parent reference using the URL: `https://www.googleapis.com/drive/v2/files/{fileId}/parents/{parentId}`. This requires specifying `fileId` and `parentId` as path parameters. The request body must be empty. A successful response contains a `ParentReference` instance. Authorization requires one of several OAuth scopes, some of which are restricted and need security assessment.\n"]]