Method: enterprises.create
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Richiesta HTTP
POST https://androidmanagement.googleapis.com/v1/enterprises
L'URL utilizza la sintassi di transcodifica gRPC.
Parametri di query
Parametri |
projectId |
string
L'ID del progetto Google Cloud Platform che sarà proprietario dell'azienda.
|
signupUrlName |
string
Il nome dell'SignupUrl utilizzato per registrarsi all'azienda. Imposta questo valore quando crei un'azienda gestita dal cliente e non quando crei un'azienda gestita da EMM deprecata.
|
enterpriseToken |
string
Il token aziendale aggiunto all'URL di callback. Imposta questo valore quando crei un'azienda gestita dal cliente e non quando crei un'azienda gestita da EMM deprecata.
|
agreementAccepted (deprecated) |
boolean
Se l'amministratore dell'azienda ha letto e accettato il contratto della versione gestita di Google Play. Non impostare questo campo per nessuna azienda gestita dal cliente. Imposta questo campo su true per tutte le aziende gestite da EMM.
|
Corpo della richiesta
Il corpo della richiesta contiene un'istanza di Enterprise
.
Corpo della risposta
In caso di esito positivo, il corpo della risposta contiene un'istanza di Enterprise
appena creata.
Ambiti di autorizzazione
Richiede il seguente ambito OAuth:
https://www.googleapis.com/auth/androidmanagement
Per ulteriori informazioni, consulta la sezione OAuth 2.0 Overview.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-26 UTC.
[null,null,["Ultimo aggiornamento 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)."]]