Viewing operations with a certificate
All actions with Certificate Manager resources are logged as a list of operations. Each operation is assigned a 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 command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder 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, information about operations is provided as text. To get detailed information, specify the yaml
or json
output data format using the --format
flag:
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 detailed information about an operation
-
Get a list of operations for the resource.
-
Copy the ID of the operation.
-
Get detailed information about the operation:
CLIAPIIf you do not have the Yandex Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the
--folder-name
or--folder-id
parameter.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: true
Use the OperationService/Get gRPC API call.