Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex IoT Core
    • All guides
    • Sending messages
    • Subscribing a device or registry to receive messages
    • Exporting messages to Data Streams
    • Viewing the connection log
      • Getting information about devices
      • Creating a device
      • Updating a device
      • Deleting a device
    • Viewing operations with the service's resources
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • FAQ

In this article:

  • Getting a list of devices in a registry
  • Getting information about a device
  1. Step-by-step guides
  2. Managing devices
  3. Getting information about devices

Getting information about devices

Written by
Yandex Cloud
Updated at May 13, 2025
  • Getting a list of devices in a registry
  • Getting information about a device

To find out the unique ID or name of a device, get a list of devices in a registry.

Getting a list of devices in a registry

If you don't know the unique ID or name of the registry where your device is located, view the list of existing registries.

Management console
CLI
API
  1. In the management console, select the folder where the registry is located.
  2. Select IoT Core.
  3. Select the registry.
  4. Go to the Devices tab.

If you do not have the Yandex Cloud (CLI) command line interface yet, install and initialize it.

The folder specified when creating the CLI profile is used by default. To change the default folder, use the yc config set folder-id <folder_ID> command. You can specify a different folder using the --folder-name or --folder-id parameter.

  1. View the description of the CLI command to get a list of devices:

    yc iot device list --help
    
  2. Get a list of devices in the registry by specifying its name or ID:

    yc iot device list --registry-name <registry_name>
    

    Result:

    +----------------------+-----------+
    |          ID          |   NAME    |
    +----------------------+-----------+
    | b9135goeh1uc******** | my-device |
    +----------------------+-----------+
    

To get a list of devices in a registry, use the list REST API method for the Device resource or the DeviceService/List gRPC API call.

Getting information about a device

To access a device, use the unique ID or name of the registry from the previous step.

Management console
CLI
Terraform
API
  1. In the management console, select the folder where the device is located.
  2. Select IoT Core.
  3. Select the registry where the device is located.
  4. Go to the Devices tab.
  5. Select the device.
  6. The Overview page will show the device details.

If you do not have the Yandex Cloud (CLI) command line interface yet, install and initialize it.

The folder specified when creating the CLI profile is used by default. To change the default folder, use the yc config set folder-id <folder_ID> command. You can specify a different folder using the --folder-name or --folder-id parameter.

  1. View the description of the CLI command to get information about a device:

    yc iot device get --help
    
  2. Get detailed information about a device by specifying its name or ID:

    yc iot device get <device_name>
    

    Result:

    id: b9135goeh1uc********
    registry_id: b91ki3851hab********
    created_at: "2019-05-28T16:08:30.938Z"
    name: my-device
    

With Terraform, you can quickly create a cloud infrastructure in Yandex Cloud and manage it using configuration files. These files store the infrastructure description written in HashiCorp Configuration Language (HCL). If you change the configuration files, Terraform automatically detects which part of your configuration is already deployed, and what should be added or removed.

Terraform is distributed under the Business Source License. The Yandex Cloud provider for Terraform is distributed under the MPL-2.0 license.

For more information about the provider resources, see the documentation on the Terraform website or mirror website.

If you do not have Terraform yet, install it and configure its Yandex Cloud provider.

To get detailed information about a device using Terraform:

  1. Add the data and output sections to the Terraform configuration file:

    data "yandex_iot_core_device" "my_device" {
      device_id = "<device_ID>"
    }
    
    output "device_params" {
      value = data.yandex_iot_core_device.my_device.registry_id
    }
    

    Where:

    • data "yandex_iot_core_device": Description of the device as a data source:
      • device_id: Device ID.
    • output "device_params": Output variable containing information about the registry the device belongs to:
      • value: Returned value.

    You can replace registry_id with any other parameter to get the information you need. For more information about the yandex_iot_core_device data source parameters, see the relevant provider documentation.

  2. Create resources:

    1. In the terminal, change to the folder where you edited the configuration file.

    2. Make sure the configuration file is correct using the command:

      terraform validate
      

      If the configuration is correct, the following message is returned:

      Success! The configuration is valid.
      
    3. Run the command:

      terraform plan
      

      The terminal will display a list of resources with parameters. No changes are made at this step. If the configuration contains errors, Terraform will point them out.

    4. Apply the configuration changes:

      terraform apply
      
    5. Confirm the changes: type yes in the terminal and press Enter.

    Terraform will create the required resources and display the output variable values in the terminal. To check the results, run:

    terraform output
    

    Result:

    device_params = "are7ajlrf493********"
    

To get detailed information about a device, use the get REST API method for the Device resource or the DeviceService/Get gRPC API call.

Device monitoring data is updated when accessing the device via gRPCS and MQTT. The quality of service (QoS) level is at most once.

Was the article helpful?

Previous
Deleting an alias
Next
Creating a device
© 2025 Direct Cursus Technology L.L.C.