Viewing operations with Yandex IoT Core resources
All actions with Yandex IoT Core resources are logged as a list of operations. Each operation gets its own unique ID.
Getting a list of operations
You can get a list of operations for a specific resource. The steps below describe how you can do this for a registry. The same steps apply to other Yandex IoT Core} resources.
-
In the management console
, open the folder the registry is in. -
Select IoT Core.
-
In the left-hand panel, select
Registries. -
Select the registry.
-
Go to the
Operations panel for the selected registry.You will see a list of operations with the selected registry.
Use the listOperations
REST API method for the relevant resource or the <service>/ListOperations
gRPC API call.
For example, for a registry, use either the listOperations REST API method for the Registry resource or the RegistryService/ListOperations gRPC API call.
Getting detailed information about an operation
-
Get a list of operations for the resource.
-
Copy the operation ID.
-
Get detailed information about the operation:
CLIAPIIf you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the
yc config set folder-id <folder_ID>
command. You can also set a different folder for any specific command using the--folder-name
or--folder-id
parameter.Run this command:
yc operation get <operation_ID>
Result:
id: areojeqlg1bh******** description: Create device registry created_at: "2024-06-19T06:23:13.216Z" created_by: aje9k8luj4qf******** modified_at: "2024-06-19T06:23:13.265Z" done: true metadata: '@type': type.googleapis.com/yandex.cloud.iot.devices.v1.CreateRegistryMetadata registry_id: aresm2hpmh4s******** response: '@type': type.googleapis.com/yandex.cloud.iot.devices.v1.Registry id: aresm2hpmh4s******** folder_id: b1g681qpemb4******** created_at: "2024-06-19T06:23:13.245974425Z" name: my-registry status: ACTIVE log_options: folder_id: b1g681qpemb4********
Use the OperationService/Get gRPC API call.