REST Resource: enterprises.devices
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ทรัพยากร: อุปกรณ์
ทรัพยากรอุปกรณ์แสดงถึงอินสแตนซ์ของอุปกรณ์ที่มีการจัดการขององค์กรในพร็อพเพอร์ตี้
การแสดง JSON |
{
"name": string,
"type": string,
"traits": {
object
},
"parentRelations": [
{
object (ParentRelation )
}
]
} |
ช่อง |
name |
string
ต้องระบุ ชื่อทรัพยากรของอุปกรณ์ เช่น "enterprises/XYZ/devices/123"
|
type |
string
เอาต์พุตเท่านั้น ประเภทอุปกรณ์เพื่อการแสดงผลทั่วไป เช่น " THERMOSTAT" ไม่ควรใช้ประเภทอุปกรณ์เพื่ออนุมานหรืออนุมานฟังก์ชันการทำงานของอุปกรณ์จริงที่กำหนดไว้ แต่ให้ใช้ลักษณะที่แสดงผลสำหรับอุปกรณ์แทน
|
traits |
object (Struct format)
เอาต์พุตเท่านั้น ลักษณะของอุปกรณ์
|
parentRelations[] |
object (ParentRelation )
รายละเอียดอุปกรณ์ของผู้รับมอบหมาย
|
ParentRelation
แสดงถึงความสัมพันธ์ของอุปกรณ์ เช่น โครงสร้าง/ห้องที่กำหนดให้อุปกรณ์
การแสดง JSON |
{
"parent": string,
"displayName": string
} |
ช่อง |
parent |
string
เอาต์พุตเท่านั้น ชื่อของความสัมพันธ์ เช่น โครงสร้าง/ห้องที่มีการกำหนดอุปกรณ์ให้ เช่น "enterprises/XYZ/structures/ABC" หรือ "enterprises/XYZ/structures/ABC/rooms/123"
|
displayName |
string
เอาต์พุตเท่านั้น ชื่อที่กำหนดเองของความสัมพันธ์ เช่น โครงสร้าง/ห้องที่มีการกำหนดอุปกรณ์ให้
|
เมธอด |
|
เรียกใช้คำสั่งกับอุปกรณ์ที่องค์กรจัดการ |
|
รับอุปกรณ์ที่จัดการโดยองค์กร |
|
แสดงรายการอุปกรณ์ที่จัดการโดยองค์กร |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[[["\u003cp\u003eThe Device resource represents an instance of an enterprise-managed device, containing information like name, type, traits, and parent relationships.\u003c/p\u003e\n"],["\u003cp\u003eParentRelation describes the relationship of a device to a structure or room within the enterprise, including its parent and display name.\u003c/p\u003e\n"],["\u003cp\u003eThis API provides methods to execute commands on devices, retrieve device details, and list devices managed by the enterprise.\u003c/p\u003e\n"]]],[],null,["# REST Resource: enterprises.devices\n\n- [Resource: Device](#Device)\n - [JSON representation](#Device.SCHEMA_REPRESENTATION)\n- [ParentRelation](#ParentRelation)\n - [JSON representation](#ParentRelation.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Device\n----------------\n\nDevice resource represents an instance of enterprise managed device in the property.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"type\": string, \"traits\": { object }, \"parentRelations\": [ { object (/nest/device-access/reference/rest/v1/enterprises.devices#ParentRelation) } ] } ``` |\n\n| Fields ||\n|---------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. The resource name of the device. For example: \"enterprises/XYZ/devices/123\". |\n| `type` | `string` Output only. Type of the device for general display purposes. For example: \"THERMOSTAT\". The device type should not be used to deduce or infer functionality of the actual device it is assigned to. Instead, use the returned traits for the device. |\n| `traits` | `object (`[Struct](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Struct)` format)` Output only. Device traits. |\n| `parentRelations[]` | `object (`[ParentRelation](/nest/device-access/reference/rest/v1/enterprises.devices#ParentRelation)`)` Assignee details of the device. |\n\nParentRelation\n--------------\n\nRepresents device relationships, for instance, structure/room to which the device is assigned to.\n\n| JSON representation |\n|-----------------------------------------------------|\n| ``` { \"parent\": string, \"displayName\": string } ``` |\n\n| Fields ||\n|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Output only. The name of the relation -- e.g., structure/room where the device is assigned to. For example: \"enterprises/XYZ/structures/ABC\" or \"enterprises/XYZ/structures/ABC/rooms/123\" |\n| `displayName` | `string` Output only. The custom name of the relation -- e.g., structure/room where the device is assigned to. |\n\n| Methods ------- ||\n|------------------------------------------------------------------------------------------------|---------------------------------------------------------|\n| ### [executeCommand](/nest/device-access/reference/rest/v1/enterprises.devices/executeCommand) | Executes a command to device managed by the enterprise. |\n| ### [get](/nest/device-access/reference/rest/v1/enterprises.devices/get) | Gets a device managed by the enterprise. |\n| ### [list](/nest/device-access/reference/rest/v1/enterprises.devices/list) | Lists devices managed by the enterprise. |"]]