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
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
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:

  • Updating device names
  • Updating device descriptions
  1. Step-by-step guides
  2. Managing devices
  3. Updating a device

Updating a device

Written by
Yandex Cloud
Updated at May 13, 2025
  • Updating device names
  • Updating device descriptions

You can update the name or description of a device.

To access a device, use its unique ID or name. For information about how to get its unique ID or name, see Getting information about devices.

Updating device names

Management console
CLI
Terraform
API

To update the name of a device:

  1. In the management console, select the folder to update the device name in.
  2. Select IoT Core.
  3. Select the required registry from the list.
  4. On the left side of the window, select the Devices section.
  5. To the right of the name of the device you need, click and select Edit from the drop-down list.
  6. Edit the Name field.
  7. Click Save.

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

Update a device description:

yc iot device update my-device --new-name test-device

Result:

id: b9135goeh1uc********
registry_id: b91ki3851hab********
created_at: "2019-05-28T16:08:30.938Z"
name: test-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 update the name of a device created using Terraform:

  1. Open the Terraform configuration file and edit the name parameter value in the device description fragment:

    Example device description in the Terraform configuration:

    resource "yandex_iot_core_device" "my_device" {
      registry_id = "<registry_ID>"
      name        = "test-device"
      description = "test device for terraform provider documentation"
    ...
    }
    

    For more information about the yandex_iot_core_device resource parameters in Terraform, see the relevant provider documentation.

  2. In the command line, change to the folder where you edited the configuration file.

  3. Make sure the configuration file is correct using this command:

    terraform validate
    

    If the configuration is correct, you will get this message:

    Success! The configuration is valid.
    
  4. Run this command:

    terraform plan
    

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

  5. Apply the configuration changes:

    terraform apply
    
  6. Confirm the changes: type yes into the terminal and press Enter.

    You can check the updated device name in the management console or using this CLI command:

    yc iot device list --registry-id <registry_ID>
    

To rename a device, use the update REST API method for the Device resource or the DeviceService/Update gRPC API call.

Updating device descriptions

Management console
CLI
Terraform
API

To update the description of a device:

  1. In the management console, select the folder to update the device description in.
  2. Select IoT Core.
  3. Select the required registry from the list.
  4. On the left side of the window, select the Devices section.
  5. To the right of the name of the device you need, click and select Edit from the drop-down list.
  6. Edit the Description field.
  7. Click Save.

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

Update a device description:

yc iot device update my-device --description "My first device."

Result:

id: b9135goeh1uc********
registry_id: b91ki3851hab********
created_at: "2019-05-28T16:08:30.938Z"
name: my-device
description: My first 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 update the name of a device created using Terraform:

  1. Open the Terraform configuration file and edit the description parameter value in the device description fragment.

    Example device description in the Terraform configuration:

    resource "yandex_iot_core_device" "my_device" {
      registry_id = "<registry_ID>"
      name        = "test-device"
      description = "test device for terraform provider documentation"
    ...
    }
    

    For more information about the yandex_iot_core_device resource parameters in Terraform, see the relevant provider documentation.

  2. In the command line, change to the folder where you edited the configuration file.

  3. Make sure the configuration file is correct using this command:

    terraform validate
    

    If the configuration is correct, you will get this message:

    Success! The configuration is valid.
    
  4. Run this command:

    terraform plan
    

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

  5. Apply the configuration changes:

    terraform apply
    
  6. Confirm the changes: type yes into the terminal and press Enter.

    You can check the updated device description in the management console or using this CLI command:

    yc iot device get <device_name>
    

To update a device description, use the update REST API method for the Device resource or the DeviceService/Update gRPC API call.

Was the article helpful?

Previous
Creating a device
Next
Deleting a device
Yandex project
© 2025 Yandex.Cloud LLC