הפונקציה מקבלת אסימון רישום פעיל ותוקף. המערכת מחזירה תצוגה חלקית של טוקן ההרשמה. רק השדות הבאים מאוכלסים: name, expirationTimestamp, allowPersonalUsage, value, qrCode. השיטה הזו נועדה לעזור בניהול מחזור החיים של אסימוני ההרשמה הפעילים. מטעמי אבטחה, מומלץ delete אסימוני הרשמה פעילים ברגע שהם לא מיועדים לשימוש יותר.
בקשת HTTP
GET https://androidmanagement.googleapis.com/v1/{name=enterprises/*/enrollmentTokens/*}
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-01-30 (שעון UTC)."],[[["Retrieves an active enrollment token with specific fields populated for management purposes."],["Uses a `GET` request with the enrollment token's name specified in the URL path."],["Requires an empty request body and returns an `EnrollmentToken` object on success."],["Needs the `https://www.googleapis.com/auth/androidmanagement` OAuth scope for authorization."],["Recommends deleting active enrollment tokens when they are no longer needed for security."]]],["This describes retrieving an active, unexpired enrollment token via a `GET` HTTP request to a specified URL. The request requires a `name` parameter in the URL, formatted as `enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}`, and an empty request body. The successful response provides a partial view of the `EnrollmentToken`, including fields like `name`, `expirationTimestamp`, and `value`. It needs OAuth scope `https://www.googleapis.com/auth/androidmanagement` and suggests deleting tokens after use.\n"]]