Method: nodes.deployments.devices.createSigned
طلب HTTP
POST https://sasportal.googleapis.com/v1alpha1/{parent=nodes/*/deployments/*}/devices:createSigned
يستخدم عنوان URL بنية gRPC Transcoding.
معلّمات المسار
المَعلمات |
parent |
string
مطلوبة. هو اسم المورد الرئيسي.
|
نص الطلب
يحتوي نص الطلب على بيانات بالبنية التالية:
تمثيل JSON |
{
"encodedDevice": string,
"installerId": string
} |
الحقول |
encodedDevice |
string (bytes format)
مطلوبة. تم توقيع رمز JSON المميّز للويب باستخدام مفتاح خاص للتكلفة لكل تثبيت. يجب أن تكون الحمولة ترميز JSON للسمة device . يجب إعداد الحقل userId . سلسلة مشفّرة.
|
installerId |
string
مطلوبة. رقم تعريف أداة التثبيت الفريد (رقم تعريف التكلفة لكل تثبيت) من قاعدة بيانات أخصائيي التثبيت المعتمدين.
|
نص الاستجابة
إذا كانت الاستجابة ناجحة، يحتوي نص الاستجابة على مثال Device
.
نطاقات التفويض
يجب توفير نطاق OAuth التالي:
https://www.googleapis.com/auth/sasportal
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2022-11-02 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2022-11-02 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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 device details."],["Requires `https://www.googleapis.com/auth/sasportal` authorization scope."]]],["This document details how to create a signed device under a node or customer using a `POST` request to the specified URL. The request requires a parent resource name in the URL path, and a request body containing a signed JSON Web Token (`encodedDevice`) representing the device and a unique installer ID (`installerId`). The `encodedDevice` is a base64-encoded string. Successful requests return a Device instance, and the operation requires the `https://www.googleapis.com/auth/sasportal` OAuth scope.\n"]]