Method: signupUrls.create
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
สร้าง URL การลงชื่อสมัครใช้สำหรับองค์กร
คำขอ HTTP
POST https://androidmanagement.googleapis.com/v1/signupUrls
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์การค้นหา
พารามิเตอร์ |
projectId |
string
รหัสของโปรเจ็กต์ Google Cloud Platform ที่จะเป็นเจ้าขององค์กร
|
callbackUrl |
string
URL การเรียกกลับที่ระบบจะเปลี่ยนเส้นทางผู้ดูแลระบบไปหลังจากสร้างองค์กรเรียบร้อยแล้ว ก่อนที่จะเปลี่ยนเส้นทางไปยัง URL ดังกล่าว ระบบจะเพิ่มพารามิเตอร์การค้นหาลงใน URL นี้ชื่อ enterpriseToken ซึ่งจะมีโทเค็นแบบทึบใช้สำหรับคำขอสร้างองค์กร ระบบจะแยกวิเคราะห์ URL แล้วจัดรูปแบบใหม่เพื่อเพิ่มพารามิเตอร์ enterpriseToken ดังนั้นจึงอาจมีการเปลี่ยนแปลงการจัดรูปแบบเล็กน้อย
|
adminEmail |
string
ไม่บังคับ อีเมลที่ใช้ป้อนข้อมูลในช่องผู้ดูแลระบบของแบบฟอร์มการลงชื่อสมัครใช้สำหรับองค์กรล่วงหน้า ค่านี้เป็นคำแนะนำเท่านั้น และผู้ใช้จะเปลี่ยนแปลงได้ หาก allowedDomains ไม่ว่างเปล่า allowedDomains นั้นต้องเป็นของ allowedDomains รายการใดรายการหนึ่ง
|
allowedDomains[] |
string
ไม่บังคับ รายการโดเมนที่อนุญาตสำหรับอีเมลผู้ดูแลระบบ ผู้ดูแลระบบไอทีจะป้อนอีเมลที่มีชื่อโดเมนซึ่งไม่อยู่ในรายการนี้ไม่ได้ โดเมนย่อยของโดเมนในรายการนี้ไม่ได้รับอนุญาต แต่สามารถอนุญาตได้โดยเพิ่มรายการที่ 2 ซึ่งมี *. นำหน้าชื่อโดเมน (เช่น *.example.com) หากไม่มีช่องนี้หรือเป็นรายการว่างเปล่า ผู้ดูแลระบบไอทีจะใช้ชื่อโดเมนใดก็ได้ที่ถูกต้อง ระบบจะอนุญาตโดเมนอีเมลส่วนบุคคลเสมอ แต่จะเป็นการสร้างกลุ่มบัญชี Managed Google Play สำหรับองค์กร
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ SignupUrl
ที่สร้างขึ้นใหม่
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต 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"],[[["\u003cp\u003eThis document describes how to create an enterprise signup URL using an HTTP POST request to \u003ccode\u003ehttps://androidmanagement.googleapis.com/v1/signupUrls\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires specifying the Google Cloud project ID, a callback URL for redirection after signup, and optionally, an email address to prefill the admin field.\u003c/p\u003e\n"],["\u003cp\u003eThe response provides a \u003ccode\u003eSignupUrl\u003c/code\u003e object containing the generated signup URL.\u003c/p\u003e\n"],["\u003cp\u003eTo use this functionality, you'll need authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/androidmanagement\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],["This content describes the process of creating an enterprise signup URL via a `POST` request to `https://androidmanagement.googleapis.com/v1/signupUrls`. The request requires a `projectId` and a `callbackUrl`, and optionally an `adminEmail` and `allowedDomains`. The request body must be empty. A successful request returns a `SignupUrl` instance. This requires `https://www.googleapis.com/auth/androidmanagement` authorization scope. After enterprise creation, `enterpriseToken` will be added as a query parameter to the callback URL.\n"],null,["# Method: signupUrls.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 signup URL.\n\n### HTTP request\n\n`POST https://androidmanagement.googleapis.com/v1/signupUrls`\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| `callbackUrl` | `string` The callback URL that the admin will be redirected to after successfully creating an enterprise. Before redirecting there the system will add a query parameter to this URL named `enterpriseToken` which will contain an opaque token to be used for the [create enterprise](/android/management/reference/rest/v1/enterprises/create) request. The URL will be parsed then reformatted in order to add the `enterpriseToken` parameter, so there may be some minor formatting changes. |\n| `adminEmail` | `string` Optional. Email address used to prefill the admin field of the enterprise signup form. This value is a hint only and can be altered by the user. If [`allowedDomains`](/android/management/reference/rest/v1/signupUrls/create#body.QUERY_PARAMETERS.allowed_domains) is non-empty then this must belong to one of the [`allowedDomains`](/android/management/reference/rest/v1/signupUrls/create#body.QUERY_PARAMETERS.allowed_domains). |\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 always allowed, but will result in the creation of a managed Google Play Accounts enterprise. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [SignupUrl](/android/management/reference/rest/v1/signupUrls#SignupUrl).\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)."]]