Method: chromeosdevices.moveDevicesToOu
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
将多台 ChromeOS 设备移至或插入组织部门。您一次最多可以移动 50 部设备。
HTTP 请求
POST https://admin.googleapis.com/admin/directory/v1/customer/{customerId}/devices/chromeos/moveDevicesToOu
网址采用 gRPC 转码语法。
路径参数
参数 |
customerId |
string
不可变。Google Workspace 账号的 ID
|
查询参数
参数 |
orgUnitPath |
string
目标组织部门的完整路径或其 ID
|
响应正文
如果成功,则响应为通用 HTTP 响应,其格式由方法定义。
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/admin.directory.device.chromeos
如需了解详情,请参阅授权指南。
ChromeOsMoveDevicesToOu
JSON 表示法 |
{
"deviceIds": [
string
]
} |
字段 |
deviceIds[] |
string
要移至 OU 的 ChromeOS 设备
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],[],null,["# Method: chromeosdevices.moveDevicesToOu\n\nMoves or inserts multiple Chrome OS devices to an organizational unit. You can move up to 50 devices at once.\n\n### HTTP request\n\n`POST https://admin.googleapis.com/admin/directory/v1/customer/{customerId}/devices/chromeos/moveDevicesToOu`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------------|--------------------------------------------------------|\n| `customerId` | `string` Immutable. ID of the Google Workspace account |\n\n### Query parameters\n\n| Parameters ||\n|---------------|----------------------------------------------------------------|\n| `orgUnitPath` | `string` Full path of the target organizational unit or its ID |\n\n### Request body\n\nThe request body contains an instance of [ChromeOsMoveDevicesToOu](/workspace/admin/directory/reference/rest/v1/chromeosdevices/moveDevicesToOu#ChromeOsMoveDevicesToOu).\n\n### Response body\n\nIf successful, the response is a generic HTTP response whose format is defined by the method.\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/admin.directory.device.chromeos`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent).\n\nChromeOsMoveDevicesToOu\n-----------------------\n\n| JSON representation |\n|-------------------------------------|\n| ``` { \"deviceIds\": [ string ] } ``` |\n\n| Fields ||\n|---------------|----------------------------------------------|\n| `deviceIds[]` | `string` Chrome OS devices to be moved to OU |"]]