Method: customers.policies.networks.defineNetwork
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
คำขอ HTTP
POST https://chromepolicy.googleapis.com/v1/{customer=customers/*}/policies/networks:defineNetwork
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
customer |
string
ต้องระบุ ลูกค้าที่จะเป็นเจ้าของเครือข่ายใหม่นี้
|
เนื้อหาของคำขอ
เนื้อหาของคำขอมีข้อมูลที่มีโครงสร้างต่อไปนี้
การแสดง JSON |
{
"targetResource": string,
"name": string,
"settings": [
{
object (NetworkSetting )
}
]
} |
ช่อง |
targetResource |
string
ต้องระบุ ทรัพยากรเป้าหมายที่จะกำหนดเครือข่ายใหม่นี้ ระบบรองรับทรัพยากรต่อไปนี้ * หน่วยขององค์กร ("orgunits/{orgunit_id}")
|
name |
string
ต้องระบุ ชื่อของเครือข่ายที่สร้างใหม่
|
settings[] |
object (NetworkSetting )
ต้องระบุ การตั้งค่าเครือข่ายโดยละเอียด
|
เนื้อหาการตอบกลับ
ออบเจ็กต์การตอบสนองสำหรับการสร้างเครือข่าย
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
การแสดง JSON |
{
"networkId": string,
"targetResource": string,
"settings": [
{
object (NetworkSetting )
}
]
} |
ช่อง |
networkId |
string
รหัสเครือข่ายของเครือข่ายที่สร้างใหม่
|
targetResource |
string
ทรัพยากรเป้าหมายที่จะกำหนดเครือข่ายใหม่นี้ ระบบรองรับทรัพยากรต่อไปนี้ * หน่วยขององค์กร ("orgunits/{orgunit_id}")
|
settings[] |
object (NetworkSetting )
การตั้งค่าเครือข่ายโดยละเอียดของเครือข่ายที่สร้างขึ้นใหม่
|
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/chrome.management.policy
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[[["\u003cp\u003eDefine a new network with specific settings for a target resource, such as an organizational unit.\u003c/p\u003e\n"],["\u003cp\u003eThe request body requires the target resource, network name, and detailed network settings.\u003c/p\u003e\n"],["\u003cp\u003eThe response body provides the network ID, target resource, and network settings of the newly created network.\u003c/p\u003e\n"],["\u003cp\u003eThis functionality requires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/chrome.management.policy\u003c/code\u003e scope.\u003c/p\u003e\n"]]],[],null,["# Method: customers.policies.networks.defineNetwork\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.DefineNetworkResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nDefine a new network.\n\n### HTTP request\n\n`POST https://chromepolicy.googleapis.com/v1/{customer=customers/*}/policies/networks:defineNetwork`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|------------|----------------------------------------------------------------|\n| `customer` | `string` Required. The customer who will own this new network. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"targetResource\": string, \"name\": string, \"settings\": [ { object (/chrome/policy/reference/rest/v1/NetworkSetting) } ] } ``` |\n\n| Fields ||\n|------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `targetResource` | `string` Required. The target resource on which this new network will be defined. The following resources are supported: \\* Organizational Unit (\"orgunits/{orgunit_id}\") |\n| `name` | `string` Required. name of the new created network. |\n| `settings[]` | `object (`[NetworkSetting](/chrome/policy/reference/rest/v1/NetworkSetting)`)` Required. Detailed network settings. |\n\n### Response body\n\nResponse object for creating a network.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"networkId\": string, \"targetResource\": string, \"settings\": [ { object (/chrome/policy/reference/rest/v1/NetworkSetting) } ] } ``` |\n\n| Fields ||\n|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `networkId` | `string` Network ID of the new created network. |\n| `targetResource` | `string` The target resource on which this new network will be defined. The following resources are supported: \\* Organizational Unit (\"orgunits/{orgunit_id}\") |\n| `settings[]` | `object (`[NetworkSetting](/chrome/policy/reference/rest/v1/NetworkSetting)`)` Detailed network settings of the new created network |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/chrome.management.policy`"]]