Enabling and disabling a registry
You can disable or enable a registry. Once disabled, the registry gets the DISABLED
status, after which the registry itself and all devices in it stop accepting inbound connections.
To access a registry, use its ID or name. For information about how to get the registry ID or name, see Getting information about registries
Disabling a registry
If you do not have the Yandex Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
-
Get a list of registries in the folder:
yc iot registry list
Result:
+----------------------+-------------------+--------+ | 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 command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
-
Get a list of registries in the folder:
yc iot registry list
Result:
+----------------------+-------------------+----------+ | 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.