Enterprises: generateEnterpriseUpgradeUrl
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
สร้าง URL การอัปเกรดองค์กรเพื่ออัปเกรดกลุ่มบัญชี Managed Google Play สำหรับองค์กรที่มีอยู่เป็นโดเมน Google ที่มีการจัดการ
ดูรายละเอียดเพิ่มเติมได้ที่
คู่มือการอัปเกรดองค์กร
ส่งคำขอ
คำขอ HTTP
POST https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/generateEnterpriseUpgradeUrl
พารามิเตอร์
ชื่อพารามิเตอร์ |
ค่า |
คำอธิบาย |
พารามิเตอร์เส้นทาง |
enterpriseId |
string |
รหัสขององค์กร
|
พารามิเตอร์การค้นหาที่ไม่บังคับ |
adminEmail |
string |
ไม่บังคับ อีเมลที่ใช้ป้อนข้อมูลในช่องผู้ดูแลระบบของแบบฟอร์มการลงชื่อสมัครใช้สำหรับองค์กรล่วงหน้าในขั้นตอนการอัปเกรด ค่านี้เป็นคำแนะนำเท่านั้นและผู้ใช้สามารถแก้ไขได้ ไม่อนุญาตให้ใช้อีเมลส่วนบุคคล
หาก `allowedDomains` ไม่ได้ว่างเปล่า โดเมนนี้ต้องอยู่ในรายการ `allowedDomains`
|
allowedDomains |
string |
ไม่บังคับ รายการโดเมนที่อนุญาตสำหรับอีเมลผู้ดูแลระบบ ผู้ดูแลระบบไอทีจะป้อนอีเมลที่มีชื่อโดเมนซึ่งไม่อยู่ในรายการนี้ไม่ได้
ระบบไม่อนุญาตให้ใช้โดเมนย่อยของโดเมนในรายการนี้ แต่สามารถอนุญาตได้โดยเพิ่มรายการที่ 2 ซึ่งมี "*." นำหน้าชื่อโดเมน (เช่น *.example.com) หากไม่มีช่องนี้หรือเป็นรายการที่ว่างเปล่า ผู้ดูแลระบบไอทีจะใช้ชื่อโดเมนใดก็ได้ที่ถูกต้อง ไม่อนุญาตให้ใช้โดเมนอีเมลส่วนบุคคล
|
การให้สิทธิ์
คำขอนี้ต้องได้รับสิทธิ์ที่มีขอบเขตต่อไปนี้
ขอบเขต |
https://www.googleapis.com/auth/androidenterprise |
ดูข้อมูลเพิ่มเติมได้ที่หน้าการตรวจสอบสิทธิ์และการให้สิทธิ์
เนื้อความของคำขอ
อย่าระบุเนื้อหาคำขอด้วยเมธอดนี้
การตอบกลับ
หากทำสำเร็จ วิธีการนี้จะแสดงผลลัพธ์เป็นเนื้อหาการตอบกลับซึ่งมีโครงสร้างดังต่อไปนี้
{
"url": string
}
ชื่อพร็อพเพอร์ตี้ |
ค่า |
คำอธิบาย |
หมายเหตุ |
url |
string |
URL สำหรับผู้ดูแลระบบขององค์กรเพื่ออัปเกรดองค์กร หน้าเว็บแสดงผลใน iframe ไม่ได้ |
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-06-10 UTC
[null,null,["อัปเดตล่าสุด 2025-06-10 UTC"],[],[],null,["# Enterprises: generateEnterpriseUpgradeUrl\n\n| **Note:** Requires [authorization](#auth).\n\nGenerates an enterprise upgrade URL to upgrade an existing managed Google\nPlay Accounts enterprise to a managed Google domain.\nSee [the guide to upgrading an enterprise](/android/work/play/emm-api/upgrade-an-enterprise) for more details.\n\nRequest\n-------\n\n### HTTP request\n\n```\nPOST https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/generateEnterpriseUpgradeUrl\n```\n\n### Parameters\n\n| Parameter name | Value | Description |\n|------------------|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Path parameters** |||\n| `enterpriseId` | `string` | The ID of the enterprise. |\n| **Optional query parameters** |||\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\\` is non-empty then this must belong to one of the \\`allowedDomains\\`. |\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\n### Authorization\n\nThis request requires authorization with the following scope:\n\n| Scope |\n|-----------------------------------------------------|\n| `https://www.googleapis.com/auth/androidenterprise` |\n\nFor more information, see the [authentication and authorization](/android/work/play/emm-api/v1/how-tos/authorizing) page.\n\n### Request body\n\nDo not supply a request body with this method.\n\nResponse\n--------\n\nIf successful, this method returns a response body with the following structure:\n\n```text\n{\n \"url\": string\n}\n```\n\n| Property name | Value | Description | Notes |\n|---------------|----------|-----------------------------------------------------------------------------------------------------|-------|\n| `url` | `string` | A URL for an enterprise admin to upgrade their enterprise. The page can't be rendered in an iframe. | |"]]