Method: properties.list
ویژگی های یک فایل را فهرست می کند.
درخواست HTTP
GET https://www.googleapis.com/drive/v2/files/{fileId}/properties
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
پارامترها |
---|
fileId | string شناسه فایل |
درخواست بدن
بدنه درخواست باید خالی باشد.
بدن پاسخگو
مجموعه ای از ویژگی ها، جفت های کلید-مقدار که برای یک برنامه عمومی یا خصوصی هستند.
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی داده هایی با ساختار زیر است:
نمایندگی JSON |
---|
{
"kind": string,
"etag": string,
"selfLink": string,
"items": [
{
object (Property )
}
]
} |
فیلدها |
---|
kind | string این همیشه drive#propertyList است. |
etag | string ETag لیست. |
selfLink | string لینک بازگشت به این لیست |
items[] | object ( Property ) لیست املاک. |
محدوده مجوز
به یکی از حوزه های 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 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-11-13 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-11-13 بهوقت ساعت هماهنگ جهانی."],[[["Lists a file's properties using a `GET` request to the Google Drive API."],["Requires the `fileId` as a path parameter to identify the specific file."],["The response includes a list of properties associated with the file, represented as key-value pairs."],["Requires authorization with one of the specified OAuth scopes to access the file's properties."]]],["A `GET` HTTP request is made to `https://www.googleapis.com/drive/v2/files/{fileId}/properties` to list a file's properties. The `fileId` path parameter is required to specify the target file. The request body must be empty. The successful response body contains a JSON object including the list of properties (`items`), `kind`, `etag`, and `selfLink`. Authorization requires one of several listed OAuth scopes, with some needing a security assessment.\n"]]