REST Resource: enterprises.devices
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
संसाधन: डिवाइस
डिवाइस संसाधन, प्रॉपर्टी में एंटरप्राइज़ से मैनेज किए जाने वाले डिवाइस के इंस्टेंस के बारे में बताता है.
JSON के काेड में दिखाना |
{
"name": string,
"type": string,
"traits": {
object
},
"parentRelations": [
{
object (ParentRelation )
}
]
} |
फ़ील्ड |
name |
string
ज़रूरी है. डिवाइस का संसाधन नाम. उदाहरण के लिए: "enterprises/XYZ/devices/123".
|
type |
string
सिर्फ़ आउटपुट के लिए. सामान्य डिसप्ले के लिए डिवाइस का टाइप. उदाहरण के लिए: "THERmostAT". डिवाइस के टाइप का इस्तेमाल, उस डिवाइस के काम करने के तरीके का पता लगाने या उसका अनुमान लगाने के लिए नहीं किया जाना चाहिए जिसे डिवाइस असाइन किया गया है. इसके बजाय, डिवाइस के लिए दिखाए गए Trait का इस्तेमाल करें.
|
traits |
object (Struct format)
सिर्फ़ आउटपुट के लिए. डिवाइस की विशेषताएं.
|
parentRelations[] |
object (ParentRelation )
जिस व्यक्ति को डिवाइस असाइन किया गया है उसकी जानकारी.
|
ParentRelation
डिवाइस संबंधों को दर्शाता है, उदाहरण के लिए, वह स्ट्रक्चर/रूम जिसे डिवाइस असाइन किया गया है.
JSON के काेड में दिखाना |
{
"parent": string,
"displayName": string
} |
फ़ील्ड |
parent |
string
सिर्फ़ आउटपुट के लिए. रिलेशन का नाम -- जैसे, स्ट्रक्चर/रूम जहां डिवाइस असाइन किया गया है. उदाहरण के लिए: "enterprises/XYZ/structureds/ABC" या "एंटरप्राइज़/XYZ/संरचना/ABC/कमरे/123"
|
displayName |
string
सिर्फ़ आउटपुट के लिए. संबंध का कस्टम नाम -- जैसे, स्ट्रक्चर/रूम जहां डिवाइस असाइन किया गया है.
|
तरीके |
|
एंटरप्राइज़ से मैनेज किए जा रहे डिवाइस पर निर्देश लागू करता है. |
|
एंटरप्राइज़ से मैनेज किया जाने वाला डिवाइस मिलता है. |
|
यह डायलॉग बॉक्स उन डिवाइसों की सूची दिखाता है जिन्हें एंटरप्राइज़ मैनेज करता है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 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,["- [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 Device 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 Represents 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. |"]]