Method: customers.devices.list
רשימה של המכשירים של הלקוח.
בקשת HTTP
GET https://androiddeviceprovisioning.googleapis.com/v1/{parent=customers/*}/devices
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
parent |
string
חובה. הלקוח שמנהל את המכשירים. שם של משאב API בפורמט customers/[CUSTOMER_ID] .
|
פרמטרים של שאילתה
פרמטרים |
pageSize |
string (int64 format)
חובה. המספר המקסימלי של מכשירים שמוצגים בדף תוצאות. הערך חייב להיות בין 1 ל-100, כולל.
|
pageToken |
string
אסימון שמציין איזה דף תוצאות להציג.
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
אם הפעולה מצליחה, גוף התגובה מכיל נתונים במבנה הבא:
הודעת התגובה של מכשירי התאורה של הלקוח.
ייצוג ב-JSON |
{
"devices": [
{
object (Device )
}
],
"nextPageToken": string
} |
שדות |
devices[] |
object (Device )
המכשירים של הלקוח.
|
nextPageToken |
string
אסימון שמאפשר לגשת לדף התוצאות הבא. השמטה אם אין תוצאות נוספות.
|
היקפי הרשאות
נדרש היקף הרשאות OAuth הבא:
https://www.googleapis.com/auth/androidworkzerotouchemm
למידע נוסף, ראו סקירה כללית על OAuth 2.0.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-12-21 (שעון UTC).
[null,null,["עדכון אחרון: 2024-12-21 (שעון UTC)."],[[["This webpage details how to list a customer's devices using the Android Device Provisioning API."],["The HTTP request uses a `GET` method to retrieve devices via a URL formatted with gRPC Transcoding, specifying the customer ID in the path."],["It requires the inclusion of `pageSize` and `pageToken` query parameters to manage result pagination, with `pageSize` determining the maximum number of devices per page."],["The request body must be empty and the response body contains a list of devices and a `nextPageToken` to obtain additional pages of results if available."],["Access to this API endpoint requires authorization using the `https://www.googleapis.com/auth/androidworkzerotouchemm` OAuth scope."]]],["This API endpoint retrieves a list of a customer's devices using a `GET` request. The URL specifies the customer via the `parent` path parameter (`customers/[CUSTOMER_ID]`). Results are paginated using `pageSize` (1-100) and `pageToken` query parameters. The request body is empty. The successful response contains a list of `devices` and, if more exist, a `nextPageToken` for subsequent pages. Authentication requires the `androidworkzerotouchemm` OAuth scope.\n"]]