Method: customers.devices.createSigned
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Solicitação HTTP
POST https://sasportal.googleapis.com/v1alpha1/{parent=customers/*}/devices:createSigned
O URL usa a sintaxe de transcodificação gRPC.
Parâmetros de caminho
Parâmetros |
parent |
string
Obrigatório. O nome do recurso pai.
|
Corpo da solicitação
O corpo da solicitação contém dados com a seguinte estrutura:
Representação JSON |
{
"encodedDevice": string,
"installerId": string
} |
Campos |
encodedDevice |
string (bytes format)
Obrigatório. JSON Web Token assinado usando uma chave privada de CPI. O payload precisa ser a codificação JSON do [Device]. Uma string codificada em base64.
|
installerId |
string
Obrigatório. ID exclusivo do instalador (cpiId) do banco de dados de instaladores profissionais certificados.
|
Corpo da resposta
Se a solicitação for bem-sucedida, o corpo da resposta conterá uma instância de Device
.
Escopos de autorização
Requer o seguinte escopo OAuth:
https://www.googleapis.com/auth/userinfo.email
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2025-07-25 UTC.
[null,null,["Última atualização 2025-07-25 UTC."],[[["\u003cp\u003eCreates a signed device under a node or customer using a POST request.\u003c/p\u003e\n"],["\u003cp\u003eRequires a JSON Web Token signed with a CPI private key and a unique installer ID in the request body.\u003c/p\u003e\n"],["\u003cp\u003eReturns the created device details upon successful completion.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/userinfo.email\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["This documentation details how to create a signed device under a node or customer. A `POST` request is sent to a specific URL, including a required `parent` path parameter. The request body must contain a `encodedDevice` string (a JWT signed with a CPI private key) and a `installerId` string. The successful response will include a `Device` instance. This operation requires OAuth scope: `https://www.googleapis.com/auth/userinfo.email`.\n"],null,["# Method: customers.devices.createSigned\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\nCreates a signed [device](/spectrum-access-system/reference/rest/customers.devices#Device) under a [node](/spectrum-access-system/reference/rest/customers.nodes#Node) or [customer](/spectrum-access-system/reference/rest/customers#Customer).\n\n### HTTP request\n\n`POST https://sasportal.googleapis.com/v1alpha1/{parent=customers/*}/devices:createSigned`\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| `parent` | `string` Required. The name of the parent resource. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation ||\n|------------------------------------------------------------|---|\n| ``` { \"encodedDevice\": string, \"installerId\": string } ``` |\n\n| Fields ||\n|-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `encodedDevice` | `string (`[bytes](/discovery/v1/type-format)` format)` Required. JSON Web Token signed using a CPI private key. Payload must be the JSON encoding of the \\[Device\\]. A base64-encoded string. \u003cbr /\u003e |\n| `installerId` | `string` Required. Unique installer id (cpiId) from the Certified Professional Installers database. |\n\n### Response body\n\nIf successful, the response body contains an instance of [Device](/spectrum-access-system/reference/rest/customers.devices#Device).\n\n### Authorization Scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/userinfo.email`"]]