[Yandex Cloud documentation](../../index.md) > [Yandex Certificate Manager](../index.md) > [Step-by-step guides](index.md) > Viewing operations with a certificate

# Viewing operations with a certificate

The system logs all actions with Certificate 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}

  1. In the [management console](https://console.yandex.cloud), open the folder with the certificate.
  1. Navigate to **Certificate Manager**.
  1. Select the certificate.
  1. Navigate to the **Operations** tab.

     You will see a list of operations with the selected certificate.

- 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 certificate, run this command:

  ```bash
  yc certificate-manager certificates list-operations <certificate_name_or_ID>
  ```

  Result:

  ```text
  +----------------------+---------------------+----------------------+---------------------+--------+--------------------+
  |          ID          |     CREATED AT      |      CREATED BY      |     MODIFIED AT     | STATUS |    DESCRIPTION     |
  +----------------------+---------------------+----------------------+---------------------+--------+--------------------+
  | fpq207m67dkq******** | 2024-03-26 16:32:07 | aje9k8luj4qf******** | 2024-03-26 16:32:07 | DONE   | Update certificate |
  | fpqolhv1gtl5******** | 2024-03-21 12:32:27 | aje9k8luj4qf******** | 2024-03-21 12:32:27 | DONE   | Create certificate |
  +----------------------+---------------------+----------------------+---------------------+--------+--------------------+
  ```

  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 certificate-manager certificates list-operations <certificate_name_or_ID> --format yaml
  ```

  Result:

  ```text
  - id: fpq207m67dkq********
    description: Update certificate
    created_at: "2024-03-26T16:32:07.034Z"
    created_by: aje9k8luj4qf********
    modified_at: "2024-03-26T16:32:07.047Z"
    done: true
    metadata:
      '@type': type.googleapis.com/yandex.cloud.certificatemanager.v1.UpdateCertificateMetadata
      certificate_id: fpqf446dhkgi********
    response:
      '@type': type.googleapis.com/yandex.cloud.certificatemanager.v1.Certificate
      id: fpqf446dhkgi********
      folder_id: b1g681qpemb4********
      created_at: "2024-03-21T12:32:27.008Z"
      name: cert-alb
      labels:
        key: value
      type: IMPORTED
      domains:
        - cdn.yandexcloud.example
      status: ISSUED
      issuer: CN=cdn.yandexcloud.example
      subject: CN=cdn.yandexcloud.example
      serial: 6e71e5c50a038f96a144397315bd8e93********
      updated_at: "2024-03-26T16:32:07.022219309Z"
      issued_at: "2024-03-21T12:32:27.008Z"
      not_after: "2025-03-21T12:30:49Z"
      not_before: "2024-03-21T12:30:49Z"
      incomplete_chain: true
  - id: fpqolhv1gtl5********
    description: Create certificate
    created_at: "2024-03-21T12:32:27.062Z"
    created_by: aje9k8luj4qf********
    modified_at: "2024-03-21T12:32:27.082Z"
    ...
      not_before: "2024-03-21T12:30:49Z"
      incomplete_chain: true
  ```

- API {#api}

  Use the [listOperations](../api-ref/Certificate/listOperations.md) REST API method for the [Certificate](../api-ref/Certificate/index.md) resource or the [CertificateService/ListOperations](../api-ref/grpc/Certificate/listOperations.md) gRPC API call.

{% 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: fpq207m67dkq********
      description: Update certificate
      created_at: "2024-03-26T16:32:07.034Z"
      created_by: aje9k8luj4qf********
      modified_at: "2024-03-26T16:32:07.047Z"
      done: true
      metadata:
        '@type': type.googleapis.com/yandex.cloud.certificatemanager.v1.UpdateCertificateMetadata
        certificate_id: fpqf446dhkgi********
      response:
        '@type': type.googleapis.com/yandex.cloud.certificatemanager.v1.Certificate
        id: fpqf446dhkgi********
        folder_id: b1g681qpemb4********
        created_at: "2024-03-21T12:32:27.008Z"
        name: cert-alb
        labels:
          key: value
        type: IMPORTED
        domains:
          - cdn.yandexcloud.example
        status: ISSUED
        issuer: CN=cdn.yandexcloud.example
        subject: CN=cdn.yandexcloud.example
        serial: 6e71e5c50a038f96a144397315bd8e93********
        updated_at: "2024-03-26T16:32:07.022219309Z"
        issued_at: "2024-03-21T12:32:27.008Z"
        not_after: "2025-03-21T12:30:49Z"
        not_before: "2024-03-21T12:30:49Z"
        incomplete_chain: true
      ```

    - API {#api}

      Use 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)