Method: enterprises.create
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
בקשת HTTP
POST https://androidmanagement.googleapis.com/v1/enterprises
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של שאילתה
פרמטרים |
projectId |
string
המזהה של הפרויקט ב-Google Cloud Platform שיהיו לו הרשאות הבעלות על הארגון.
|
signupUrlName |
string
השם של SignupUrl ששימש להרשמה לארגון. צריך להגדיר את האפשרות הזו כשיוצרים ארגון בניהול הלקוח, ולא כשיוצרים ארגון בניהול EMM שהוצא משימוש.
|
enterpriseToken |
string
הטוקן הארגוני שמצורף לכתובת ה-URL לקריאה חוזרת. צריך להגדיר את האפשרות הזו כשיוצרים ארגון בניהול הלקוח, ולא כשיוצרים ארגון בניהול EMM שהוצא משימוש.
|
agreementAccepted (deprecated) |
boolean
האם האדמין הארגוני קרא את הסכם Google Play לארגונים והסכים לתנאיו. אין להגדיר את השדה הזה לאף ארגון בניהול הלקוח. צריך להגדיר את השדה הזה כ-true לכל הארגונים בניהול EMM.
|
גוף הבקשה
גוף הבקשה מכיל מופע של Enterprise
.
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכיל מופע חדש של Enterprise
.
היקפי הרשאה
נדרש היקף הרשאות OAuth הבא:
https://www.googleapis.com/auth/androidmanagement
מידע נוסף זמין בOAuth 2.0 Overview.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\u003cp\u003eCreates an enterprise as the final step in the enterprise signup flow.\u003c/p\u003e\n"],["\u003cp\u003eSends a POST request to \u003ccode\u003ehttps://androidmanagement.googleapis.com/v1/enterprises\u003c/code\u003e to initiate enterprise creation.\u003c/p\u003e\n"],["\u003cp\u003eRequires providing details like project ID, signup URL name (for customer-managed enterprises), and enterprise token.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain an instance of \u003ccode\u003eEnterprise\u003c/code\u003e, and a successful response returns a newly created \u003ccode\u003eEnterprise\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/androidmanagement\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["To create an enterprise, send a `POST` request to `https://androidmanagement.googleapis.com/v1/enterprises`. Include query parameters like `projectId`, `signupUrlName`, and `enterpriseToken` depending on the enterprise type. The request body should contain an `Enterprise` instance. A successful response will return the created `Enterprise` instance. Authorization requires the `https://www.googleapis.com/auth/androidmanagement` OAuth scope. Note the parameter `agreementAccepted` is deprecated.\n"],null,["# Method: enterprises.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCreates an enterprise. This is the last step in the [enterprise signup flow](/android/management/create-enterprise). See also: [`SigninDetail`](/android/management/reference/rest/v1/enterprises#SigninDetail)\n\n### HTTP request\n\n`POST https://androidmanagement.googleapis.com/v1/enterprises`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Query parameters\n\n| Parameters ||\n|--------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `projectId` | `string` The ID of the Google Cloud Platform project which will own the enterprise. |\n| `signupUrlName` | `string` The name of the [`SignupUrl`](/android/management/reference/rest/v1/signupUrls#SignupUrl) used to sign up for the enterprise. Set this when creating a [customer-managed enterprise](https://developers.google.com/android/management/create-enterprise#customer-managed_enterprises) and not when creating a deprecated [EMM-managed enterprise](https://developers.google.com/android/management/create-enterprise#emm-managed_enterprises). |\n| `enterpriseToken` | `string` The enterprise token appended to the callback URL. Set this when creating a [customer-managed enterprise](https://developers.google.com/android/management/create-enterprise#customer-managed_enterprises) and not when creating a deprecated [EMM-managed enterprise](https://developers.google.com/android/management/create-enterprise#emm-managed_enterprises). |\n| `agreementAccepted` **(deprecated)** | `boolean` Whether the enterprise admin has seen and agreed to the [managed Google Play Agreement](https://www.android.com/enterprise/terms/). Do not set this field for any [customer-managed enterprise](https://developers.google.com/android/management/create-enterprise#customer-managed_enterprises). Set this to field to true for all [EMM-managed enterprises](https://developers.google.com/android/management/create-enterprise#emm-managed_enterprises). |\n\n### Request body\n\nThe request body contains an instance of [Enterprise](/android/management/reference/rest/v1/enterprises#Enterprise).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Enterprise](/android/management/reference/rest/v1/enterprises#Enterprise).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/androidmanagement`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]