[Yandex Cloud documentation](../../../../index.md) > [Yandex IoT Core](../../../index.md) > [Step-by-step guides](../../index.md) > Managing devices > Managing topic aliases > Getting a list of aliases

# Getting a list of aliases

{% note warning %}

Yandex IoT Core is no longer available to new users. 

Current users can create resources until November 1, 2026. Afterwards, the service will go read-only and cease to operate on December 1, 2026. For more information on the timing and procedure, see [Service shutdown](../../../sunset.md).

{% endnote %}

 To get a list of aliases, you need the unique ID or name of the registry. For information about how to find the unique ID or name, see [Getting information about registries](../../registry/registry-list.md).

{% list tabs group=instructions %}

- Management console {#console}

   1. In the [management console](https://console.yandex.cloud), select the folder where the device is located.
   1. Navigate to **IoT Core**.
   1. Select the registry where the device is located.
   1. Navigate to the **Devices** tab.
   1. Select the device.
   1. On the **Overview** page, go to the **Aliases** section.

- CLI {#cli}
    
    If you do not have the Yandex Cloud CLI yet, [install and initialize it](../../../../cli/quickstart.md#install).
    
    The folder used by default is the one specified when [creating](../../../../cli/operations/profile/profile-create.md) the CLI profile. To change the default folder, use the `yc config set folder-id <folder_ID>` command. You can also specify a different folder for any command using `--folder-name` or `--folder-id`. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.
    
    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:
    
    ```bash
    yc iot registry list-device-topic-aliases my-registry
    ```

    Result:

    ```text
    +----------+----------------------------------------+----------------------+
    |  ALIAS   |              TOPIC PREFIX              |      DEVICE ID       |
    +----------+----------------------------------------+----------------------+
    | commands | $devices/arenak5ciqss********/commands | arenak5ciqss******** |
    +----------+----------------------------------------+----------------------+
   ```

- API {#api}

   To get a list of device aliases, use the [get](../../../api-ref/Device/get.md) REST API method for the [Device](../../../api-ref/Device/index.md) resource or the [DeviceService/Get](../../../api-ref/grpc/Device/get.md) gRPC API call.

{% endlist %}