Method: customers.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/*}/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."],["The request body requires a JSON Web Token and a unique installer ID."],["A successful response returns the created device details."],["Authorization requires the `https://www.googleapis.com/auth/sasportal` scope."]]],["This document details how to create a signed device under a specified node or customer using a `POST` request to the provided URL. The request requires the `parent` resource name as a path parameter. The request body, in JSON format, must include `encodedDevice`, a base64-encoded JWT containing device details, and `installerId`, a unique CPI ID. A successful request returns a device instance, and the `https://www.googleapis.com/auth/sasportal` OAuth scope is needed for authorization.\n"]]