Method: deployments.devices.move
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
HTTP 请求
POST https://sasportal.googleapis.com/v1alpha1/{name=deployments/*/devices/*}:move
网址采用 gRPC 转码语法。
路径参数
参数 |
name |
string
必需。要移动的设备的名称。
|
请求正文
请求正文中包含结构如下的数据:
JSON 表示法 |
{
"destination": string
} |
字段 |
destination |
string
必需。要将设备重新归属到的新父资源 node 或 customer 的名称。
|
响应正文
如果成功,则响应正文包含一个 Operation
实例。
授权作用域
需要以下 OAuth 范围:
https://www.googleapis.com/auth/sasportal
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eMoves a device under a different node or customer within the Spectrum Access System.\u003c/p\u003e\n"],["\u003cp\u003eThe request is made via a POST method to a specific endpoint with the device's name as a path parameter.\u003c/p\u003e\n"],["\u003cp\u003eRequires a request body indicating the destination node or customer for the device.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful responses return an Operation object, indicating the status of the move.\u003c/p\u003e\n"],["\u003cp\u003eThe operation requires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/sasportal\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["This document details the process of moving a device to a different node or customer. The core action is a `POST` HTTP request to a specific URL (`https://sasportal.googleapis.com/v1alpha1/{name=deployments/*/devices/*}:move`). The request requires a device's name as a path parameter and the new parent resource's name (`destination`) in the request body, represented in JSON. Successful operations return an `Operation` instance, while the request requires the `https://www.googleapis.com/auth/sasportal` authorization scope.\n"],null,["# Method: deployments.devices.move\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- [Authorization Scopes](#body.aspect)\n\nMoves a [device](/spectrum-access-system/reference/rest/v1alpha1/customers.deployments.devices#Device) under another [node](/spectrum-access-system/reference/rest/v1alpha1/customers.nodes#Node) or [customer](/spectrum-access-system/reference/rest/v1alpha1/customers#Customer).\n\n### HTTP request\n\n`POST https://sasportal.googleapis.com/v1alpha1/{name=deployments/*/devices/*}:move`\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 device to move. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------|\n| ``` { \"destination\": string } ``` |\n\n| Fields ||\n|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `destination` | `string` Required. The name of the new parent resource [node](/spectrum-access-system/reference/rest/v1alpha1/customers.nodes#Node) or [customer](/spectrum-access-system/reference/rest/v1alpha1/customers#Customer) to reparent the device under. |\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/spectrum-access-system/reference/rest/v1alpha1/Operation).\n\n### Authorization Scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/sasportal`"]]