

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 描述事物
<a name="search-things"></a>

您可以使用 **DescribeThing** 命令获取某事物的更多详情：

```
$ aws iot describe-thing --thing-name "MyLightBulb"
{
    "version": 3,
    "thingName": "MyLightBulb",
    "thingArn": "arn:aws:iot:us-east-1:123456789012:thing/MyLightBulb",
    "thingId": "12345678abcdefgh12345678ijklmnop12345678",
    "defaultClientId": "MyLightBulb",
    "thingTypeName": "StopLight",
    "attributes": {
        "model": "123",
        "wattage": "75"
    }
}
```

您也可以使用内联函数在规则引擎中访问此 API `get_registry_data()`。您可以使用此功能动态访问和利用事物注册表信息（包括属性、事物类型和群组成员资格），方法是`ListThingGroupsForThing` APIs 直接在 AWS IoT 规则内调用`DescribeThing`，从而根据您的设备注册表数据进行实时消息处理和路由。有关更多信息，请参阅 [https://docs.aws.amazon.com//iot/latest/developerguide/iot-sql-functions.html#iot-sql-function-get-registry_data](https://docs.aws.amazon.com//iot/latest/developerguide/iot-sql-functions.html#iot-sql-function-get-registry_data)。

有关更多信息，请参阅《命令参考》中的 [describe-](https://docs.aws.amazon.com//cli/latest/reference/iot/describe-thing.html) thing AWS CLI 。