Method: customers.devices.create
درخواست HTTP
POST https://sasportal.googleapis.com/v1alpha1/{parent=customers/*}/devices
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
مولفه های |
---|
parent | string ضروری. نام منبع والد. |
درخواست بدن
بدنه درخواست شامل یک نمونه از Device
است.
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی یک نمونه جدید از Device
است.
محدوده مجوز
به محدوده OAuth زیر نیاز دارد:
-
https://www.googleapis.com/auth/userinfo.email
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2022-09-26 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2022-09-26 بهوقت ساعت هماهنگ جهانی."],[[["Creates a device under a node or customer using an HTTP POST request."],["Requires specifying the parent resource (node or customer) in the URL path."],["The request body must contain a Device object, as defined in the provided documentation."],["A successful response returns the newly created Device object."],["Requires authorization with the `https://www.googleapis.com/auth/userinfo.email` scope."]]],["This outlines the process for creating a device within a customer or node hierarchy. A `POST` request is sent to a specific URL, defined using gRPC Transcoding syntax, including a required `parent` path parameter indicating the resource. The request body contains the device details, and a successful response returns the newly created device. Authorization requires the `userinfo.email` OAuth scope.\n"]]