[Yandex Cloud documentation](../../index.md) > [Yandex Cloud DNS](../index.md) > [Step-by-step guides](index.md) > Zones > Viewing operations with DNS zones

# Viewing operations with zones

All Cloud DNS zone activities are logged 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}

  1. In the [management console](https://console.yandex.cloud), select the folder containing your DNS zone.
  1. Navigate to **Cloud DNS**.
  1. Select the zone you need.
  1. Navigate to the ![image](../../_assets/operations.svg) **Operations** panel for the selected zone.

      You will see a list of operations performed on the selected zone and its DNS records.

- 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 DNS zone operation list, run this command:

  ```bash
  yc dns zone list-operations <zone_name_or_ID>
  ```

  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 dns zone list-operations dns3fh7phb04******** --format yaml
  ```

  Result:

  ```text
  - id: dnsi5gv00kas********
    description: Update DNS RecordSets
    created_at: "2024-02-01T08:46:21.554860158Z"
    created_by: ajego134p5h1********
    modified_at: "2024-02-01T08:46:21.554933861Z"
    done: true
    metadata:
      '@type': type.googleapis.com/yandex.cloud.dns.v1.UpdateRecordSetsMetadata
  - id: dnssdag1giqk********
    description: Create DNS Zone
    created_at: "2024-02-01T08:45:40.481514713Z"
    created_by: ajego134p5h1********
    modified_at: "2024-02-01T08:45:40.481608241Z"
    done: true
    metadata:
      '@type': type.googleapis.com/yandex.cloud.dns.v1.CreateDnsZoneMetadata
      dns_zone_id: dns3fh7phb04********
  ```

- API {#api}

  To get a DNS zone operation list, use the [listOperations](../api-ref/DnsZone/listOperations.md) REST API method for the [DnsZone](../api-ref/DnsZone/index.md) resource or the [DnsZoneService/ListOperations](../api-ref/grpc/DnsZone/listOperations.md) gRPC API call.

{% endlist %}

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

1. [Get a zone operation list](#get-operations).
1. Copy the ID of the operation you need.
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: dnsi5gv00kas********
      description: Create DNS Zone
      created_at: "2024-02-01T08:45:40.481Z"
      created_by: ajego134p5h1********
      modified_at: "2024-02-01T08:45:40.481Z"
      done: true
      metadata:
        '@type': type.googleapis.com/yandex.cloud.dns.v1.CreateDnsZoneMetadata
        dns_zone_id: dns3fh7phb04********
      response:
        '@type': type.googleapis.com/yandex.cloud.dns.v1.DnsZone
        id: dnssdag1giqk********
        folder_id: b1gmit33ngp3********
        created_at: "2024-02-01T08:45:40.416Z"
        zone: zonedone.com.
        public_visibility: {}
      ```

    - API {#api}

      Use the [get](../../api-design-guide/concepts/operation.md#monitoring) REST API method 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)