Method: customers.devices.createSigned
طلب HTTP
POST https://sasportal.googleapis.com/v1alpha1/{parent=customers/*}/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 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"]]