Method: enterprises.generateEnterpriseUpgradeUrl
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह फ़ंक्शन, एंटरप्राइज़ अपग्रेड करने का यूआरएल जनरेट करता है. इसका इस्तेमाल, मैनेज किए जा रहे मौजूदा Google Play खातों वाले एंटरप्राइज़ को मैनेज किए जा रहे Google डोमेन में अपग्रेड करने के लिए किया जाता है. ज़्यादा जानकारी के लिए, गाइड देखें.
एचटीटीपी अनुरोध
POST https://androidmanagement.googleapis.com/v1/{name=enterprises/*}:generateEnterpriseUpgradeUrl
यह यूआरएल, gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल करता है.
पाथ पैरामीटर
पैरामीटर |
name |
string
ज़रूरी है. उस एंटरप्राइज़ का नाम जिसे enterprises/{enterpriseId} फ़ॉर्म में अपग्रेड करना है.
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में, इस स्ट्रक्चर का डेटा शामिल होता है:
JSON के काेड में दिखाना |
{
"allowedDomains": [
string
],
"adminEmail": string
} |
फ़ील्ड |
allowedDomains[] |
string
ज़रूरी नहीं. उन डोमेन की सूची जिन्हें एडमिन के ईमेल पते के लिए अनुमति दी गई है. आईटी एडमिन, इस सूची में शामिल नहीं किए गए डोमेन नेम वाला ईमेल पता नहीं डाल सकता. इस सूची में शामिल डोमेन के सबडोमेन को अनुमति नहीं दी जाती. हालांकि, दूसरी एंट्री जोड़कर उन्हें अनुमति दी जा सकती है. इसके लिए, डोमेन नेम से पहले *. जोड़ना होगा. उदाहरण के लिए, *.example.com. अगर यह फ़ील्ड मौजूद नहीं है या यह एक खाली सूची है, तो आईटी एडमिन के पास किसी भी मान्य डोमेन नेम का इस्तेमाल करने का विकल्प होता है. निजी ईमेल डोमेन का इस्तेमाल करने की अनुमति नहीं है.
|
adminEmail |
string
ज़रूरी नहीं. इस कुकी का इस्तेमाल, एंटरप्राइज़ खाते के लिए साइन अप करने के फ़ॉर्म में एडमिन फ़ील्ड को पहले से भरने के लिए किया जाता है. ऐसा अपग्रेड करने की प्रोसेस के दौरान किया जाता है. यह वैल्यू सिर्फ़ एक सुझाव है और उपयोगकर्ता इसे बदल सकता है. निजी ईमेल पतों का इस्तेमाल करने की अनुमति नहीं है. अगर allowedDomains खाली नहीं है, तो यह allowedDomains में से किसी एक से मेल खाना चाहिए.
|
जवाब का मुख्य भाग
Managed Google Domains में अपग्रेड करने के लिए, मैनेज किए जा रहे मौजूदा Google Play खातों के एंटरप्राइज़ का यूआरएल जनरेट करने के लिए जवाब का मैसेज.
ध्यान दें: यह सुविधा आम तौर पर उपलब्ध नहीं होती.
अगर एपीआई सही से जुड़ जाता है, ताे जवाब के मुख्य भाग में नीचे दिए गए स्ट्रक्चर शामिल होता है.
JSON के काेड में दिखाना |
{
"url": string
} |
फ़ील्ड |
url |
string
यह एंटरप्राइज़ एडमिन के लिए, एंटरप्राइज़ को अपग्रेड करने का यूआरएल है. पेज को iframe में रेंडर नहीं किया जा सकता.
|
अनुमति के स्कोप
नीचे दिए गए OAuth के लिंक की ज़रूरत हाेती है:
https://www.googleapis.com/auth/androidmanagement
ज़्यादा जानकारी के लिए, OAuth 2.0 Overview देखें.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[],[],null,["# Method: enterprises.generateEnterpriseUpgradeUrl\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n - [JSON representation](#body.GenerateEnterpriseUpgradeUrlResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nGenerates an enterprise upgrade URL to upgrade an existing managed Google Play Accounts enterprise to a managed Google domain. See [the guide](https://developers.google.com/android/management/upgrade-an-enterprise) for more details.\n\n### HTTP request\n\n`POST https://androidmanagement.googleapis.com/v1/{name=enterprises/*}:generateEnterpriseUpgradeUrl`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|--------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. The name of the enterprise to be upgraded in the form `enterprises/{enterpriseId}`. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------|\n| ``` { \"allowedDomains\": [ string ], \"adminEmail\": string } ``` |\n\n| Fields ||\n|--------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `allowedDomains[]` | `string` Optional. A list of domains that are permitted for the admin email. The IT admin cannot enter an email address with a domain name that is not in this list. Subdomains of domains in this list are not allowed but can be allowed by adding a second entry which has `*.` prefixed to the domain name (e.g. \\*.example.com). If the field is not present or is an empty list then the IT admin is free to use any valid domain name. Personal email domains are not allowed. |\n| `adminEmail` | `string` Optional. Email address used to prefill the admin field of the enterprise signup form as part of the upgrade process. This value is a hint only and can be altered by the user. Personal email addresses are not allowed. If [`allowedDomains`](/android/management/reference/rest/v1/enterprises/generateEnterpriseUpgradeUrl#body.request_body.FIELDS.allowed_domains) is non-empty then this must belong to one of the [`allowedDomains`](/android/management/reference/rest/v1/enterprises/generateEnterpriseUpgradeUrl#body.request_body.FIELDS.allowed_domains). |\n\n### Response body\n\nResponse message for generating a URL to upgrade an existing managed Google Play Accounts enterprise to a managed Google domain.\n\n**Note:** This feature is not generally available.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|---------------------------|\n| ``` { \"url\": string } ``` |\n\n| Fields ||\n|-------|--------------------------------------------------------------------------------------------------------------|\n| `url` | `string` A URL for an enterprise admin to upgrade their enterprise. The page can't be rendered in an iframe. |\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)."]]