Method: customers.devices.signDevice
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Requête HTTP
POST https://sasportal.googleapis.com/v1alpha1/{device.name=customers/*/devices/*}:signDevice
L'URL utilise la syntaxe de transcodage gRPC.
Paramètres de chemin d'accès
Paramètres |
device.name |
string
Uniquement en sortie. Nom du chemin d'accès à la ressource.
|
Corps de la requête
Le corps de la requête contient des données présentant la structure suivante :
Représentation JSON |
{
"device": {
"name": string,
"fccId": string,
"serialNumber": string,
"preloadedConfig": {
object (DeviceConfig )
},
"activeConfig": {
object (DeviceConfig )
},
"state": enum (State ),
"grants": [
{
object (DeviceGrant )
}
]
}
} |
Champs |
device.fccId |
string
Identifiant FCC de l'appareil.
|
device.serialNumber |
string
Numéro de série attribué à l'appareil par le fabricant.
|
device.preloadedConfig |
object (DeviceConfig )
Configuration de l'appareil, telle qu'elle est spécifiée via l'API du portail SAS.
|
device.activeConfig |
object (DeviceConfig )
Uniquement en sortie. Configuration actuelle de l'appareil telle qu'enregistrée auprès du SAS.
|
device.state |
enum (State )
Uniquement en sortie. État de l'appareil.
|
device.grants[] |
object (DeviceGrant )
Uniquement en sortie. Autorisations détenues par l'appareil.
|
Corps de la réponse
Si la requête aboutit, le corps de la réponse sera vide.
Champs d'application des autorisations
Requiert le champ d'application OAuth suivant :
https://www.googleapis.com/auth/userinfo.email
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/25 (UTC).
[null,null,["Dernière mise à jour le 2025/07/25 (UTC)."],[[["\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`"]]