Method: nodes.devices.create
HTTP isteği
POST https://sasportal.googleapis.com/v1alpha1/{parent=nodes/*}/devices
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
parent |
string
Zorunlu. Ana kaynağın adı.
|
İstek metni
İstek metni, Device
öğesinin bir örneğini içerir.
Yanıt metni
Başarılıysa yanıt gövdesi, yeni oluşturulmuş Device
örneğini içerir.
Yetkilendirme Kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/sasportal
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2022-11-02 UTC.
[null,null,["Son güncelleme tarihi: 2022-11-02 UTC."],[[["Creates a device under a node or customer."],["Sends a POST request to `https://sasportal.googleapis.com/v1alpha1/{parent=nodes/*}/devices`."],["Requires a parent resource name as a path parameter."],["The request body should contain a `Device` instance, and a successful response will return a newly created `Device` instance."],["Needs `https://www.googleapis.com/auth/sasportal` authorization scope."]]],["This describes the process of creating a device. A `POST` request is sent to `https://sasportal.googleapis.com/v1alpha1/{parent=nodes/*}/devices`, where `parent` specifies the resource (node or customer). The request body includes device details. A successful response returns the newly created device instance. Authorization requires the `https://www.googleapis.com/auth/sasportal` OAuth scope. The document also references the path parameters, HTTP request format, request and response body structure.\n"]]