Method: nodes.devices.updateSigned
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تعدّل هذه الطريقة device
موقَّعًا.
طلب HTTP
PATCH https://sasportal.googleapis.com/v1alpha1/{name=nodes/*/devices/*}:updateSigned
يستخدِم عنوان URL بنية تحويل الترميز gRPC.
مَعلمات المسار
المعلمات |
name |
string
مطلوب. اسم الجهاز المطلوب تعديله.
|
نص الطلب
يحتوي نص الطلب على بيانات بالبنية التالية:
تمثيل JSON |
{
"encodedDevice": string,
"installerId": string
} |
الحقول |
encodedDevice |
string (bytes format)
مطلوب. رمز JSON المميّز للويب الذي تم توقيعه باستخدام مفتاح خاص لواجهة برمجة التطبيقات CPI يجب أن يكون الحِمل هو ترميز JSON الخاص بـ device . يجب ضبط الحقل userId . سلسلة مرمّزة باستخدام Base64
|
installerId |
string
مطلوب. معرّف المثبِّت الفريد (معرّف تكلفة التركيب لكلّ تطبيق) من قاعدة بيانات المثبِّتين المحترفين المعتمَدين
|
نص الاستجابة
إذا كانت الاستجابة ناجحة، يحتوي نص الاستجابة على مثال Device
.
نطاقات التفويض
يجب توفير نطاق OAuth التالي:
https://www.googleapis.com/auth/sasportal
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[[["Updates a signed device using a PATCH request to a specific endpoint."],["Requires providing the device name as a path parameter and device details in the request body."],["The request body must include a JSON Web Token with the device details and the installer ID."],["A successful request returns the updated device details."],["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, `/v1alpha1/{name=nodes/*/devices/*}:updateSigned`. The request requires a `name` path parameter (the device's name), and a JSON request body. This body includes `encodedDevice` (a base64-encoded JSON Web Token of the device) and `installerId` (a unique CPI ID). Successful requests return an instance of the updated device, and the process requires the `https://www.googleapis.com/auth/sasportal` OAuth scope for authorization.\n"]]