Method: partners.customers.create
יצירת לקוח להרשמה דרך הארגון. אחרי שהשיטה תוחזר בהצלחה, משתמשים עם הרשאת אדמין ובעלים יוכלו לנהל את המכשירים ואת הגדרות ה-EMM באמצעות קריאה ל-methods של ה-API או באמצעות פורטל ההרשמה דרך הארגון. הלקוח מקבל אימייל ברכה להרשמה דרך הארגון ומסביר איך להיכנס לפורטל.
בקשת HTTP
POST https://androiddeviceprovisioning.googleapis.com/v1/{parent=partners/*}/customers
בכתובת ה-URL נעשה שימוש בתחביר המרת קידוד של gRPC.
פרמטרים של נתיב
פרמטרים |
parent |
string
חובה. מזהה משאב ההורה בפורמט partners/[PARTNER_ID] שמזהה את המפיץ.
|
גוף הבקשה
גוף הבקשה מכיל נתונים במבנה הבא:
ייצוג JSON |
{
"customer": {
object (Company )
}
} |
שדות |
customer |
object (Company )
חובה. נתוני החברה שצריך לאכלס את הלקוח החדש. חייב להכיל ערך של companyName ולפחות ערך אחד מסוג owner_email שמשויך לחשבון Google. הערכים של companyId ושל name חייבים להיות ריקים.
|
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכלול מופע חדש של Company
.
היקפי הרשאות
נדרש היקף ההרשאות הבא של OAuth:
https://www.googleapis.com/auth/androidworkprovisioning
למידע נוסף, קראו את המאמר סקירה כללית של OAuth 2.0.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-08-29 (שעון UTC).
[null,null,["עדכון אחרון: 2024-08-29 (שעון UTC)."],[[["This endpoint creates a new customer for zero-touch enrollment, enabling them to manage devices and EMM configurations via API or the zero-touch portal."],["The HTTP request is a `POST` to `https://androiddeviceprovisioning.googleapis.com/v1/{parent=partners/*}/customers`, using gRPC Transcoding syntax."],["The `parent` path parameter is required and identifies the reseller in the format `partners/[PARTNER_ID]`."],["The request body must include a `customer` object with the company name and at least one owner email associated with a Google Account."],["Successfully creating a customer returns a `Company` instance, and the operation requires the `https://www.googleapis.com/auth/androidworkprovisioning` OAuth scope."]]],["This describes how to create a zero-touch enrollment customer using a POST request to `https://androiddeviceprovisioning.googleapis.com/v1/{parent=partners/*}/customers`. The `parent` path parameter specifies the reseller. The request body must include a `customer` object with a `companyName` and at least one `owner_email`. Upon success, a new `Company` instance is returned. Authorization requires the `https://www.googleapis.com/auth/androidworkprovisioning` OAuth scope. The created customer can then manage devices and EMM configs.\n"]]