Method: customers.devices.create
בקשת HTTP
POST https://sasportal.googleapis.com/v1alpha1/{parent=customers/*}/devices
כתובת ה-URL כוללת תחביר gRPC קידוד מחדש.
פרמטרים של נתיב
פרמטרים |
parent |
string
חובה. השם של משאב ההורה.
|
גוף הבקשה
גוף הבקשה מכיל מופע של Device
.
גוף התגובה
אם התגובה מוצלחת, גוף התגובה מכיל מופע חדש של Device
.
היקפי הרשאה
יש צורך בהיקף OAuth הבא:
https://www.googleapis.com/auth/userinfo.email
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2022-09-26 (שעון UTC).
[null,null,["עדכון אחרון: 2022-09-26 (שעון UTC)."],[[["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"]]