When I go to the IOT Core Registry page (on the GCP console) and select a device, I can edit it. There's a "Device metadata" section there, reading the following:
You can set custom metadata, such as manufacturer, location, etc. for the device. These can be used to query devices in this registry. Learn more
Where the documentation page shows nothing about querying devices using metadata. Is this possible at all? What can be done using device metadata?
I am asking because I am looking for the following features with Azure IOT Hub has with device twin tags:
- Ideally I would like to enrich messages the device sends (state, events) with corresponding metadata.
- Querying for multiple devices based on a metadata field.



One first has to add device meta data, before one can query it:
One can query
gcloud iot deviceslist (--registry=REGISTRY : --region=REGION):See
gcloud topic filtersfor more information about filter expressions.Or with format:
--format='value[](metadata.items.test_metadata)'