Method: customers.deployments.devices.createSigned
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
HTTP isteği
POST https://sasportal.googleapis.com/v1alpha1/{parent=customers/*/deployments/*}/devices:createSigned
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
parent |
string
Zorunlu. Ana kaynağın adı.
|
İstek metni
İstek gövdesi aşağıdaki yapıya sahip verileri içerir:
JSON gösterimi |
{
"encodedDevice": string,
"installerId": string
} |
Alanlar |
encodedDevice |
string (bytes format)
Zorunlu. JSON Web Token, YBM özel anahtarı kullanılarak imzalandı. Yük, device öğesinin JSON kodlaması olmalıdır. userId alanı ayarlanmalıdır. base64 kodlu bir dize.
|
installerId |
string
Zorunlu. Sertifikalı Profesyonel Yükleyiciler veritabanından alınan benzersiz yükleyici kimliği (YBM Kimliği).
|
Yanıt metni
Başarılıysa yanıt metni, Device
öğesinin bir örneğini içerir.
Yetkilendirme Kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/sasportal
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2022-11-02 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2022-11-02 UTC."],[[["Creates a signed device under a node or customer using an HTTP POST request."],["Requires a JSON Web Token in the request body signed with a CPI private key containing device details."],["The request must include a unique installer ID from the Certified Professional Installers database."],["Upon successful creation, the response returns the details of the newly created device."],["Requires authorization with the `https://www.googleapis.com/auth/sasportal` scope."]]],["This document details how to create a signed device under a specified node or customer. It uses an HTTP POST request to the provided URL, including a `parent` path parameter indicating the resource name. The request body requires a JSON object with `encodedDevice` (a signed JSON Web Token representing the device) and `installerId` (CPI ID). Successful requests return a `Device` instance in the response body, and requests must be authorized with the `https://www.googleapis.com/auth/sasportal` OAuth scope.\n"]]