[Yandex Cloud documentation](../../../index.md) > [Yandex IoT Core](../../index.md) > [Step-by-step guides](../index.md) > Managing registries > Enabling and disabling a registry

# Disabling and enabling a registry

{% note 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](../../sunset.md).

{% endnote %}

You can disable or enable a [registry](../../concepts/index.md#registry). Once disabled, the registry gets the `DISABLED` status, after which the registry itself and all [devices](../../concepts/index.md#device) 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](registry-list.md)


## Disabling a registry {#disable}

{% list tabs group=instructions %}

- CLI {#cli}

  If you do not have the Yandex Cloud CLI yet, [install and initialize it](../../../cli/quickstart.md#install).

  The folder used by default is the one specified when [creating](../../../cli/operations/profile/profile-create.md) 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.

  1. Get a list of registries in the folder:

      ```bash
      yc iot registry list
      ```

      Result:

      ```text
      +----------------------+-------------------+--------+
      |          ID          |       NAME        | STATUS |
      +----------------------+-------------------+--------+
      | arenou2oj4********** | my-registry       | ACTIVE |
      +----------------------+-------------------+--------+
      ```

  1. Disable a registry:

      ```bash
      yc iot registry disable <registry_name_or_ID>
      ```

      Result:

      ```text
      id: are1dtqd94r7********
      folder_id: b1g681qpemb4********
      created_at: "2024-11-16T11:34:11.623Z"
      name: my-registry
      status: DISABLED
      log_options:
        folder_id: b1g681qpemb4********
      ```

- API {#api}

  To disable a registry, use the [disable](../../api-ref/Registry/disable.md) REST API method for the [Registry](../../api-ref/Registry/index.md) resource or the [RegistryService/Disable](../../api-ref/grpc/Registry/disable.md) gRPC API call.

{% endlist %}


## Enabling a registry {#enable}

{% list tabs group=instructions %}

- CLI {#cli}

  If you do not have the Yandex Cloud CLI yet, [install and initialize it](../../../cli/quickstart.md#install).

  The folder used by default is the one specified when [creating](../../../cli/operations/profile/profile-create.md) 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.

  1. Get a list of registries in the folder:

      ```bash
      yc iot registry list
      ```

      Result:

      ```text
      +----------------------+-------------------+----------+
      |          ID          |       NAME        |  STATUS  |
      +----------------------+-------------------+----------+
      | arenou2oj4********** | my-registry       | DISABLED |
      +----------------------+-------------------+----------+
      ```

  1. Enable a registry:

      ```bash
      yc iot registry enable <registry_name_or_ID>
      ```

      Result:

      ```text
      id: are1dtqd94r7********
      folder_id: b1g681qpemb4********
      created_at: "2024-11-16T11:34:11.623Z"
      name: my-registry
      status: ACTIVE
      log_options:
        folder_id: b1g681qpemb4********
      ```

- API {#api}

  To enable a registry, use the [enable](../../api-ref/Registry/enable.md) REST API method for the [Registry](../../api-ref/Registry/index.md) resource or the [RegistryService/Enable](../../api-ref/grpc/Registry/enable.md) gRPC API call.

{% endlist %}