Disabling and enabling a registry
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.
You can disable or enable a registry. When disabled, the registry changes its status to DISABLED, and both the registry and all devices within it stop accepting incoming connections.
To access a registry, use its ID or name. For information on how to get the ID or name of a registry, see Getting information about registries.
Disabling a registry
If you do not have the Yandex Cloud CLI yet, install and initialize it.
The folder used by default is the one specified when creating 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.
-
Get a list of registries in the folder:
yc iot registry listResult:
+----------------------+-------------------+--------+ | ID | NAME | STATUS | +----------------------+-------------------+--------+ | arenou2oj4********** | my-registry | ACTIVE | +----------------------+-------------------+--------+ -
Disable a registry:
yc iot registry disable <registry_name_or_ID>Result:
id: are1dtqd94r7******** folder_id: b1g681qpemb4******** created_at: "2024-11-16T11:34:11.623Z" name: my-registry status: DISABLED log_options: folder_id: b1g681qpemb4********
To disable a registry, use the disable REST API method for the Registry resource or the RegistryService/Disable gRPC API call.
Enabling a registry
If you do not have the Yandex Cloud CLI yet, install and initialize it.
The folder used by default is the one specified when creating 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.
-
Get a list of registries in the folder:
yc iot registry listResult:
+----------------------+-------------------+----------+ | ID | NAME | STATUS | +----------------------+-------------------+----------+ | arenou2oj4********** | my-registry | DISABLED | +----------------------+-------------------+----------+ -
Enable a registry:
yc iot registry enable <registry_name_or_ID>Result:
id: are1dtqd94r7******** folder_id: b1g681qpemb4******** created_at: "2024-11-16T11:34:11.623Z" name: my-registry status: ACTIVE log_options: folder_id: b1g681qpemb4********
To enable a registry, use the enable REST API method for the Registry resource or the RegistryService/Enable gRPC API call.