Method: enterprises.generateEnterpriseUpgradeUrl
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
สร้าง URL การอัปเกรดองค์กรเพื่ออัปเกรดกลุ่มบัญชี Managed Google Play สำหรับองค์กรที่มีอยู่เป็นโดเมน Google ที่มีการจัดการ ดูรายละเอียดเพิ่มเติมได้ที่คำแนะนำ
คำขอ HTTP
POST https://androidmanagement.googleapis.com/v1/{name=enterprises/*}:generateEnterpriseUpgradeUrl
URL ใช้ไวยากรณ์การแปลงรหัส gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
name |
string
ต้องระบุ ชื่อขององค์กรที่จะอัปเกรดในแบบฟอร์ม enterprises/{enterpriseId}
|
เนื้อความของคำขอ
เนื้อหาของคำขอมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
การแสดง JSON |
{
"allowedDomains": [
string
],
"adminEmail": string
} |
ช่อง |
allowedDomains[] |
string
ไม่บังคับ รายการโดเมนที่อนุญาตสำหรับอีเมลผู้ดูแลระบบ ผู้ดูแลระบบไอทีจะป้อนอีเมลที่มีชื่อโดเมนที่ไม่อยู่ในรายการนี้ไม่ได้ โดเมนย่อยของโดเมนในรายการนี้ไม่ได้รับอนุญาต แต่คุณอนุญาตได้โดยเพิ่มรายการที่ 2 ซึ่งมี *. นำหน้าชื่อโดเมน (เช่น *.example.com) หากไม่มีฟิลด์นี้หรือเป็นรายการที่ว่างเปล่า ผู้ดูแลระบบไอทีจะใช้ชื่อโดเมนที่ถูกต้องได้ ไม่อนุญาตให้ใช้โดเมนอีเมลส่วนตัว
|
adminEmail |
string
ไม่บังคับ อีเมลที่ใช้ป้อนข้อมูลล่วงหน้าในช่องผู้ดูแลระบบของแบบฟอร์มลงชื่อสมัครใช้สำหรับองค์กร ซึ่งเป็นส่วนหนึ่งของกระบวนการอัปเกรด ค่านี้เป็นเพียงคำแนะนำและผู้ใช้สามารถเปลี่ยนแปลงได้ ไม่อนุญาตให้ใช้อีเมลส่วนตัว หาก allowedDomains ไม่ว่าง allowedDomains นี้จะต้องเป็นของ allowedDomains รายการใดรายการหนึ่ง
|
เนื้อหาการตอบกลับ
ข้อความตอบกลับสำหรับการสร้าง URL เพื่ออัปเกรดกลุ่มบัญชี Managed Google Play สำหรับองค์กรที่มีอยู่เป็นโดเมน Google ที่มีการจัดการ
หมายเหตุ: ฟีเจอร์นี้อาจไม่มีให้บริการสำหรับผู้ใช้ทั่วไป
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
การแสดง JSON |
{
"url": string
} |
ช่อง |
url |
string
URL สำหรับผู้ดูแลระบบองค์กรเพื่ออัปเกรดองค์กร แสดงหน้าเว็บใน iframe ไม่ได้
|
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/androidmanagement
ดูข้อมูลเพิ่มเติมได้ที่OAuth 2.0 Overview
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 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)."]]