Method: customers.devices.updateSigned
طلب HTTP
PATCH https://sasportal.googleapis.com/v1alpha1/{name=customers/*/devices/*}:updateSigned
يستخدم عنوان URL بنية gRPC Transcoding.
معلّمات المسار
المَعلمات |
name |
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 (حسب التوقيت العالمي المتفَّق عليه)"],[[["This API updates a signed device in the Spectrum Access System."],["The request must include an encoded device and installer ID."],["The device payload must be JSON Web Token signed with a CPI private key and contain the userId field."],["Authorization requires the `https://www.googleapis.com/auth/sasportal` scope."]]],["This document details the process of updating a signed device via a PATCH request to the specified URL: `https://sasportal.googleapis.com/v1alpha1/{name=customers/*/devices/*}:updateSigned`. The `name` path parameter is required, representing the device's name. The request body must include a JSON object containing the `encodedDevice` (a base64-encoded JSON Web Token of the device) and the `installerId` (CPI ID). Successful requests return a Device instance and requires the `https://www.googleapis.com/auth/sasportal` OAuth scope.\n"]]