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
      • Managing registry passwords
      • Managing device passwords
      • Managing broker passwords
    • Viewing operations with the service's resources
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • FAQ

In this article:

  • Adding a password to a registry
  • Adding a password to an existing registry
  • Setting a password for a registry when creating it
  • Getting a list of registry passwords
  • Deleting a registry password
  1. Step-by-step guides
  2. Managing passwords
  3. Managing registry passwords

Managing registry passwords

Written by
Yandex Cloud
Updated at May 13, 2025
  • Adding a password to a registry
    • Adding a password to an existing registry
    • Setting a password for a registry when creating it
  • Getting a list of registry passwords
  • Deleting a registry password

For devices and registries to begin exchanging data and commands, you need to log in. This section describes how to manage registry passwords for the appropriate authorization method.

Note

When using an X.509 certificate along with a password, the password has higher priority.

  • Adding a password
  • Viewing a password list
  • Deleting a password

Adding a password to a registryAdding a password to a registry

You can add a password to an already created registry or set it when creating a registry using the --password parameter.

Note

You can also set a password from the input stream. To do this, use the --read-password flag instead of the --password parameter.

Adding a password to an existing registryAdding a password to an existing registry

Management console
CLI
Terraform
API

To add a password to an existing registry:

  1. In the management console, select the folder where you want to ad a password for an existing registry.
  2. Select IoT Core.
  3. Select the required registry from the list.
  4. Under Passwords, click Add password.
  5. In the Password field, enter the password you will use to access the registry.
    To create a password, you can use the password generator.
    Make sure to save your password, as you will need it later.
  6. Click Add.

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

To add a password:

  1. Get a list of registries in the folder:

    yc iot registry list
    

    Result:

    +----------------------+-------------------+
    |          ID          |       NAME        |
    +----------------------+-------------------+
    | arenou2oj4ct******** | my-registry       |
    +----------------------+-------------------+
    
  2. Add a password to the registry:

    yc iot registry password add --registry-name my-registry --password Passw0rdForRegistry
    

    Result:

    registry_id: arenou2oj4ct********
    id: areuu2hgsv6k********
    created_at: "2019-12-16T15:32:46.655139Z"
    

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 add a password to a registry created using Terraform:

  1. In the configuration file, describe the parameters of the resources you want to create:

    • yandex_iot_core_registry: Registry parameters:
      • name: Registry name.
      • description: Registry description.
      • passwords: List of registry passwords for authorization with a username and password.

    Here is an example of the resource structure in the configuration file:

    resource "yandex_iot_core_registry" "my_registry" {
      name        = "test-registry"
      description = "test registry for terraform provider documentation"
    ...
      passwords = [
        "<password_1>",
        "<password_2>"
      ]
    ...
    }
    

    For more information about the yandex_iot_core_registry 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 verify registry passwords using the management console or this CLI command:

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

To add a password to a registry, use the addPassword REST API method for the Registry resource or the RegistryService/AddPassword gRPC API call.

Setting a password for a registry when creating itSetting a password for a registry when creating it

Management console
CLI
Terraform
API

For information about how to set a password for a registry when creating it, see Creating a registry.

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.

Create a registry with a password:

yc iot registry create --name registry-with-pass --password Passw0rdForDevice

Result:

done (1s)
id: areg96c8loru********
folder_id: b1g88tflru0e********
created_at: "2019-12-16T15:34:25.563Z"
name: registry-with-pass
status: ACTIVE
log_group_id: ckghhil3b5o9********

For information about how to set a password for a registry when creating it, see Creating a registry.

To set a password for a registry when creating it, use the create REST API method for the Registry resource or the RegistryService/Create gRPC API call.

Getting a list of registry passwordsGetting a list of registry passwords

Management console
CLI
API

To view the list of registry passwords:

  1. In the management console, select the folder to get the list of registry passwords for.
  2. Select IoT Core.
  3. Select the required registry from the list.
  4. On the Overview page, go to the Passwords section.

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.

To get a list of passwords:

  1. Get a list of registries in the folder:

    yc iot registry list
    

    Result:

    +----------------------+--------------------+
    |          ID          |        NAME        |
    +----------------------+--------------------+
    | areg96c8loru******** | registry-with-pass |
    | arenou2oj4ct******** | my-registry        |
    +----------------------+--------------------+
    
  2. Get a list of registry passwords:

    yc iot registry password list --registry-name registry-with-pass
    

    Result:

    +----------------------+---------------------+
    |          ID          |     CREATED AT      |
    +----------------------+---------------------+
    | are0gffs957e******** | 2019-12-16 15:34:25 |
    +----------------------+---------------------+
    

To get a list of registry passwords, use the listPasswords REST API method for the Registry resource or the RegistryService/ListPasswords gRPC API call.

Deleting a registry passwordDeleting a registry password

Management console
CLI
Terraform
API

To delete a registry password:

  1. In the management console, select the folder to delete the registry password from.
  2. Select IoT Core.
  3. Select the required registry from the list.
  4. In the row with the password, click and select Delete from the drop-down list.
  5. In the window that opens, click Delete.

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.

To delete a password:

  1. Get a list of registry passwords:

    yc iot registry password list --registry-name registry-with-pass
    

    Result:

    +----------------------+---------------------+
    |          ID          |     CREATED AT      |
    +----------------------+---------------------+
    | are0gffs957e******** | 2019-12-16 15:34:25 |
    +----------------------+---------------------+
    
  2. Delete the password:

    yc iot registry password delete --registry-name registry-with-pass --password-id are0gffs957e********
    
  3. Make sure that the password was deleted:

    yc iot registry password list --registry-name registry-with-pass
    

    Result:

    +----+------------+
    | ID | CREATED AT |
    +----+------------+
    +----+------------+
    

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 delete the password of a registry created using Terraform:

  1. Open the Terraform configuration file and delete the password value in the passwords section, in the registry description fragment. To delete all passwords, delete the entire passwords section.

    Example registry description in the Terraform configuration:

    resource "yandex_iot_core_registry" "my_registry" {
      name        = "test-registry"
      description = "test registry for terraform provider documentation"
    ...
      passwords = [
        "<password_1>",
        "<password_2>"
      ]
    ...
    }
    

    For more information about the yandex_iot_core_registry 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 verify registry passwords using the management console or this CLI command:

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

To delete a registry password, use the deletePassword REST API method for the Registry resource or the RegistryService/DeletePassword gRPC API call.

Was the article helpful?

Previous
Managing broker certificates
Next
Managing device passwords
© 2025 Direct Cursus Technology L.L.C.