[Yandex Cloud documentation](../../index.md) > [Yandex Network Load Balancer](../index.md) > [Step-by-step guides](index.md) > Viewing service resource operations

# Viewing Network Load Balancer resource operations

The system logs all actions with Network Load Balancer 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 all the resources, select ![image](../../_assets/operations.svg) **Operations** in the left-hand panel. In the list that opens, you will also see operations for the deleted resources.

  You can get a list of operations for a specific resource. The steps below describe how you can do this for a network load balancer. The same steps apply to target groups as well.

  1. In the [management console](https://console.yandex.cloud), open the folder with your network load balancer.
  1. Navigate to **Network Load Balancer**.
  1. Select the network load balancer in question.
  1. Navigate to the ![image](../../_assets/operations.svg) **Operations** panel.

      You will see a list of operations with the selected network load balancer.

- 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 a list of operations for a Network Load Balancer resource, run this command:

  ```bash
  yc load-balancer <resource_type> list-operations <resource_name_or_ID>
  ```

  **Example**

  Get a list of operations for a network load balancer:

  ```bash
  yc load-balancer network-load-balancer list-operations enpaud0h342p********
  ```

  You can get the network load balancer ID with the [list of network load balancers in the folder](load-balancer-list.md#list).

  Result:

  ```text
  +----------------------+---------------------+----------------------+---------------------+--------+----------------------------+
  |          ID          |     CREATED AT      |      CREATED BY      |     MODIFIED AT     | STATUS |        DESCRIPTION         |
  +----------------------+---------------------+----------------------+---------------------+--------+----------------------------+
  | enp87akr8sdr******** | 2024-02-01 09:33:45 | ajego134p5h1******** | 2024-02-01 09:33:45 | DONE   | Create NetworkLoadBalancer |
  +----------------------+---------------------+----------------------+---------------------+--------+----------------------------+
  ```

  By default, information about operations is output as text. To get more details, use `--format` to specify the `yaml` or `json` output format:

  ```bash
  yc load-balancer network-load-balancer list-operations enp87akr8sdr******** --format yaml
  ```

  Result:

  ```text
  - id: enp87akr8sdr********
  description: Create NetworkLoadBalancer
  created_at: "2024-02-01T09:33:45.035Z"
  created_by: ajego134p5h1********
  modified_at: "2024-02-01T09:33:45.642754913Z"
  done: true
  metadata:
    '@type': type.googleapis.com/yandex.cloud.loadbalancer.v1.CreateNetworkLoadBalancerMetadata
    network_load_balancer_id: enpaud0h342p********
  response:
    '@type': type.googleapis.com/google.protobuf.Empty
    value: {}
  ```

- API {#api}

  To get a list of operations, use the `listOperations` REST API method for the relevant resource or the `<service>/ListOperations` gRPC API call.

  For example, for a network load balancer, use the [listOperations](../api-ref/NetworkLoadBalancer/listOperations.md) REST API method for the [NetworkLoadBalancer](../api-ref/NetworkLoadBalancer/index.md) resource or the [NetworkLoadBalancerService/ListOperations](../api-ref/grpc/NetworkLoadBalancer/listOperations.md) gRPC API call, providing the network load balancer ID in the `networkLoadBalancerId` parameter of your request.

  You can get the network load balancer ID with the [list of network load balancers in the folder](load-balancer-list.md#list).

{% endlist %}

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

1. [Get the list of operations](#get-operations) for the resource.
1. Copy the operation ID.
1. Get the 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: enp87akr8sdr********
      description: Create NetworkLoadBalancer
      created_at: "2024-02-01T09:33:45.035Z"
      created_by: ajego134p5h1********
      modified_at: "2024-02-01T09:33:45.642Z"
      done: true
      metadata:
        '@type': type.googleapis.com/yandex.cloud.loadbalancer.v1.CreateNetworkLoadBalancerMetadata
        network_load_balancer_id: enpaud0h342p********
      response:
        '@type': type.googleapis.com/yandex.cloud.loadbalancer.v1.NetworkLoadBalancer
        id: enpaud0h342p********
        folder_id: b1gmit33ngp3********
        created_at: "2024-02-01T09:33:45Z"
        name: nlb-e6f3e-083
        region_id: ru-central1
        status: ACTIVE
        type: EXTERNAL
      ```

    - API {#api}

      Use the [get](../api-ref/Operation/get.md) REST API method for the [Operation](../api-ref/Operation/index.md) resource or the [OperationService/Get](../api-ref/grpc/Operation/get.md) gRPC API call.

    {% endlist %}

#### Useful links {#see-also}

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