Updating a registry

You can update the name and description of a registry and manage registry labels.

To access a registry, use its ID or name. For information about how to get the ID or name of a registry, see Getting information about a registry.

Updating the name of a registry

If you don't have the Yandex.Cloud command line interface yet, install it.

Change the registry name:

$ yc iot registry update my-registry --new-name test-registry

id: b91ki3851hab9m0l68je
folder_id: aoek49ghmknnpj1ll45e
created_at: "2019-05-28T11:29:42.420Z"
name: test-registry

Updating the description of a registry

If you don't have the Yandex.Cloud command line interface yet, install it.

Change the registry description:

$ yc iot registry update my-registry --description "My test registry."

id: b91ki3851hab9m0l68je
folder_id: aoek49ghmknnpj1ll45e
created_at: "2019-05-28T11:29:42.420Z"
name: my-registry
description: My test registry.
labels:
  test_label: my_registry_label

Managing registry labels

You can perform the following actions related to registry labels:

Adding a label

If you don't have the Yandex.Cloud command line interface yet, install it.

Add a label to a registry:

$ yc iot registry add-labels my-registry --labels new_label=test_label

id: b91ki3851hab9m0l68je
folder_id: aoek49ghmknnpj1ll45e
created_at: "2019-05-28T11:29:42.420Z"
name: my-registry
labels:
  new_label: test_label

Updating a label

If you don't have the Yandex.Cloud command line interface yet, install it.

Change a registry label:

Important

The existing set of labels is completely replaced by the set provided.

$ yc iot registry update my-registry --labels test_label=my_registry_label

id: b91ki3851hab9m0l68je
folder_id: aoek49ghmknnpj1ll45e
created_at: "2019-05-28T11:29:42.420Z"
name: my-registry
labels:
  test_label: my_registry_label

Deleting a label

If you don't have the Yandex.Cloud command line interface yet, install it.

Delete a registry label:

$ yc iot registry remove-labels my-registry --labels new_label

id: b91ki3851hab9m0l68je
folder_id: aoek49ghmknnpj1ll45e
created_at: "2019-05-28T11:29:42.420Z"
name: my-registry