Getting a list of aliases
Written by
To get a list of aliases, you need the unique ID or name of the registry. For more information, see Getting information about registries.
Management console
CLI
API
- In the management console, select the folder where the device is located.
- Select the Yandex IoT Core.
- Select the registry where the device is located.
- Go to the Devices tab.
- Select the device.
- On the Overview page, go to the Aliases section.
If you don't have the Yandex Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
You can only get a list of aliases for all devices in the registry.
Get a list of aliases for all devices in the registry:
yc iot registry list-device-topic-aliases my-registry
Result:
+----------+----------------------------------------+----------------------+
| ALIAS | TOPIC PREFIX | DEVICE ID |
+----------+----------------------------------------+----------------------+
| commands | $devices/arenak5ciqss6pbas6js/commands | arenak5ciqss6pbas6js |
+----------+----------------------------------------+----------------------+
You can get a list of device aliases using the get API method.