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
-
In the management console
, open the folder with the certificate. -
Select Certificate Manager.
-
In the left-hand panel, select
Certificates. -
Select the certificate you need.
-
Go to the
Operations panel for the selected certificate.You will see a list of operations with the selected certificate.
If 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.
To get a list of operations for a certificate, run this command:
yc certificate-manager certificates list-operations <certificate_name_or_ID>
Result:
+----------------------+---------------------+----------------------+---------------------+--------+--------------------+
| 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, operation information is displayed as text. To get more detailed information, specify the yaml or json output data format using the --format parameter:
yc certificate-manager certificates list-operations <certificate_name_or_ID> --format yaml
Result:
- 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
Use the listOperations REST API method for the Certificate resource or the CertificateService/ListOperations gRPC API call.
Getting operation details
-
Get a list of operations for the resource.
-
Copy the operation ID.
-
Get operation details:
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-nameor--folder-idparameter.Run this command:
yc operation get <operation_ID>Result:
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: trueUse the OperationService/Get gRPC API call.