Method: customers.devices.create
HTTP-Anfrage
POST https://sasportal.googleapis.com/v1alpha1/{parent=customers/*}/devices
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
parent |
string
Erforderlich. Der Name der übergeordneten Ressource.
|
Anfragetext
Der Anfragetext enthält eine Instanz von Device
.
Antworttext
Bei Erfolg enthält der Antworttext eine neu erstellte Instanz von Device
.
Autorisierungsbereiche
Erfordert den folgenden OAuth-Bereich:
https://www.googleapis.com/auth/userinfo.email
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2022-09-26 (UTC).
[null,null,["Zuletzt aktualisiert: 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"]]