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
      • 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 broker
  • Adding a password to an existing broker
  • Setting a password for a broker when creating it
  • Getting a list of broker passwords
  • Deleting a broker password
  1. Step-by-step guides
  2. Managing passwords
  3. Managing broker passwords

Managing broker passwords

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

Note

The broker is at the Preview stage.

To start exchanging messages between broker clients, you must log in. This section describes how to manage broker passwords for the relevant 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 brokerAdding a password to a broker

You can add a password to an existing broker or set it when creating a broker 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 brokerAdding a password to an existing broker

Management console
CLI
API
  1. In the management console, select the folder where you want to add a password for an existing broker.
  2. Select IoT Core.
  3. In the left-hand panel, select Brokers.
  4. Select the appropriate broker from the list.
  5. Under Passwords, click Add password.
  6. In the Password field, enter the password you will use to access the broker. To create a password, you can use the password generator. Make sure to save your password, as you will need it later.
  7. Click Add.

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 add a password:

  1. Get a list of brokers in the folder:

    yc iot broker list
    

    Result:

    +----------------------+-------------------+
    |          ID          |       NAME        |
    +----------------------+-------------------+
    | arenou2oj4********** | my-broker         |
    +----------------------+-------------------+
    
  2. Add a password to the broker:

    yc iot broker password add --broker-name my-broker --password Passw0rdForBroker
    

    Result:

    broker_id: arenou2oj4**********
    id: areuu2hgsv6k********
    created_at: "2019-12-16T15:32:46.655139Z"
    

To add a password to a broker, use the addPassword REST API method for the Broker resource or the BrokerService/AddPassword gRPC API call.

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

Management console
CLI
API

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

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 broker with a password:

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

Result:

done (1s)
id: areg96c8lo**********
folder_id: b1g88tflru**********
created_at: "2019-12-16T15:34:25.563Z"
name: broker-with-pass
status: ACTIVE
log_group_id: ckghhil3b5**********

To set a password for a broker when creating it, use the create REST API method for the Broker resource or the BrokerService/Create gRPC API call.

Getting a list of broker passwordsGetting a list of broker passwords

Management console
CLI
API
  1. In the management console, select the folder where you want to get a list of broker passwords.
  2. Select IoT Core.
  3. In the left-hand panel, select Brokers.
  4. Select the appropriate broker from the list.
  5. 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 brokers in the folder:

    yc iot broker list
    

    Result:

    +----------------------+--------------------+
    |          ID          |        NAME        |
    +----------------------+--------------------+
    | areg96c8lo********** | broker-with-pass   |
    | arenou2oj4********** | my-broker          |
    +----------------------+--------------------+
    
  2. Get a list of broker passwords:

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

    Result:

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

To get a list of broker passwords, use the listPasswords REST API method for the Broker resource or the BrokerService/ListPasswords gRPC API call.

Deleting a broker passwordDeleting a broker password

Management console
CLI
API
  1. In the management console, select the folder to delete the broker password from.
  2. Select IoT Core.
  3. In the left-hand panel, select Brokers.
  4. Select the appropriate broker from the list.
  5. In the row with the password, click and select Delete from the drop-down list.
  6. 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 broker passwords:

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

    Result:

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

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

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

    Result:

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

To delete a broker password, use the deletePassword REST API method for the Broker resource or the BrokerService/DeletePassword gRPC API call.

Was the article helpful?

Previous
Managing device passwords
Next
Viewing operations with the service's resources
Yandex project
© 2025 Yandex.Cloud LLC