Method: nodes.devices.createSigned
درخواست HTTP
POST https://sasportal.googleapis.com/v1alpha1/{parent=nodes/*}/devices:createSigned
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
مولفه های |
---|
parent | string ضروری. نام منبع والد. |
درخواست بدن
بدنه درخواست حاوی داده هایی با ساختار زیر است:
نمایندگی JSON |
---|
{
"encodedDevice": string,
"installerId": string
} |
زمینه های |
---|
encodedDevice | string ( bytes format) ضروری. JSON Web Token با استفاده از کلید خصوصی CPI امضا شد. Payload باید رمزگذاری JSON device باشد. فیلد userId باید تنظیم شود. رشته ای با کد base64. |
installerId | string ضروری. شناسه نصبکننده منحصر به فرد (CPI ID) از پایگاهداده Certified Professional Installers. |
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی نمونه ای از Device
است.
محدوده مجوز
به محدوده OAuth زیر نیاز دارد:
-
https://www.googleapis.com/auth/sasportal
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2022-11-02 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2022-11-02 بهوقت ساعت هماهنگ جهانی."],[[["Creates a signed device under a node or customer using a POST request."],["Requires a JSON Web Token in the request body with the device details and installer ID."],["Returns the created device details in the response if successful."],["Needs authorization with the `https://www.googleapis.com/auth/sasportal` scope."],["Uses gRPC Transcoding for the URL structure."]]],["This describes how to create a signed device under a node or customer using a POST request. The URL structure, defined using gRPC Transcoding, includes a required `parent` path parameter. The request body, in JSON format, must contain `encodedDevice` (a base64-encoded, signed JSON Web Token representing the device) and a unique `installerId`. A successful operation returns a device object in the response body. Authorization requires the `https://www.googleapis.com/auth/sasportal` OAuth scope.\n"]]