Method: customers.devices.signDevice
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
HTTP 请求
POST https://sasportal.googleapis.com/v1alpha1/{device.name=customers/*/devices/*}:signDevice
网址采用 gRPC 转码语法。
路径参数
参数 |
device.name |
string
仅限输出。资源路径名称。
|
请求正文
请求正文中包含结构如下的数据:
JSON 表示法 |
{
"device": {
"name": string,
"fccId": string,
"serialNumber": string,
"preloadedConfig": {
object (DeviceConfig )
},
"activeConfig": {
object (DeviceConfig )
},
"state": enum (State ),
"grants": [
{
object (DeviceGrant )
}
]
}
} |
字段 |
device.fccId |
string
设备的 FCC 标识符。
|
device.serialNumber |
string
设备制造商为设备分配的序列号。
|
device.preloadedConfig |
object (DeviceConfig )
设备的配置,通过 SAS 门户 API 指定。
|
device.activeConfig |
object (DeviceConfig )
仅限输出。设备当前向 SAS 注册的配置。
|
device.state |
enum (State )
仅限输出。设备状态。
|
device.grants[] |
object (DeviceGrant )
仅限输出。设备持有的授权。
|
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/userinfo.email
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eSigns a device with the provided FCC ID and serial number using the SAS Portal API.\u003c/p\u003e\n"],["\u003cp\u003eRequires a POST request to the specific endpoint \u003ccode\u003ehttps://sasportal.googleapis.com/v1alpha1/{device.name=customers/*/devices/*}:signDevice\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body includes device details like FCC ID, serial number, preloaded and active configurations.\u003c/p\u003e\n"],["\u003cp\u003eUpon successful signing, the response body will be empty.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with the scope \u003ccode\u003ehttps://www.googleapis.com/auth/userinfo.email\u003c/code\u003e.\u003c/p\u003e\n"]]],["This document details how to sign a device using a POST HTTP request to `https://sasportal.googleapis.com/v1alpha1/{device.name=customers/*/devices/*}:signDevice`. The request requires a JSON body including the device's `fccId`, `serialNumber`, `preloadedConfig`, `activeConfig`, `state`, and `grants`. `device.name` is a path parameter indicating the resource path. A successful request returns an empty body. Authorization requires the `https://www.googleapis.com/auth/userinfo.email` OAuth scope.\n"],null,["# Method: customers.devices.signDevice\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 - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION.device.SCHEMA_REPRESENTATION)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION.device.SCHEMA_REPRESENTATION_1)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION.device.SCHEMA_REPRESENTATION_2)\n- [Response body](#body.response_body)\n- [Authorization Scopes](#body.aspect)\n\nSigns a [device](/spectrum-access-system/reference/rest/customers.devices#Device).\n\n### HTTP request\n\n`POST https://sasportal.googleapis.com/v1alpha1/{device.name=customers/*/devices/*}:signDevice`\n\nThe URL uses [gRPC Transcoding](https://github.com/googleapis/googleapis/blob/master/google/api/http.proto) syntax.\n\n### Path parameters\n\n| Parameters ||\n|---------------|-----------------------------------------------|\n| `device.name` | `string` Output only. The resource path name. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"device\": { \"name\": string, \"fccId\": string, \"serialNumber\": string, \"preloadedConfig\": { object (/spectrum-access-system/reference/rest/customers.devices#Device.DeviceConfig) }, \"activeConfig\": { object (/spectrum-access-system/reference/rest/customers.devices#Device.DeviceConfig) }, \"state\": enum (/spectrum-access-system/reference/rest/customers.devices#Device.State_1), \"grants\": [ { object (/spectrum-access-system/reference/rest/customers.devices#Device.DeviceGrant) } ] } } ``` |\n\n| Fields ||\n|--------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `device.fccId` | `string` The FCC identifier of the device. |\n| `device.serialNumber` | `string` A serial number assigned to the device by the device manufacturer. |\n| `device.preloadedConfig` | `object (`[DeviceConfig](/spectrum-access-system/reference/rest/customers.devices#Device.DeviceConfig)`)` Configuration of the device, as specified via SAS Portal API. |\n| `device.activeConfig` | `object (`[DeviceConfig](/spectrum-access-system/reference/rest/customers.devices#Device.DeviceConfig)`)` Output only. Current configuration of the device as registered to the SAS. |\n| `device.state` | `enum (`[State](/spectrum-access-system/reference/rest/customers.devices#Device.State_1)`)` Output only. Device state. |\n| `device.grants[]` | `object (`[DeviceGrant](/spectrum-access-system/reference/rest/customers.devices#Device.DeviceGrant)`)` Output only. Grants held by the device. |\n\n### Response body\n\nIf successful, the response body will be empty.\n\n### Authorization Scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/userinfo.email`"]]