קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
באמצעות סייר ממשקי ה-API תוכלו לקרוא ישירות ל-Android Management API. כדי לקרוא ל-API משרת, צריך להפעיל את Android Management API בפרויקט וליצור חשבון שירות.
פותחים את הדף Credentials.
אם מתבקשים, בוחרים את הפרויקט שבו מופעל Android Management API.
לוחצים על Create credentials > Service account key.
בתפריט הנפתח, בוחרים באפשרות חשבון שירות חדש. נותנים שם לחשבון השירות.
בוחרים את סוג המפתח המועדף ולוחצים על יצירה. זוג המפתחות הציבורי/פרטי החדש נוצר ונוריד למחשב שלכם, והוא העותק היחיד של המפתח הזה. באחריותך לאחסן אותו באופן מאובטח.
פותחים את הדף IAM. אם מוצגת בקשה, בוחרים את הפרויקט שבו מופעל Android Management API.
לוחצים על הוספה.
מוסיפים את חשבון השירות שיצרתם כרגע כחברים ובוחרים את התפקיד Android Management User.
לוחצים על שמירה.
(אופציונלי, אבל מומלץ מאוד) מוסיפים עוד בעלי פרויקט על ידי הענקת התפקיד 'בעלים' לחברים קיימים בפרויקט.
תפקידים והרשאות
כדי לגשת אל Android Management API, לחשבון השירות נדרשת ההרשאה androidmanagement.enterprises.manage. את ההרשאה הזו אפשר להעניק עם התפקיד Android Management API (או roles/androidmanagement.user).
[[["התוכן קל להבנה","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"]],["עדכון אחרון: 2023-12-02 (שעון UTC)."],[[["Use the APIs Explorer to directly interact with the Android Management API."],["To call the API from a server, enable the Android Management API for your Google Cloud project and create a service account with the \"Android Management User\" role."],["Securely store the generated public/private key pair for your service account as it is the only copy and crucial for API access."],["Optionally, enhance project security by granting the \"Owner\" role to existing project members for additional oversight."]]],["To use the Android Management API, first enable it in the Google API Console by selecting your project and enabling it. Then, create a service account by generating a new key pair. Next, assign the \"Android Management User\" role to the service account in the IAM page. The service account needs the `androidmanagement.enterprises.manage` permission, granted by the role. Optionally, add project owners with the Owner role.\n"]]