# Viewing operations with Resource Manager resources

The system logs all actions with Resource Manager resources as a list of operations. Each operation gets its own unique ID.

## Getting a list of operations {#get-operations}

{% list tabs group=instructions %}

- Management console {#console}

  To view operations with a cloud or a folder:
  
  1. Go to the appropriate cloud or folder.
  1. At the top of the screen, navigate to the **Operations** tab.

- 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.

  To get the list of operations for the Resource Manager resource, run this command:

  ```bash
  yc resource-manager <resource_type> list-operations <resource_name_or_ID>
  ```

  **Example**

  To get a list of operations for a folder:

  ```bash
  yc resource-manager folder list-operations b1g681qpemb4********
  ```

  Result:

  ```text
  +----------------------+---------------------+----------------------+---------------------+--------+--------------------------------+
  |          ID          |     CREATED AT      |      CREATED BY      |     MODIFIED AT     | STATUS |          DESCRIPTION           |
  +----------------------+---------------------+----------------------+---------------------+--------+--------------------------------+
  | b1g4jml98i8c******** | 2023-06-07 12:35:50 | aje9k8luj4qf******** | 2023-06-07 12:35:50 | DONE   | Update resource-manager.folder |
  |                      |                     |                      |                     |        | access bindings                |
  | b1g3cmmtt3u4******** | 2023-04-05 06:05:45 | ajeuddo5f7pj******** | 2023-04-05 06:05:45 | DONE   | Create folder                  |
  +----------------------+---------------------+----------------------+---------------------+--------+--------------------------------+
  ```

  By default, operation information is displayed as text. To get more detailed information, specify the `yaml` or `json` output data format using the `--format` parameter:

  ```bash
  yc resource-manager folder list-operations b1g681qpemb4******** --format yaml
  ```

  Result:

  ```text
  - id: b1g4jml98i8c********
    description: Update resource-manager.folder access bindings
    created_at: "2023-06-07T12:35:50.143Z"
    created_by: aje9k8luj4qf********
    modified_at: "2023-06-07T12:35:50.543823061Z"
    done: true
    metadata:
      '@type': type.googleapis.com/yandex.cloud.access.UpdateAccessBindingsMetadata
      resource_id: b1g681qpemb4********
    response:
      '@type': type.googleapis.com/google.protobuf.Empty
      value: {}
  - id: b1g3cmmtt3u4********
    description: Create folder
    created_at: "2023-04-05T06:05:45.617732162Z"
    created_by: ajeuddo5f7pj********
    modified_at: "2023-04-05T06:05:45.617995551Z"
    done: true
    metadata:
      '@type': type.googleapis.com/yandex.cloud.resourcemanager.v1.CreateFolderMetadata
      folder_id: b1g681qpemb4********
    response:
      '@type': type.googleapis.com/google.protobuf.Empty
      value: {}
  ```

- API {#api}

  Use the `listOperations` REST API method for the relevant resource or the `<service>/ListOperations` gRPC API call.

  For example, to get a list of operations for a folder, use either the [listOperations](../api-ref/Folder/listOperations.md) REST API method for the [Folder](../api-ref/Folder/index.md) resource or the [FolderService/ListOperations](../api-ref/grpc/Folder/listOperations.md) gRPC API call.

{% endlist %}

## Getting operation details {#get-operations-info}

1. [Get a list of operations](#get-operations) for the resource.
1. Copy the operation ID.
1. Get operation details:

    {% 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.

      Run this command:

      ```bash
      yc operation get <operation_ID>
      ```

      Result:

      ```text
      id: b1g4jml98i8c********
      description: Update resource-manager.folder access bindings
      created_at: "2023-06-07T12:35:50.143Z"
      created_by: aje9k8luj4qf********
      modified_at: "2023-06-07T12:35:50.543Z"
      done: true
      metadata:
        '@type': type.googleapis.com/yandex.cloud.access.UpdateAccessBindingsMetadata
        resource_id: b1g681qpemb4********
      response:
        '@type': type.googleapis.com/yandex.cloud.access.AccessBindingsOperationResult
      ```

   - API {#api}

     Use the [OperationService/Get](../api-ref/grpc/Operation/get.md) gRPC API call.

   {% endlist %}

#### See also {#see-also}

* [Working with operations](../../api-design-guide/concepts/about-async.md)