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 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 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"]]