Getting a list of aliases

    You can only get a list of aliases for all devices in the registry. To do this, you need the unique ID or name of the registry. For more information, see Getting information about a registry.

    If you don't have the Yandex.Cloud command line interface yet, install 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.

    Get a list of aliases for all devices in the registry:

    $ yc iot registry list-device-topic-aliases my-registry
    +----------+----------------------------------------+----------------------+
    |  ALIAS   |              TOPIC PREFIX              |      DEVICE ID       |
    +----------+----------------------------------------+----------------------+
    | commands | $devices/arenak5ciqss6pbas6js/commands | arenak5ciqss6pbas6js |
    +----------+----------------------------------------+----------------------+