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